1 # ============================================================================== 2 # Medical Image Registration ToolKit (MIRTK) 4 # Copyright 2016 Imperial College London 5 # Copyright 2016 Andreas Schuh 7 # Licensed under the Apache License, Version 2.0 (the "License"); 8 # you may not use this file except in compliance with the License. 9 # You may obtain a copy of the License at 11 # http://www.apache.org/licenses/LICENSE-2.0 13 # Unless required by applicable law or agreed to in writing, software 14 # distributed under the License is distributed on an "AS IS" BASIS, 15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 # See the License for the specific language governing permissions and 17 # limitations under the License. 18 # ============================================================================== 20 ############################################################################## 21 # @file ConfigSettings.cmake 22 # @brief Sets variables used in CMake package configuration. 24 # It is suggested to use @c _CONFIG as suffix for variable names that are to 25 # be substituted in the Config.cmake.in template file in order to distinguish 26 # these variables from the build configuration. 28 # @note The default BasisConfigSettings.cmake file which is part of the BASIS 29 # installation is included prior to this file. Hence, the variables are 30 # valid even if a custom project-specific configuration is used and 31 # default values can further be overwritten in this file. 33 # @ingroup BasisSettings 34 ############################################################################## 36 # ============================================================================ 37 # build tree configuration settings 38 # ============================================================================ 40 if (BUILD_CONFIG_SETTINGS)
41 set (BASIS_MODULE_PATH_CONFIG
"${BASIS_MODULE_PATH}")
42 set (MIRTK_MODULE_PATH_CONFIG
"${MIRTK_MODULE_PATH}")
43 set (MIRTK_TOOLS_DIR_CONFIG
"${MIRTK_TOOLS_PATH}")
47 # ============================================================================ 48 # installation configuration settings 49 # ============================================================================ 51 ## @brief Directory of CMake BASIS Modules. 52 set (BASIS_MODULE_PATH_CONFIG
"\${\${NS}INSTALL_PREFIX}/${INSTALL_CMAKE_MODULES_DIR}")
53 ## @brief Directory of MIRTK CMake Modules.
54 set (MIRTK_MODULE_PATH_CONFIG
"\${\${NS}INSTALL_PREFIX}/${INSTALL_CMAKE_MODULES_DIR}")
55 ## @brief Directory of MIRTK command executables. 56 set (MIRTK_TOOLS_DIR_CONFIG
"\${\${NS}INSTALL_PREFIX}/${INSTALL_TOOLS_DIR}")