[CMake] How to use generated cmake files?

Stephan Springer List.CMake at Lini.de
Mon Mar 9 13:57:35 EDT 2009


Am Mo, 9.03.2009, 18:43, schrieb Tyler Roscoe:
> You want a custom_command (and probably a custom_target). Check out the
> pattern for how to use these here:
> http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_generate_an_executable.2C_then_use_the_executable_to_generate_a_file.3F
> and in the next couple of FAQ entries.

    Thanks, but I already read the FAQ.  If I don't get it wrong, these
sections state how to use generated source files (a task which I already
accomplished successfully).

    But how do I use a generated CMake include() file?  How do I tell CMake to
generate a file which can be read with include() in case it is not there
yet (or outdated)?  Is this possible at all?

Thanks,

    - Stephan.



More information about the CMake mailing list