forked from TannerSorensen/SimpleElastix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SimpleITKConfig.cmake.in
101 lines (86 loc) · 3.29 KB
/
SimpleITKConfig.cmake.in
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#-----------------------------------------------------------------------------
#
# SimpleITKConfig.cmake - SimpleITK CMake configuration file for external
# projects.
#
# This file is configured by SimpleITK, imported into client projects by
# find_package(SimpleITK), and provides values for UseSimpleITK.cmake.
# This SimpleITKConfig file is configured for the @SimpleITKConfig_TREE@ tree
# Compute this installation's prefix from this file's location:
get_filename_component(_SimpleITKConfig_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
@SimpleITKConfig_CODE@
# The SimpleITK version number
#
# If version component is unset it the SimpleITK project it will
# remain unset for project who use it, this changes the default CMake
# behavior of setting unset version values to 0.
set(SimpleITK_VERSION_MAJOR "@SimpleITK_VERSION_MAJOR@")
set(SimpleITK_VERSION_MINOR "@SimpleITK_VERSION_MINOR@")
set(SimpleITK_VERSION_PATCH)
if(NOT "@SimpleITK_VERSION_PATCH@" STREQUAL "")
set(SimpleITK_VERSION_PATCH "@SimpleITK_VERSION_PATCH@")
endif()
set(SimpleITK_VERSION_TWEAK)
if(NOT "@SimpleITK_VERSION_TWEAK@" STREQUAL "")
set(SimpleITK_VERSION_TWEAK "@SimpleITK_VERSION_TWEAK@")
endif()
set(SimpleITK_VERSION_RC)
if(NOT "@SimpleITK_VERSION_RC@" STREQUAL "")
set(SimpleITK_VERSION_RC "@SimpleITK_VERSION_RC@")
endif()
set(SimpleITK_VERSION_POST)
if(NOT "@SimpleITK_VERSION_POST@" STREQUAL "")
set(SimpleITK_VERSION_POST "@SimpleITK_VERSION_POST@")
endif()
set(SimpleITK_VERSION_DEV)
if(NOT "@SimpleITK_VERSION_DEV@" STREQUAL "")
set(SimpleITK_VERSION_DEV "@SimpleITK_VERSION_DEV@")
endif()
set(SimpleITK_VERSION_HASH)
if(NOT "SimpleITK_VERSION_HASH@" STREQUAL "")
set(SimpleITK_VERSION_HASH "@SimpleITK_VERSION_HASH@")
endif()
set(SimpleITK_VERSION_COUNT)
# The SimpleITK include file directories.
set(SimpleITK_INCLUDE_DIRS "@SimpleITKConfig_INCLUDE_DIRS@")
# The SimpleITK library directories.
set(ITK_LIBRARY_DIRS "@ITK_LIBRARY_DIRS@")
set(SimpleITK_LIBRARY_DIRS "${ITK_LIBRARY_DIRS}")
# The location of the UseITK.cmake file.
set(SimpleITK_USE_FILE "${_SimpleITKConfig_DIR}/UseSimpleITK.cmake")
# Locate ITK for required targets
if(NOT ITK_CONFIG_TARGETS_FILE)
if("@SimpleITKConfig_TREE@" STREQUAL "build")
set(ITK_CONFIG_TARGETS_FILE "@ITK_DIR@/ITKTargets.cmake")
else()
# TODO: Add required ITK packages
find_package(ITK "@ITK_VERSION@" EXACT REQUIRED)
endif()
endif()
# Import ITK targets.
if(NOT ITK_TARGETS_IMPORTED)
set(ITK_TARGETS_IMPORTED 1)
include("${ITK_CONFIG_TARGETS_FILE}")
endif()
# Locate elastix for required targets
if(NOT ELASTIX_CONFIG_TARGETS_FILE)
if("@SimpleITKConfig_TREE@" STREQUAL "build")
set(ELASTIX_CONFIG_TARGETS_FILE "@Elastix_DIR@/ElastixTargets.cmake")
else()
find_package(Elastix "@Elastix_VERSION@" EXACT REQUIRED)
endif()
endif()
# Import elastix targets
if(NOT ELASTIX_TARGETS_IMPORTED)
set(ELASTIX_TARGETS_IMPORTED 1)
include("${ELASTIX_CONFIG_TARGETS_FILE}")
endif()
# Import SimpleITK targets.
set(SimpleITK_TARGETS_FILE "${_SimpleITKConfig_DIR}/SimpleITKTargets.cmake")
if(NOT SimpleITK_TARGETS_IMPORTED)
set(SimpleITK_TARGETS_IMPORTED 1)
include("${SimpleITK_TARGETS_FILE}")
endif()
# A list of all libraries for SimpleITK. Those listed here should
# automatically pull in their dependencies via imported targets.
set(SimpleITK_LIBRARIES "@SimpleITK_LIBRARIES@")