[CMake] reading in a file and splitting by line

Philip Lowman philip at yhbt.com
Wed May 23 09:30:35 EDT 2007


I'm trying to figure out how to use FILE(READ) coupled with some other 
CMake call to split a text file into multiple lines that ultimately end 
up in a CMake List.

The goal is to get all of the lines into a CMake list so I can iterate 
through it with FOREACH() and process each line separately.

I was wondering if anyone has any ideas on how to do this?

-- 
Philip Lowman
Simulation Development Engineer, Modeling and Simulation Technology
General Dynamics Land Systems
http://www.gdls.com


More information about the CMake mailing list