-
Notifications
You must be signed in to change notification settings - Fork 5
/
GenerateSlicerConfig.cmake
56 lines (46 loc) · 2.14 KB
/
GenerateSlicerConfig.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
# Generate the SlicerConfig.cmake file in the build tree and configure one
# for the installation tree. This file tells external project how to use
# Slicer. This provides a mechanism for third party developers to build
# modules against a Slicer 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(TCLAP_DIR_CONFIG ${Slicer_BINARY_DIR}/Libs/SlicerExecutionModel/tclap)
SET(ModuleDescriptionParser_DIR_CONFIG ${Slicer_BINARY_DIR}/Libs/SlicerExecutionModel/ModuleDescriptionParser)
SET(GenerateCLP_DIR_CONFIG ${Slicer_BINARY_DIR}/Libs/SlicerExecutionModel/GenerateCLP)
SET(Slicer_USE_FILE_CONFIG ${Slicer_BINARY_DIR}/UseSlicer.cmake)
SET(LoadableModule_DIR_CONFIG ${Slicer_BINARY_DIR}/Libs/LoadableModule)
SET(Slicer_Libs_INCLUDE_DIRS_CONFIG ${Slicer_Libs_INCLUDE_DIRS})
SET(Slicer_Libs_LIBRARY_DIRS_CONFIG ${Slicer_BINARY_DIR}/bin ${Slicer_BINARY_DIR}/lib)
SET(Slicer_Base_INCLUDE_DIRS_CONFIG ${Slicer_Base_INCLUDE_DIRS})
SET(Slicer_Base_LIBRARY_DIRS_CONFIG ${Slicer_BINARY_DIR}/bin)
SET(ITK_DIR_CONFIG ${ITK_DIR})
SET(VTK_DIR_CONFIG ${VTK_DIR})
IF (Slicer_USE_KWWIDGETS)
SET(KWWidgets_DIR_CONFIG ${KWWidgets_DIR})
ENDIF (Slicer_USE_KWWIDGETS)
SET(Teem_DIR_CONFIG ${Teem_DIR})
SET(PYTHON_INCLUDE_PATH_CONFIG ${PYTHON_INCLUDE_PATH})
SET(PYTHON_LIBRARIES_CONFIG ${PYTHON_LIBRARIES})
SET(BatchMake_DIR_CONFIG ${BatchMake_DIR})
SET(OpenCV_DIR_CONFIG ${OpenCV_DIR})
# Configure SlicerConfig.cmake for the install tree.
CONFIGURE_FILE(
${Slicer_SOURCE_DIR}/SlicerConfig.cmake.in
${Slicer_BINARY_DIR}/SlicerConfig.cmake @ONLY)
# Settings specific for installation trees
#
# (Note we configure from a different file than use for the build tree)
# Configure SlicerConfig.cmake for the install tree.
CONFIGURE_FILE(
${Slicer_SOURCE_DIR}/SlicerInstallConfig.cmake.in
${Slicer_BINARY_DIR}/Utilities/SlicerConfig.cmake @ONLY)