-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIRSGenerateConfig.cmake
70 lines (51 loc) · 1.91 KB
/
AIRSGenerateConfig.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 AIRSConfig.cmake file in the build tree. This doesnot
# configure one for installation. The file tells external projects how to use
# AIRS.
# Help store a literal dollar in a string. CMake 2.2 allows escaped
# dollars but we have to support CMake 2.0.
SET(DOLLAR "$")
#-----------------------------------------------------------------------------
# Settings for the build tree.
EXPORT(TARGETS ${AIRS_LIBRARIES}
FILE ${AIRS_BINARY_DIR}/AIRSTargets.cmake)
# Set the source dir
SET(AIRS_SOURCE_DIR_CONFIG ${AIRS_SOURCE_DIR})
# The library dependencies file.
SET(AIRS_LIBRARY_DEPENDS_FILE
${AIRS_BINARY_DIR}/AIRSLibraryDepends.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake)
CMAKE_EXPORT_BUILD_SETTINGS(
${AIRS_BINARY_DIR}/AIRSBuildSettings.cmake)
# The "use" file.
SET(AIRS_USE_FILE_CONFIG
${AIRS_BINARY_DIR}/UseAIRS.cmake)
# The build settings file.
SET(AIRS_BUILD_SETTINGS_FILE_CONFIG
${AIRS_BINARY_DIR}/AIRSBuildSettings.cmake)
# The target file
SET(AIRS_TARGET_FILE_CONFIG
${AIRS_BINARY_DIR}/AIRSTargets.cmake)
# The library directories.
SET(AIRS_LIBRARY_DIRS_CONFIG ${AIRS_LIBRARY_DIR})
# The kits.
SET(AIRS_KITS_CONFIG ${AIRS_KITS})
# The libraries.
SET(AIRS_LIBRARIES_CONFIG ${AIRS_LIBRARIES})
# The include directories.
SET(AIRS_INCLUDE_DIRS_CONFIG "")
FOREACH(dir ${AIRS_INCLUDE_DIRS})
SET(AIRS_INCLUDE_DIRS_CONFIG "${AIRS_INCLUDE_DIRS_CONFIG};${dir}")
ENDFOREACH(dir ${AIRS_INCLUDE_DIRS})
# The VTK options.
SET(AIRS_VTK_DIR_CONFIG ${VTK_DIR})
# The library dependencies file.
#IF(NOT AIRS_NO_LIBRARY_DEPENDS)
# INCLUDE("@AIRS_LIBRARY_DEPENDS_FILE@")
#ENDIF(NOT AIRS_NO_LIBRARY_DEPENDS)
# Configure AIRSConfig.cmake for the build tree.
CONFIGURE_FILE(
${AIRS_SOURCE_DIR}/AIRSConfig.cmake.in
${AIRS_BINARY_DIR}/AIRSConfig.cmake @ONLY)
# Configure the UseAIRS file
CONFIGURE_FILE(${AIRS_SOURCE_DIR}/UseAIRS.cmake
${AIRS_BINARY_DIR}/UseAIRS.cmake COPYONLY)