Generates package configuration files. More...
Go to the source code of this file.
Variables | |
BASIS_NS | |
cmake | BASIS_TEMPLATE |
cmake | BASIS_USE |
cmake | BUILD_CONFIG_SETTINGS |
cmake | CONFIG_FILE |
Name of the CMake package configuration file. More... | |
cmake | CONFIG_PREFIX |
Package name. More... | |
cmake | CUSTOM_EXPORTS_FILE |
Name of the CMake target exports file for custom targets. More... | |
cmake | EXPORTS_FILE |
Name of the CMake target exports file. More... | |
cmake | TEMPLATE |
cmake | USE_FILE |
Name of the CMake package use file. More... | |
cmake | VERSION_FILE |
Name of the CMake package version file. More... | |
Generates package configuration files.
This CMake script configures the <package>Config.cmake et al. files, once for the build tree and once for the install tree. Variables with a _CONFIG suffix are replaced in the default template file by either the value for the build or the install tree, respectively.
If present, this script includes the PROJECT_CONFIG_DIR/ConfigBuild.cmake
and/or PROJECT_CONFIG_DIR/ConfigInstall.cmake
file before configuring the Config.cmake.in template. If a file PROJECT_CONFIG_DIR/Config.cmake.in
exists, it is used as template. Otherwise, the default template file is used.
Similarly, if the file PROJECT_CONFIG_DIR/ConfigVersion.cmake.in
exists, it is used as template for the <package>ConfigVersion.cmake file. The same applies to ConfigUse.cmake.in.
Definition in file GenerateConfig.cmake.
BASIS_NS |
Definition at line 86 of file GenerateConfig.cmake.
cmake BASIS_TEMPLATE |
Definition at line 116 of file GenerateConfig.cmake.
cmake BASIS_USE |
Definition at line 217 of file GenerateConfig.cmake.
cmake cmake BUILD_CONFIG_SETTINGS |
Definition at line 122 of file GenerateConfig.cmake.
cmake TEMPLATE |
Definition at line 98 of file GenerateConfig.cmake.