Slicer3InstallConfig.cmake.in 1.94 KB
Newer Older
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
#
# Slicer3Config.cmake - Slicer3 CMake configuration file for external projects
#
# This file is configured by Slicer3 and used by UseSlicer3.cmake module
# to load Slicer3's settings for an external project. External projects
# can use these setting to build new modules against a Slicer3 build tree
# or a Slicer3 installation.
#

# Slicer could be installed anywhere, so set all paths based on where 
# this file was found (which should be the lib/Slicer3 directory of the 
# installation)
GET_FILENAME_COMPONENT(Slicer3_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

# The Slicer3 include file directories.
SET(Slicer3_INCLUDE_DIRS "${Slicer3_CONFIG_DIR}/../../include/Slicer3")

# The Slicer3 library directories.
SET(Slicer3_LIBRARY_DIRS "${Slicer3_CONFIG_DIR}/..")

# The C and C++ flags added by Slicer3 to the cmake-configured flags.
SET(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
SET(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
SET(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")

# The Slicer3 version number
SET(Slicer3_VERSION_MAJOR "@Slicer3_VERSION_MAJOR@")
SET(Slicer3_VERSION_MINOR "@Slicer3_VERSION_MINOR@")
SET(Slicer3_VERSION_PATCH "@Slicer3_VERSION_PATCH@")

# The location of the UseSlicer3.cmake file.
SET(Slicer3_USE_FILE "${Slicer3_CONFIG_DIR}/UseSlicer3.cmake")

# The build settings file.
SET(Slicer3_BUILD_SETTINGS_FILE "${Slicer3_CONFIG_DIR}/Slicer3BuildSettings.cmake")

# Whether Slicer3 was built with shared libraries.
SET(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")

# Components needed to build modules from outside a Slicer3 build tree or 
# from outside a Slicer3 installation tree
SET(TCLAP_DIR "${Slicer3_CONFIG_DIR}/../tclap")
SET(ModuleDescriptionParser_DIR "${Slicer3_CONFIG_DIR}/../ModuleDescriptionParser")
SET(GenerateCLP_DIR "${Slicer3_CONFIG_DIR}/../GenerateCLP")
SET(GenerateCLP_USE_FILE "${GenerateCLP_DIR}/UseGenerateCLP.cmake")
SET(GENERATECLP_EXE "${Slicer3_CONFIG_DIR}/../../bin/GenerateCLP")