-
Notifications
You must be signed in to change notification settings - Fork 11
/
ConfigUse.cmake.in
96 lines (86 loc) · 3.36 KB
/
ConfigUse.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# ============================================================================
# Copyright (c) 2011-2012 University of Pennsylvania
# Copyright (c) 2013-2014 Andreas Schuh
# All rights reserved.
#
# See COPYING file for license information or visit
# http://opensource.andreasschuh.com/cmake-basis/download.html#license
# ============================================================================
##############################################################################
# @file @USE_FILE@
# @brief CMake package configuration use file.
#
# @note The @USE_FILE@ file is automatically generated
# by BASIS from the template file ConfigUse.cmake.in which is part of
# the BASIS package.
#
# In the default package use file of BASIS, which can be included here using
# the \@BASIS_USE\@ variable, the prefix used by the package configuration
# file is defined as @c NS variable. Thus, to use any variable set by the
# corresponding package configuration file, use code similar to:
#
# @code
# include_directories (${${NS}INCLUDE_DIRS})
# @endcode
#
# See the ConfigUse.cmake.in file of BASIS for details.
#
# @note The CMake code which is substituted for the \@BASIS_USE\@ variable
# contains an include guard.
#
# @ingroup BasisConfig
##############################################################################
@BASIS_USE@
# ============================================================================
# @PROJECT_NAME@ configuration
# ============================================================================
# ----------------------------------------------------------------------------
# Import configured script executables
# The following statements ensure that all scripts and modules are
# configured/compiled using the same version of the interpreters.
# Yet, the user can modify these variables, though this is not recommended.
# Note: The PERL_EXECUTABLE, and BASH_EXECUTABLE variables have to be cached
# such that the FindPerl.cmake, and FindBASH.cmake modules find the
# respective executable.
#
# Attention: DO NOT set PYTHON_EXECUTABLE here. In case of a Slicer Extension,
# the UseSlicer.cmake file requires us not to set PYTHON_EXECUTABLE
# before including this file. As the @USE_FILE@ file is included
# before any other dependency, the PYTHON_EXECUTABLE variable is
# set by the basis_project_impl() macro.
## @brief Jython interpreter configured when building BASIS.
if (BASIS_JYTHON_EXECUTABLE)
set (
JYTHON_EXECUTABLE
"${BASIS_JYTHON_EXECUTABLE}"
CACHE PATH
"The Jython interpreter."
)
mark_as_advanced (JYTHON_EXECUTABLE)
endif ()
## @brief Perl interpreter configured when building BASIS.
if (BASIS_PERL_EXECUTABLE)
set (
PERL_EXECUTABLE
"${BASIS_PERL_EXECUTABLE}"
CACHE PATH
"The Perl interpreter."
)
mark_as_advanced (PERL_EXECUTABLE)
endif ()
## @brief Bash executable configured when building BASIS.
if (BASIS_BASH_EXECUTABLE)
set (
BASH_EXECUTABLE
"${BASIS_BASH_EXECUTABLE}"
CACHE PATH
"The BASH executable."
)
mark_as_advanced (BASH_EXECUTABLE)
endif ()
# ----------------------------------------------------------------------------
# include further required BASIS CMake modules
# base tools included by @PROJECT_NAME@Config.cmake already
if (BASIS_SUPER_BUILD_MODULES)
include (${BASIS_MODULE_PATH}/SuperBuildTools.cmake)
endif ()