BASIS  version 1.2.3 (revision 2104)
BasisScriptConfig.cmake
Go to the documentation of this file.
00001 ##############################################################################
00002 # @file  BasisScriptConfig.cmake
00003 # @brief BASIS script configuration.
00004 #
00005 # @note The file BasisScriptConfig.cmake is automatically generated
00006 #       by BASIS from the template file ScriptConfig.cmake.in which is part
00007 #       of the BASIS installation.
00008 #
00009 # This script configuration file is included before the default script
00010 # configuration file which is part of the package itself (ScriptConfig.cmake),
00011 # if such file exists in the @c PROJECT_CONFIG_DIR.
00012 # Therefore, the BASIS script configuration can be overwritten by the
00013 # default script configuration of the project, which in turn can be
00014 # overwritten specifically for each script target by specifying a
00015 # script target-specific script configuration using the @c CONFIG and/or
00016 # @c CONFIG_FILE option of the basis_add_executable() or basis_add_library()
00017 # command, respectively.
00018 #
00019 # See @ref BuildOfScriptTargets for more details.
00020 #
00021 # Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.<br />
00022 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
00023 #
00024 # Contact: SBIA Group <sbia-software at uphs.upenn.edu>
00025 #
00026 # @ingroup BasisScriptConfig
00027 ##############################################################################
00028 
00029 ## @addtogroup BasisScriptConfig
00030 # @{
00031 
00032 
00033 # ============================================================================
00034 # script attributes
00035 # ============================================================================
00036 
00037 # Note: The following set() commands are required for the API documentatoin.
00038 
00039 ## @brief Detected scripting language or UNKNOWN.
00040 set (LANGUAGE "${LANGUAGE}")
00041 
00042 ## @brief Directory of script file.
00043 #
00044 # @note Mainly used in script configuration itself to make relative paths
00045 #       absolute. In particular, basis_set_script_path() uses this variable.
00046 set (DIR "${DIR}")
00047 
00048 ## @brief Absolute path of script file.
00049 #
00050 # @note As this path is fixed after the build, it should be used only if
00051 #       it is not otherwise possible to determine the path of the current
00052 #       script file. It prohibits the relocation of the installation.
00053 set (FILE "${FILE}")
00054 
00055 ## @brief Name of script file.
00056 set (NAME "${NAME}")
00057 ## @brief Name of script file in uppercase only.
00058 set (NAME_UPPER "${NAME_UPPER}")
00059 ## @brief Name of script file in lowercase only.
00060 set (NAME_LOWER "${NAME_LOWER}")
00061 
00062 ## @brief Namespace string for use in global script variable names.
00063 set (NAMESPACE "${NAMESPACE}")
00064 ## @brief Namespace string for use in global script constant names.
00065 set (NAMESPACE_UPPER "${NAMESPACE_UPPER}")
00066 ## @brief Namespace string for use in global script variable and function names.
00067 set (NAMESPACE_LOWER "${NAMESPACE_LOWER}")
00068 
00069 # ============================================================================
00070 # directories
00071 # ============================================================================
00072 
00073 # ----------------------------------------------------------------------------
00074 # relative to script file
00075 
00076 # Example:
00077 # @code
00078 # #! /usr/bin/env bash
00079 # get_executable_directory exec_dir
00080 # libexec_dir=${exec_dir}/__LIBEXEC_DIR__
00081 # @endcode
00082 
00083 ## @brief Installation prefix relative to script location.
00084 basis_set_script_path (PREFIX_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3" "/sbia/sbiasfw/lab/basis/1.2.3/centos5")
00085 
00086 ## @brief Directory of main executables relative to script location.
00087 basis_set_script_path (RUNTIME_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/bin" "bin")
00088 ## @brief Directory of auxiliary executables relative to script location.
00089 basis_set_script_path (LIBEXEC_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib" "lib")
00090 ## @brief Directory of shared and module libraries relative to script location.
00091 basis_set_script_path (LIBRARY_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib" "lib")
00092 ## @brief Directory of static and import libraries relative to script location.
00093 basis_set_script_path (ARCHIVE_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib" "lib")
00094 ## @brief Directory of Python modules relative to script location.
00095 basis_set_script_path (PYTHON_LIBRARY_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib/python" "lib/python")
00096 ## @brief Directory of Perl modules relative to script location.
00097 basis_set_script_path (PERL_LIBRARY_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib/perl5" "lib/perl5")
00098 ## @brief Directory of auxiliary data files relative to script location.
00099 basis_set_script_path (DATA_DIR "/sbia/home/schuha/projects/basis-1.2.3/data" "share/data")
00100 
00101 # ----------------------------------------------------------------------------
00102 # relative to installation prefix
00103 
00104 # Example:
00105 # @code
00106 # #! /usr/bin/env bash
00107 # get_executable_directory exec_dir
00108 # libexec_dir=${exec_dir}/__PREFIX_DIR__/__LIBEXEC_DIR_SUFFIX__
00109 # @endcode
00110 
00111 basis_get_relative_path (RUNTIME_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${RUNTIME_DIR}")
00112 basis_get_relative_path (LIBEXEC_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${LIBEXEC_DIR}")
00113 basis_get_relative_path (LIBRARY_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${LIBRARY_DIR}")
00114 basis_get_relative_path (ARCHIVE_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${ARCHIVE_DIR}")
00115 basis_get_relative_path (PYTHON_LIBRARY_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${PYTHON_LIBRARY_DIR}")
00116 basis_get_relative_path (PERL_LIBRARY_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${PERL_LIBRARY_DIR}")
00117 basis_get_relative_path (DATA_DIR_SUFFIX "${DIR}/${PREFIX_DIR}" "${DIR}/${DATA_DIR}")
00118 
00119 # Note: The following set() commands are needed for the API documentation.
00120 
00121 ## @brief Directory of main executables relative to installation prefix.
00122 set (RUNTIME_DIR_SUFFIX "${RUNTIME_DIR_SUFFIX}")
00123 ## @brief Directory of auxiliary executables relative to installation prefix.
00124 set (LIBEXEC_DIR_SUFFIX "${LIBEXEC_DIR_SUFFIX}")
00125 ## @brief Directory of shared and module libraries relative to installation prefix.
00126 set (LIBRARY_DIR_SUFFIX "${LIBRARY_DIR_SUFFIX}")
00127 ## @brief Directory of static and import libraries relative to installation prefix.
00128 set (ARCHIVE_DIR_SUFFIX "${ARCHIVE_DIR_SUFFIX}")
00129 ## @brief Directory of Python modules relative to installation prefix.
00130 set (PYTHON_LIBRARY_DIR_SUFFIX "${PYTHON_LIBRARY_DIR_SUFFIX}")
00131 ## @brief Directory of Perl modules relative to installation prefix.
00132 set (PERL_LIBRARY_DIR_SUFFIX "${PERL_LIBRARY_DIR_SUFFIX}")
00133 ## @brief Directory of auxiliary data files relative to installation prefix.
00134 set (DATA_DIR_SUFFIX "${DATA_DIR_SUFFIX}")
00135 
00136 # ============================================================================
00137 # CMake variables required by BASIS_*_UTILITIES code
00138 # ============================================================================
00139 
00140 if ("BASIS" STREQUAL "BASIS")
00141   basis_set_script_path (BASIS_LIBRARY_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib" "lib")
00142 else ()
00143   basis_set_script_path (BASIS_LIBRARY_DIR "/sbia/home/schuha/sandbox/build/basis-1.2.3/lib")
00144 endif ()
00145 
00146 if ("BASIS" STREQUAL "BASIS")
00147   basis_set_script_path (BASIS_PYTHON_LIBRARY_DIR "/python" "lib/python")
00148 else ()
00149   basis_set_script_path (BASIS_PYTHON_LIBRARY_DIR "/python")
00150 endif ()
00151 
00152 if ("BASIS" STREQUAL "BASIS")
00153   basis_set_script_path (BASIS_PERL_LIBRARY_DIR "/perl5" "lib/perl5")
00154 else ()
00155   basis_set_script_path (BASIS_PERL_LIBRARY_DIR "/perl5")
00156 endif ()
00157 
00158 
00159 ## @}
00160 # end of Doxygen group