forked from gdoglz/MAF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGenerateMAFConfig.cmake
63 lines (54 loc) · 2.04 KB
/
GenerateMAFConfig.cmake
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
# Generate the MAFConfig.cmake file in the build tree and configure one
# for the installation tree. This file tells external project how to use
# MAF. This provides a mechanism for third party developers to build
# modules against a MAF installation.
#
#
# The configuration process is very different for a build tree and an
# installation. The resulting directory structures are vastly
# different. So, the two configured files not only have different
# settings, they have a different structure.
# Settings that are the same for build trees and installation trees
#
#
# Settings specific to build trees
#
#
SET(MAF_ROOT_DIR ${MAF_SOURCE_DIR})
SET(MAF_ROOT_BINARY_DIR ${MAF_BINARY_DIR})
SET(MAF_INTERNAL_BUILD_DIR ${MAF_BINARY_DIR}/build)
SET(MAF_EXTERNAL_BUILD_DIR ${MAF_BINARY_DIR}/ExternalLibraries)
SET(MAF_USE_FILE_CONFIG ${MAF_BINARY_DIR}/UseMAF.cmake)
SET(MAF_SRC_DIRS_CONFIG ${MAF_SOURCE_DIR}/src)
SET(MAF_BIN_DIRS_CONFIG ${MAF_INTERNAL_BUILD_DIR}/bin)
# pass options to mafConfig.cmake
SET(MAF_CORE ${MAF_CORE})
SET(MAF_EVENT_BUS ${MAF_EVENT_BUS})
SET(MAF_TIME_SPACE ${MAF_TIME_SPACE})
SET(MAF_SERIALIZATION ${MAF_SERIALIZATION})
SET(MAF_RESOURCES ${MAF_RESOURCES})
SET(MAF_PLUGINVTK ${MAF_PLUGINVTK})
SET(MAF_PLUGIN_ZIP ${MAF_PLUGIN_ZIP})
SET(MAF_MSV_EXTENSION ${MAF_MSV_EXTENSION})
SET(VTK_MAF ${VTK_MAF})
SET(MAF_APPLICATION_LOGIC ${MAF_APPLICATION_LOGIC})
SET(MAF_QTGUI ${MAF_QTGUI})
SET(MAF_SCRIPT_INTERPRETER ${MAF_SCRIPT_INTERPRETER})
SET(DATA_TEST ${DATA_TEST})
SET(MAF_DATA_DIR ${MAF_DATA_DIR})
SET(BUILD_TEST_SUITE ${BUILD_TEST_SUITE})
SET(BUILD_EXAMPLES ${BUILD_EXAMPLES})
SET(VTK_DIR_CONFIG ${VTK_DIR})
SET(PYTHONLIBS_FOUND ${PYTHONLIBS_FOUND})
SET(PYTHON_INCLUDE_PATH ${PYTHON_INCLUDE_PATH})
SET(PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
SET(PYTHON_LIBRARY ${PYTHON_LIBRARY})
#valgrind
SET(valgrind_EXECUTABLE ${valgrind_EXECUTABLE})
SET(valgrind_PATH ${valgrind_PATH})
SET(valgrind_ENABLE ${valgrind_ENABLE})
# Configure MAFConfig.cmake for the install tree.
CONFIGURE_FILE(
${MAF_SOURCE_DIR}/MAFConfig.cmake.in
${MAF_BINARY_DIR}/MAFConfig.cmake @ONLY
)