1 # ============================================================================ 2 # Copyright (c) 2011-2012 University of Pennsylvania 3 # Copyright (c) 2013-2016 Andreas Schuh 6 # See COPYING file for license information or visit 7 # https://cmake-basis.github.io/download.html#license 8 # ============================================================================ 10 ############################################################################## 11 # @file Settings.cmake 12 # @brief Non-default project settings. 14 # This file is included by basis_project_impl() after it looked for the 15 # required and optional dependencies and the CMake variables related to the 16 # project directory structure were defined (see BASISDirectories.cmake file 17 # in @c PROJECT_BINARY_DIR, where BASIS is here the name of the project). 18 # It is also included before the BasisSettings.cmake file. 20 # In particular, build options should be added in this file using CMake's 21 # <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:option"> 22 # option()</a> command. Further, any common settings related to using a found 23 # dependency can be set here if the basis_use_package() command was enable 24 # to import the required configuration of a particular external package. 26 # @ingroup BasisSettings 27 ############################################################################## 29 # ============================================================================ 31 # ============================================================================ 33 # change default installation directory as name of BASIS package has changed 34 if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
35 string (REPLACE
"/basis" "/cmake-basis" _PREFIX
"${CMAKE_INSTALL_PREFIX}")
40 # installation directory of CMake modules 44 # installation directory of utilities template files 52 # common prefix of Sphinx extensions 54 # installation directory of Sphinx themes
57 # ============================================================================ 59 # ============================================================================ 62 include (CheckTypeSize)
63 include (CheckIncludeFileCXX)
65 # check if type long long is supported 66 CHECK_TYPE_SIZE (
"long long" LONG_LONG)
74 # check for presence of sstream header 75 include (TestForSSTREAM)
77 if (CMAKE_NO_ANSI_STRING_STREAM)
83 # check if tr/tuple header file is available 84 if (CMAKE_GENERATOR MATCHES
"Visual Studio [1-9][0-9]+")
95 # check for availibility of pthreads library 96 # defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT 100 if (CMAKE_USE_PTHREADS_INIT)
107 # list of enabled utilities 108 # in case of other projects defined by BASISConfig.cmake 110 if (PythonInterp_FOUND)
120 # configure all BASIS utilities such that they are included in API 121 # documentation even if BASIS does not use them itself 125 if (PythonInterp_FOUND)
138 # target UIDs of BASIS libraries; these would be set by the package configuration 139 # file if this BASIS project would not be BASIS itself 152 # ============================================================================ 153 # configure public header files 154 # ============================================================================ 157 configure_file (
"include/basis/config.h.in" "${BINARY_INCLUDE_DIR}/basis/config.h")
cmake INSTALL_SPHINX_THEMES_DIR
cmake INSTALL_PYTHON_TEMPLATES_DIR
cmake INSTALL_PERL_TEMPLATES_DIR
cmake BASIS_PERL_UTILITIES_LIBRARY
cmake BASIS_CONFIGURE_PUBLIC_HEADERS
Whether BASIS should configure any public header file with the .in file name suffix.
cmake INSTALL_CXX_TEMPLATES_DIR
cmake INSTALL_JAVA_TEMPLATES_DIR
cmake INSTALL_MATLAB_TEMPLATES_DIR
function basis_set_project_property()
Set project-global property.
cmake INSTALL_MODULES_DIR
cmake INSTALL_FIND_MODULES_DIR
cmake BASIS_USE_FULLY_QUALIFIED_UIDS
Whether BASIS shall use fully-qualified target UIDs.
cmake BASIS_TEST_MAIN_LIBRARY
cmake SPHINX_EXTENSIONS_PREFIX
cmake CMAKE_INSTALL_PREFIX
cmake BASIS_PYTHON_UTILITIES_LIBRARY
cmake INSTALL_BASH_TEMPLATES_DIR
cmake BASIS_CXX_UTILITIES_LIBRARY
cmake BASIS_BASH_UTILITIES_LIBRARY
macro find_package()
Overloaded find_package() command.
cmake BASIS_UTILITIES_ENABLED