[CMake] Generating source files..
Alexander Neundorf
a.neundorf-work at gmx.net
Wed May 25 03:54:19 EDT 2005
> Von: "Dekeyser, Kris" <Kris.Dekeyser at lms.be>
...
> The CMakeLists.txt will then create the file when the Makefile/Solution
is
> created. If you want to create a source file when you run make, a
> CUSTOM_COMMAND should be appropriate. You would then need to create a
> small program that creates the source code.
Or write a small cmake script file and execute this during the build with
cmake -P your_cmake_script_which_creates_a_file
You can give this script parameters by using -DMYVAR:STRING="hello world"
This need cmake cvs AFAIK.
Bye
Alex
--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list