-
Notifications
You must be signed in to change notification settings - Fork 50
/
GenerateSlicerExecutionModelConfig.cmake
69 lines (57 loc) · 2.25 KB
/
GenerateSlicerExecutionModelConfig.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
64
65
66
67
68
69
# Generate the SlicerExecutionModelConfig.cmake file in the build tree
# and configure one in the installation tree.
# Settings specific to build trees
#
#
set(SlicerExecutionModel_INCLUDE_DIRS_CONFIG ${SlicerExecutionModel_INCLUDE_DIRS})
set(SlicerExecutionModel_LIBRARIES_CONFIG ModuleDescriptionParser)
if(SlicerExecutionModel_USE_JSONCPP)
set(DEFAULT_SEM_TARGET_LIBRARIES_CONFIG ${JsonCpp_LIBRARIES})
endif()
set(SlicerExecutionModel_USE_FILE_CONFIG
${SlicerExecutionModel_BINARY_DIR}/UseSlicerExecutionModel.cmake)
set(SlicerExecutionModel_DEFAULT_CLI_RUNTIME_OUTPUT_DIRECTORY_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_RUNTIME_OUTPUT_DIRECTORY}
)
set(SlicerExecutionModel_DEFAULT_CLI_LIBRARY_OUTPUT_DIRECTORY_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_LIBRARY_OUTPUT_DIRECTORY}
)
set(SlicerExecutionModel_DEFAULT_CLI_ARCHIVE_OUTPUT_DIRECTORY_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_ARCHIVE_OUTPUT_DIRECTORY}
)
set(SlicerExecutionModel_DEFAULT_CLI_INSTALL_RUNTIME_DESTINATION_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_INSTALL_RUNTIME_DESTINATION}
)
set(SlicerExecutionModel_DEFAULT_CLI_INSTALL_LIBRARY_DESTINATION_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_INSTALL_LIBRARY_DESTINATION}
)
set(SlicerExecutionModel_DEFAULT_CLI_INSTALL_ARCHIVE_DESTINATION_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_INSTALL_ARCHIVE_DESTINATION}
)
set(SlicerExecutionModel_DEFAULT_CLI_TARGETS_FOLDER_PREFIX_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_TARGETS_FOLDER_PREFIX}
)
set(SlicerExecutionModel_LIBRARY_DIRS_CONFIG
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
)
set(SlicerExecutionModel_DEFAULT_CLI_LIBRARY_WRAPPER_CXX_CONFIG
${SlicerExecutionModel_DEFAULT_CLI_LIBRARY_WRAPPER_CXX}
)
# Configure SlicerExecutionModelConfig.cmake for the build tree.
#
configure_file(
${SlicerExecutionModel_SOURCE_DIR}/SlicerExecutionModelConfig.cmake.in
${SlicerExecutionModel_BINARY_DIR}/SlicerExecutionModelConfig.cmake
@ONLY
)
# Settings specific for installation trees
#
#
# TODO - Configure SlicerExecutionModelConfig.cmake for the install tree.
#
#configure_file(
# ${SlicerExecutionModel_SOURCE_DIR}/SlicerExecutionModelInstallConfig.cmake.in
# ${SlicerExecutionModel_BINARY_DIR}/install/SlicerExecutionModelConfig.cmake
# @ONLY
# )