BASIS  r3148
Settings.cmake
Go to the documentation of this file.
00001 ##############################################################################
00002 # @file  Settings.cmake
00003 # @brief Non-default project settings.
00004 #
00005 # This file is included by basis_project_impl() after it looked for the
00006 # required and optional dependencies and the CMake variables related to the
00007 # project directory structure were defined (see BASISDirectories.cmake file
00008 # in @c PROJECT_BINARY_DIR, where BASIS is here the name of the project).
00009 # It is further included before the BasisSettings.cmake file.
00010 #
00011 # In particular, build options should be added in this file using CMake's
00012 # <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:option">
00013 # option()</a> command. Further, any common settings related to using a found
00014 # dependency can be set here if the basis_use_package() command was enable
00015 # to import the required configuration of a particular external package.
00016 #
00017 # Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.<br />
00018 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
00019 #
00020 # Contact: SBIA Group <sbia-software at uphs.upenn.edu>
00021 #
00022 # @ingroup BasisSettings
00023 ##############################################################################
00024 
00025 # ============================================================================
00026 # directories
00027 # ============================================================================
00028 
00029 # installation directory of CMake modules
00030 set (INSTALL_MODULES_DIR "${INSTALL_SHARE_DIR}/cmake-modules")
00031 
00032 # installation directory of utilities template files
00033 set (INSTALL_CXX_TEMPLATES_DIR    "${INSTALL_SHARE_DIR}/utilities")
00034 set (INSTALL_JAVA_TEMPLATES_DIR   "${INSTALL_SHARE_DIR}/utilities")
00035 set (INSTALL_PYTHON_TEMPLATES_DIR "${INSTALL_SHARE_DIR}/utilities")
00036 set (INSTALL_PERL_TEMPLATES_DIR   "${INSTALL_SHARE_DIR}/utilities")
00037 set (INSTALL_MATLAB_TEMPLATES_DIR "${INSTALL_SHARE_DIR}/utilities")
00038 set (INSTALL_BASH_TEMPLATES_DIR   "${INSTALL_SHARE_DIR}/utilities")
00039 
00040 # common prefix of Sphinx extensions
00041 set (SPHINX_EXTENSIONS_PREFIX "basis/sphinx/ext/")
00042 # installation directory of Sphinx themes
00043 set (INSTALL_SPHINX_THEMES_DIR "${INSTALL_SHARE_DIR}/sphinx-themes")
00044 
00045 # ============================================================================
00046 # project template
00047 # ============================================================================
00048 
00049 option (BUILD_PROJECT_TOOL "Request build of the basisproject command-line tool." ON)
00050 
00051 # installation directory of project template files
00052 set (INSTALL_TEMPLATE_DIR "${INSTALL_SHARE_DIR}/template")
00053 
00054 # ============================================================================
00055 # utilities
00056 # ============================================================================
00057 
00058 # list of enabled utilities
00059 # in case of other projects defined by BASISConfig.cmake
00060 set (BASIS_UTILITIES_ENABLED CXX)
00061 if (PythonInterp_FOUND)
00062   list (APPEND BASIS_UTILITIES_ENABLED PYTHON)
00063 endif ()
00064 if (Perl_FOUND)
00065   list (APPEND BASIS_UTILITIES_ENABLED PERL)
00066 endif ()
00067 if (BASH_FOUND)
00068   list (APPEND BASIS_UTILITIES_ENABLED BASH)
00069 endif ()
00070 
00071 # configure all BASIS utilities such that they are included in API
00072 # documentation even if BASIS does not use them itself
00073 if (Java_FOUND)
00074   basis_set_project_property (PROPERTY PROJECT_USES_JAVA_UTILITIES TRUE)
00075 endif ()
00076 if (PythonInterp_FOUND)
00077   basis_set_project_property (PROPERTY PROJECT_USES_PYTHON_UTILITIES TRUE)
00078 endif ()
00079 if (Perl_FOUND)
00080   basis_set_project_property (PROPERTY PROJECT_USES_PERL_UTILITIES TRUE)
00081 endif ()
00082 if (BASH_FOUND)
00083   basis_set_project_property (PROPERTY PROJECT_USES_BASH_UTILITIES TRUE)
00084 endif ()
00085 if (MATLAB_FOUND)
00086   basis_set_project_property (PROPERTY PROJECT_USES_MATLAB_UTILITIES TRUE)
00087 endif ()
00088 
00089 # target UIDs of BASIS libraries; these would be set by the package configuration
00090 # file if this BASIS project would not be BASIS itself
00091 if (BASIS_USE_FULLY_QUALIFIED_UIDS)
00092   set (NS "sbia.basis.")
00093 else ()
00094   set (NS)
00095 endif ()
00096 set (BASIS_CXX_UTILITIES_LIBRARY    "${NS}utilities_cxx")
00097 set (BASIS_PYTHON_UTILITIES_LIBRARY "${NS}utilities_python")
00098 set (BASIS_PERL_UTILITIES_LIBRARY   "${NS}utilities_perl")
00099 set (BASIS_BASH_UTILITIES_LIBRARY   "${NS}utilities_bash")
00100 set (BASIS_TEST_LIBRARY             "${NS}testlib")
00101 set (BASIS_TEST_MAIN_LIBRARY        "${NS}testmain")