Variables
GenerateConfig.cmake File Reference

Generates package configuration files. More...

#include "/BasisConfigSettings.cmake"
#include "${PROJECT_CONFIG_DIR}/ConfigSettings.cmake"
+ Include dependency graph for GenerateConfig.cmake:

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...
 

Detailed Description

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.

Variable Documentation

§ BASIS_NS

BASIS_NS
Initial value:
= " set (NS \"${PROJECT_CONFIG_PREFIX}_\") if (\${NS}CONFIG_PREFIX) set (NS \"\${\${NS}CONFIG_PREFIX}_\") endif ()"
cmake TEMPLATE
cmake TEMPLATE

Definition at line 86 of file GenerateConfig.cmake.

§ BASIS_TEMPLATE

cmake BASIS_TEMPLATE

Definition at line 116 of file GenerateConfig.cmake.

§ BASIS_USE

cmake BASIS_USE

Definition at line 217 of file GenerateConfig.cmake.

§ BUILD_CONFIG_SETTINGS

cmake cmake BUILD_CONFIG_SETTINGS

Definition at line 122 of file GenerateConfig.cmake.

§ TEMPLATE

cmake TEMPLATE

Definition at line 98 of file GenerateConfig.cmake.