... | ... | @@ -343,7 +343,7 @@ It also tells versions of CMake newer than that specified that the |
|
|
project may not be aware of policies introduced in later versions, which
|
|
|
enables additional compatibility. For futher documentation, see
|
|
|
|
|
|
- [CMake Policy Mechanism](CMake/Policies "wikilink")
|
|
|
- [CMake Policy Mechanism](doc/cmake/Policies "wikilink")
|
|
|
- [cmake_policy()
|
|
|
command](http://www.cmake.org/cmake/help/cmake2.6docs.html#command:cmake_policy)
|
|
|
- [CMake 2.6
|
... | ... | @@ -457,7 +457,7 @@ property set to true.) |
|
|
|
|
|
You can also use ADD_CUSTOM_COMMAND when the [generator command is
|
|
|
another executable in the same
|
|
|
project](CMake_FAQ#How_do_I_generate_an_executable.2C_then_use_the_executable_to_generate_a_file.3F "wikilink").
|
|
|
project](FAQ#How_do_I_generate_an_executable.2C_then_use_the_executable_to_generate_a_file.3F "wikilink").
|
|
|
|
|
|
Sometimes, the program doing the generation may generate multiple output
|
|
|
files that each need to be part of the build. CMake 2.4 or higher
|
... | ... | @@ -511,7 +511,7 @@ property.) |
|
|
### How can I add a dependency to a source file which is generated in a subdirectory?
|
|
|
|
|
|
Rules created with `ADD_CUSTOM_COMMAND` as
|
|
|
[above](CMake_FAQ#How_can_I_generate_a_source_file_during_the_build.3F "wikilink")
|
|
|
[above](FAQ#How_can_I_generate_a_source_file_during_the_build.3F "wikilink")
|
|
|
have scope only in the directory in which they are specified. If the
|
|
|
generated file is needed in another directory, a target-level dependency
|
|
|
needs to be added. Create a target in the subdirectory with the custom
|
... | ... | @@ -1377,8 +1377,8 @@ target. |
|
|
### What is the best way to distribute source code or binaries for a cmake-based project?
|
|
|
|
|
|
For creating source or binary packages there is now
|
|
|
[CPack](CMake#CPack "wikilink") coming with CMake, see the
|
|
|
[documentation](CMake#CPack "wikilink").
|
|
|
[CPack](Home#CPack "wikilink") coming with CMake, see the
|
|
|
[documentation](Home#CPack "wikilink").
|
|
|
|
|
|
Of course you can also use any other ways to create packages.
|
|
|
|
... | ... | |