[Cmake] Read a file
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Mar 17 07:26:59 EST 2003
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?
More information about the CMake
mailing list