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