[Cmake] Read a file

Geoffrey Cross geoff at cross.lu
Mon Mar 17 10:32:21 EST 2003


What about "INCLUDE"?  Isn't that what he meant?

Geoff.


> -----Original Message-----
> From: cmake-admin at public.kitware.com [mailto:cmake-
> admin at public.kitware.com] On Behalf Of Andy Cedilnik
> Sent: Monday, March 17, 2003 12:27 PM
> To: Nils H. Busch
> Cc: CMake
> Subject: Re: [Cmake] Read a file
> 
> Hi Nils,
> 
> Writing files is easy:
> 
> WRITE_FILE(/path/to/file "text" [APPEND])
> 
> Example:
> 
> # Write text to file /tmp/some_file.txt
> WRITE_FILE(/tmp/some_file.txt "This is test")
> 
> # Append text to file
> WRITE_FILE(${PROJECT_BINARY_DIR}/Output.log
>            "Test ${TEST} - success" APPEND)
> 
> Reading is not possible yet. Wait for 1.8.
> 
> 				Andy
> 
> On Mon, 2003-03-17 at 04:49, Nils H. Busch wrote:
> > is there a command to read a/several lines from a text file in the
> > current cmake ?
> > And possibly a command that writes Cmake commands to file?
> 
> 
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake





More information about the CMake mailing list