BASIS  r3148
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

cmake BASIS_NS
cmake BASIS_TEMPLATE
cmake BASIS_USE
cmake BUILD_CONFIG_SETTINGS
cmake CONFIG_FILE
 Name of the CMake package configuration file.
cmake CONFIG_PREFIX
 Package name.
cmake CUSTOM_EXPORTS_FILE
 Name of the CMake target exports file for custom targets.
cmake EXPORTS_FILE
 Name of the CMake target exports file.
cmake TEMPLATE
cmake USE_FILE
 Name of the CMake package use file.
cmake VERSION_FILE
 Name of the CMake package version file.

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.

Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.

Contact: SBIA Group <sbia-software at uphs.upenn.edu>

Definition in file GenerateConfig.cmake.


Variable Documentation

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









cmake TEMPLATE

Definition at line 55 of file GenerateConfig.cmake.

Definition at line 114 of file GenerateConfig.cmake.

cmake BASIS_USE

Definition at line 207 of file GenerateConfig.cmake.

cmake cmake BUILD_CONFIG_SETTINGS

Definition at line 120 of file GenerateConfig.cmake.

cmake TEMPLATE

Definition at line 96 of file GenerateConfig.cmake.