CMAKE_PROJECT_PROJECT-NAME_INCLUDE.rst 924 B

123456789101112131415161718
  1. CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE
  2. ------------------------------------
  3. A CMake language file to be included as the last step of any
  4. :command:`project` command calls that specify ``<PROJECT-NAME>`` as the project
  5. name. This is intended for injecting custom code into project builds without
  6. modifying their source. See :ref:`Code Injection` for a more detailed
  7. discussion of files potentially included during a :command:`project` call.
  8. .. versionadded:: 3.29
  9. This variable can be a :ref:`semicolon-separated list <CMake Language Lists>`
  10. of CMake language files to be included sequentially. It can also now refer to
  11. module names to be found in :variable:`CMAKE_MODULE_PATH` or as a builtin
  12. CMake module.
  13. See also the :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE`,
  14. :variable:`CMAKE_PROJECT_INCLUDE`, :variable:`CMAKE_PROJECT_INCLUDE_BEFORE`,
  15. and :variable:`CMAKE_PROJECT_TOP_LEVEL_INCLUDES` variables.