1 ############################################################################## 2 # @file BasisScriptConfig.cmake 3 # @brief BASIS script configuration. 5 # @note The file BasisScriptConfig.cmake is automatically generated by BASIS 6 # from the template file ScriptConfig.cmake.in which is part of BASIS. 8 # This script configuration file is included before the default script 9 # configuration file which is part of the package itself (ScriptConfig.cmake), 10 # if such file exists in the @c PROJECT_CONFIG_DIR. 11 # Therefore, the BASIS script configuration can be overwritten by the 12 # default script configuration of the project, which in turn can be 13 # overwritten specifically for each script target by specifying a 14 # script target-specific script configuration using the @c CONFIG and/or 15 # @c CONFIG_FILE option of the basis_add_executable() or basis_add_library() 16 # command, respectively. 18 # @sa https://cmake-basis.github.io/standard/scripttargets.html#script-configuration 20 # @ingroup BasisScriptConfig 21 ############################################################################## 23 ## @addtogroup BasisScriptConfig 27 # ============================================================================ 29 # ============================================================================ 31 # Note: The following set() commands are required for the API documentation. 33 ## @brief Detected scripting language or UNKNOWN. 34 set (LANGUAGE
"${LANGUAGE}")
36 ## @brief Directory of script file.
38 # @note Mainly used in script configuration itself to make relative paths
39 # absolute. In particular, basis_set_script_path() uses
this variable.
40 set (__DIR__
"${__DIR__}")
42 ## @brief Absolute path of script file. 44 # @note As this path is fixed after the build, it should be used only if 45 # it is not otherwise possible to determine the path of the current 46 # script file. It prohibits the relocation of the installation. 47 set (__FILE__
"${__FILE__}")
49 ## @brief Name of script file.
50 set (__NAME__
"${__NAME__}")
52 ## @brief Name of script file in uppercase only. 53 string (TOUPPER
"${__NAME__}" __NAME_U__)
54 ## @brief Name of script file in lowercase only. 55 string (TOLOWER
"${__NAME__}" __NAME_L__)
57 # ============================================================================ 58 # aliases of script attributes for backward compatibility 59 # ============================================================================ 62 set (FILE ${__FILE__})
63 set (NAME ${__NAME__})
64 set (NAME_U ${__NAME_U__})
65 set (NAME_L ${__NAME_L__})
67 # ============================================================================
69 # ============================================================================
71 # ----------------------------------------------------------------------------
72 # relative to script file
76 # #! /usr/bin/env bash
77 # get_executable_directory exec_dir
78 # libexec_dir=${exec_dir}/__LIBEXEC_DIR__
81 ## @brief Installation prefix relative to script location. 82 basis_set_script_path (PREFIX_DIR
"/Users/athundt/source/grl/build" "/Users/athundt/bin/grl")
84 ## @brief Directory of main executables relative to script location. 85 basis_set_script_path (RUNTIME_DIR
"/Users/athundt/source/grl/build/bin" "bin")
86 ## @brief Directory of auxiliary executables relative to script location. 87 basis_set_script_path (LIBEXEC_DIR
"/Users/athundt/source/grl/build/lib" "lib")
88 ## @brief Directory of shared and module libraries relative to script location. 89 basis_set_script_path (LIBRARY_DIR
"/Users/athundt/source/grl/build/lib" "lib")
90 ## @brief Directory of static and import libraries relative to script location. 91 basis_set_script_path (ARCHIVE_DIR
"/Users/athundt/source/grl/build/lib" "lib")
92 ## @brief Directory of auxiliary data files relative to script location. 93 basis_set_script_path (DATA_DIR
"/Users/athundt/source/grl/data" "share/data")
95 ## @brief Directory of Python modules relative to script location. 96 basis_set_script_path (PYTHON_LIBRARY_DIR
"/Users/athundt/source/grl/build/lib/python" "lib/python")
97 ## @brief Directory of Jython modules relative to script location. 98 basis_set_script_path (JYTHON_LIBRARY_DIR
"/Users/athundt/source/grl/build/lib/jython" "lib/jython")
99 ## @brief Directory of Perl modules relative to script location. 100 basis_set_script_path (PERL_LIBRARY_DIR
"/Users/athundt/source/grl/build/lib/perl" "lib/perl")
101 ## @brief Directory of MATLAB modules relative to script location. 102 basis_set_script_path (MATLAB_LIBRARY_DIR
"/Users/athundt/source/grl/build/lib/matlab" "lib/matlab")
103 ## @brief Directory of Bash modules relative to script location. 104 basis_set_script_path (BASH_LIBRARY_DIR
"/Users/athundt/source/grl/build/lib/bash" "lib/bash")
106 # ---------------------------------------------------------------------------- 107 # relative to installation prefix 111 # #! /usr/bin/env bash 112 # get_executable_directory exec_dir 113 # libexec_dir=${exec_dir}/__PREFIX_DIR__/__LIBEXEC_DIR_SUFFIX__ 116 basis_get_relative_path (RUNTIME_DIR_SUFFIX
"${__DIR__}/${PREFIX_DIR}" "${__DIR__}/${RUNTIME_DIR}")
117 basis_get_relative_path (LIBEXEC_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${LIBEXEC_DIR}
") 118 basis_get_relative_path (LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${LIBRARY_DIR}
") 119 basis_get_relative_path (ARCHIVE_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${ARCHIVE_DIR}
") 120 basis_get_relative_path (DATA_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${DATA_DIR}
") 122 basis_get_relative_path (PYTHON_LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${PYTHON_LIBRARY_DIR}
") 123 basis_get_relative_path (JYTHON_LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${JYTHON_LIBRARY_DIR}
") 124 basis_get_relative_path (PERL_LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${PERL_LIBRARY_DIR}
") 125 basis_get_relative_path (MATLAB_LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${MATLAB_LIBRARY_DIR}
") 126 basis_get_relative_path (BASH_LIBRARY_DIR_SUFFIX "${__DIR__}/${PREFIX_DIR}
" "${__DIR__}/${BASH_LIBRARY_DIR}
") 128 # Note: The following set() commands are needed for the API documentation. 130 ## @brief Directory of main executables relative to installation prefix. 131 set (RUNTIME_DIR_SUFFIX "${RUNTIME_DIR_SUFFIX}
") 132 ## @brief Directory of auxiliary executables relative to installation prefix. 133 set (LIBEXEC_DIR_SUFFIX "${LIBEXEC_DIR_SUFFIX}
") 134 ## @brief Directory of shared and module libraries relative to installation prefix. 135 set (LIBRARY_DIR_SUFFIX "${LIBRARY_DIR_SUFFIX}
") 136 ## @brief Directory of static and import libraries relative to installation prefix. 137 set (ARCHIVE_DIR_SUFFIX "${ARCHIVE_DIR_SUFFIX}
") 138 ## @brief Directory of auxiliary data files relative to installation prefix. 139 set (DATA_DIR_SUFFIX "${DATA_DIR_SUFFIX}
") 141 ## @brief Directory of Python modules relative to installation prefix. 142 set (PYTHON_LIBRARY_DIR_SUFFIX "${PYTHON_LIBRARY_DIR_SUFFIX}
") 143 ## @brief Directory of Jython modules relative to installation prefix. 144 set (JYTHON_LIBRARY_DIR_SUFFIX "${JYTHON_LIBRARY_DIR_SUFFIX}
") 145 ## @brief Directory of Perl modules relative to installation prefix. 146 set (PERL_LIBRARY_DIR_SUFFIX "${PERL_LIBRARY_DIR_SUFFIX}
") 147 ## @brief Directory of MATLAB modules relative to installation prefix. 148 set (MATLAB_LIBRARY_DIR_SUFFIX "${MATLAB_LIBRARY_DIR_SUFFIX}
") 149 ## @brief Directory of Bash modules relative to installation prefix. 150 set (BASH_LIBRARY_DIR_SUFFIX "${BASH_LIBRARY_DIR_SUFFIX}
") 154 # end of Doxygen group