forked from gdoglz/MAF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAFInstallConfig.cmake.in
80 lines (63 loc) · 2.81 KB
/
MAFInstallConfig.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
#
# MAFConfig.cmake - MAF CMake configuration file for external projects
#
# This file is configured by MAF and used by UseMAF.cmake module
# to load MAF's settings for an external project. External projects
# can use these setting to build new modules against a MAF build tree
# or a MAF installation.
#
message (".......................... Entering MAFInstallConfig.cmake ............................")
# The C and C++ flags added by MAF to the cmake-configured flags.
set(MAF_REQUIRED_C_FLAGS "@MAF_REQUIRED_C_FLAGS@")
set(MAF_REQUIRED_CXX_FLAGS "@MAF_REQUIRED_CXX_FLAGS@")
set(MAF_REQUIRED_LINK_FLAGS "@MAF_REQUIRED_LINK_FLAGS@")
# The MAF version number
set(MAF_VERSION_MAJOR "@MAF_VERSION_MAJOR@")
set(MAF_VERSION_MINOR "@MAF_VERSION_MINOR@")
set(MAF_VERSION_PATCH "@MAF_VERSION_PATCH@")
# Whether MAF was built with modules and CLI support.
IF(MAF_USE_QT)
set(MAF_BUILD_QTLOADABLEMODULES "@MAF_BUILD_QTLOADABLEMODULES@")
ENDIF(MAF_USE_QT)
# Whether MAF was built with shared libraries.
set(MAF_BUILD_SHARED "@BUILD_SHARED_LIBS@")
# MAF options
#set(MAF_USE_PYTHON "@MAF_USE_PYTHON@")
# XML output dir of doxygen
set(MAF_XML_DOXYGEN "@MAF_XML_DOXYGEN@")
# MAF could be installed anywhere, so set all paths based on where
# this file was found (which should be the lib/MAF3 directory of the
# installation)
get_filename_component(MAF_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# MAF home (top of the tree)
set(MAF_HOME "${MAF_CONFIG_DIR}/../..")
get_filename_component(MAF_HOME ${MAF_HOME} ABSOLUTE)
# The CMake macros dir.
set(MAF_CMAKE_DIR "${MAF_HOME}/@MAF_INSTALL_LIB_DIR@/CMake")
# MAF Base library directories.
set(MAF_LIBRARY_DIRS
"${MAF_HOME}/@MAF_INSTALL_LIB_DIR@"
)
# MAF Base include file directories.
set(MAF_INCLUDE_DIRS
"${MAF_HOME}/@MAF_INSTALL_INCLUDE_DIR@"
)
# The location of the UseMAF.cmake file.
set(MAF_USE_FILE "${MAF_CONFIG_DIR}/UseMAF.cmake")
# The build settings file.
set(MAF_BUILD_SETTINGS_FILE
"${MAF_CONFIG_DIR}/MAFBuildSettings.cmake")
# The MAF relative install directories.
set(MAF_INSTALL_BIN_DIR "@MAF_INSTALL_BIN_DIR@")
set(MAF_INSTALL_LIB_DIR "@MAF_INSTALL_LIB_DIR@")
set(MAF_INSTALL_INCLUDE_DIR "@MAF_INSTALL_INCLUDE_DIR@")
set(MAF_INSTALL_SHARE_DIR "@MAF_INSTALL_SHARE_DIR@")
# Components needed to build modules from outside a MAF build tree or
# from outside a MAF installation tree
set(VTK_DIR "${MAF_HOME}/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@")
#set(PYTHON_INCLUDE_PATH "@PYTHON_INCLUDE_PATH@")
#get_filename_component(PYTHON_LIB_FILE "${PYTHON_LIBRARY}" NAME)
#set(PYTHON_LIBRARIES "${MAF_HOME}/lib/Python/lib/${PYTHON_LIB_FILE}")
#get_filename_component(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_PATH}" NAME)
#set(PYTHON_INCLUDE_PATH "${MAF_HOME}/lib/Python/include/${PYTHON_INCLUDE_DIR}")
message (".......................... Exiting MAFInstallConfig.cmake ............................")