-
Notifications
You must be signed in to change notification settings - Fork 118
/
ElastixConfig.cmake.in
50 lines (37 loc) · 1.72 KB
/
ElastixConfig.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
# ElastixConfig.cmake - Elastix CMake configuration file for external
# projects.
#
# This ElastixConfig file is configured for the @ElastixConfig_TREE@
# tree.
# Compute this installation's prefix from this file's location:
get_filename_component(_ELASTIXConfig_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
@ElastixConfig_CODE@
# Add include directories needed to use SuperElastix
set( ELASTIX_INCLUDE_DIRS @ELX_CONFIG_INCLUDE_DIRECTORIES@ )
# Add list of Elastix library directories
set( ELASTIX_LIBRARY_DIRS "${Elastix_INSTALL_PREFIX}/@ELASTIX_LIBRARY_DIR@" )
# Add list of SuperElastix libraries
set( ELASTIX_LIBRARIES @ELASTIX_LIBRARIES@ )
# The location of the Elastix use-file
set( ELASTIX_USE_FILE "${_ELASTIXConfig_DIR}/UseElastix.cmake" )
if(NOT ITK_CONFIG_TARGETS_FILE)
find_package(ITK "@ITK_VERSION@" EXACT REQUIRED)
endif()
# Import ELASTIX targets.
set( ELASTIX_CONFIG_TARGETS_FILE "${_ELASTIXConfig_DIR}/ElastixTargets.cmake")
list( GET ELASTIX_LIBRARIES 0 _first_library)
if(NOT ELASTIX_TARGETS_IMPORTED AND NOT TARGET ${_first_library})
set(ELASTIX_TARGETS_IMPORTED 1)
include("${ELASTIX_CONFIG_TARGETS_FILE}")
endif()
# Set some variables that the user might want to use
set( ELASTIX_BUILD_EXECUTABLE @ELASTIX_BUILD_EXECUTABLE@ )
set( ELASTIX_USE_OPENMP @ELASTIX_USE_OPENMP@ )
set( ELASTIX_USE_OPENCL @ELASTIX_USE_OPENCL@ )
set( ELASTIX_USE_MEVISDICOMTIFF @ELASTIX_USE_MEVISDICOMTIFF@ )
# FIXME - These variable refer to the source and build directories
set( ELASTIX_DOX_DIR @ELASTIX_DOX_DIR@ )
set( ELASTIX_HELP_DIR @ELASTIX_HELP_DIR@ )
# Maintain backwards compatibility by also exporting old-style target information
set( ELASTIX_ALL_COMPONENT_LIBS @AllComponentLibs@ )
set( elxLIBRARY_DEPENDS_FILE @elxLIBRARY_DEPENDS_FILE@ )