[Cmake] Read a file
Andy Cedilnik
andy . cedilnik at kitware . com
17 Mar 2003 07:26:59 -0500
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?