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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
#-----------------------------------------------------------------------------
#
# ITKConfig.cmake - ITK CMake configuration file for external projects.
#
# This file is configured by ITK and used by the UseITK.cmake module
# to load ITK's settings for an external project.
#
# ITK components can be specified when using the CMake function `find_package()`
# E.g. find_package(ITK COMPONENTS ITKCommon ITKIOImageBase OPTIONAL_COMPONENTS ITKIONRRD )
#
# The components listed in this call must be ITK module names or factories
# (e.g. ITKImageIO, ITKTransformIO). Factories allow the user to load all the
# modules of a specific type (e.g. ImageIO, TransformIO) without having to
# specify them individually.
# See `itk_module_config()` documentation for more information about factory modules.
@ITK_CONFIG_CODE@
# The C and C++ flags added by ITK to the cmake-configured flags.
set(ITK_REQUIRED_C_FLAGS "@ITK_REQUIRED_C_FLAGS@")
set(ITK_REQUIRED_CXX_FLAGS "@ITK_REQUIRED_CXX_FLAGS@")
set(ITK_REQUIRED_LINK_FLAGS "@ITK_REQUIRED_LINK_FLAGS@")
# The ITK version number
set(ITK_VERSION_MAJOR "@ITK_VERSION_MAJOR@")
set(ITK_VERSION_MINOR "@ITK_VERSION_MINOR@")
set(ITK_VERSION_PATCH "@ITK_VERSION_PATCH@")
# If ITK was built with version 4 compatibility features.
set(ITKV4_COMPATIBILITY "@ITKV4_COMPATIBILITY@")
# Remove all legacy code completely.
set(ITK_LEGACY_REMOVE "@ITK_LEGACY_REMOVE@")
# Silence all legacy code messages.
set(ITK_LEGACY_SILENT "@ITK_LEGACY_SILENT@")
# Remove code that will become legacy in future releases completely.
set(ITK_FUTURE_LEGACY_REMOVE "@ITK_FUTURE_LEGACY_REMOVE@")
# ITK's CMake directory with modules ITK uses.
set(ITK_CMAKE_DIR "@ITK_CONFIG_CMAKE_DIR@")
# The location of the UseITK.cmake file.
set(ITK_USE_FILE "@ITK_USE_FILE@")
# Whether ITK was built with shared libraries.
set(ITK_BUILD_SHARED "@ITK_BUILD_SHARED_LIBS@")
# Export the library build type (SHARED or STATIC) for external builds
set(ITK_LIBRARY_BUILD_TYPE "@ITK_LIBRARY_BUILD_TYPE@")
# Whether ITK links to MSVC's static CRT (/MT and /MTd).
set(ITK_MSVC_STATIC_CRT "@ITK_MSVC_STATIC_RUNTIME_LIBRARY_value@")
# Whether ITK examples were built.
set(ITK_BUILD_EXAMPLES "@BUILD_EXAMPLES@")
# Whether ITK documentation was built.
set(ITK_BUILD_DOCUMENTATION "@ITK_BUILD_DOCUMENTATION@")
# List of available ITK modules.
set(ITK_MODULES_ENABLED "@ITK_CONFIG_MODULES_ENABLED@")
# Import ITK targets.
set(ITK_CONFIG_TARGETS_FILE "@ITK_CONFIG_TARGETS_FILE@")
if(NOT ITK_TARGETS_IMPORTED@ITK_CONFIG_TARGETS_CONDITION@)
set(ITK_TARGETS_IMPORTED 1)
include("${ITK_CONFIG_TARGETS_FILE}")
endif()
# Load module interface macros.
include("@ITK_CONFIG_MODULE_API_FILE@")
# Load requested modules and their dependencies into variables:
# ITK_LIBRARIES = Libraries to link
# ITK_INCLUDE_DIRS = Header file search path
# ITK_LIBRARY_DIRS = Library search path (for outside dependencies)
# ITK_RUNTIME_LIBRARY_DIRS = Runtime linker search path
# ITK_FACTORY_NAMES = List of <module>::<factory>::<format>
# ITK_FACTORY_LIST = List of factories set
# ITK_<factory_name> = List of formats for each factory
itk_module_config(ITK ${ITK_MODULES_ENABLED})
# Compute set of requested modules.
if(ITK_FIND_COMPONENTS)
# Specific modules required by find_package(ITK) or optional and available.
set(ITK_MODULES_REQUESTED "")
foreach(M ${ITK_FIND_COMPONENTS})
if(ITK_FIND_REQUIRED_${M} OR M IN_LIST ITK_MODULES_ENABLED)
LIST(APPEND ITK_MODULES_REQUESTED "${M}")
endif()
endforeach()
itk_module_config(ITK ${ITK_MODULES_REQUESTED})
else()
set(ITK_MODULES_REQUESTED ${ITK_MODULES_ENABLED})
endif()
# Load factory registration manager functions
include( "${ITK_CMAKE_DIR}/ITKFactoryRegistration.cmake" )
# Add configuration with FFTW
set(ITK_USE_FFTWD "@ITK_USE_FFTWD@")
set(ITK_USE_FFTWF "@ITK_USE_FFTWF@")
set(ITK_USE_SYSTEM_FFTW "@ITK_USE_SYSTEM_FFTW@")
set(ITK_FFTW_INCLUDE_PATH "@FFTW_INCLUDE_PATH@")
set(ITK_FFTW_LIBDIR "@FFTW_LIBDIR@")
# Add FFTW include and library directories
if (ITK_USE_FFTWF OR ITK_USE_FFTWD)
set(ITK_INCLUDE_DIRS ${ITK_INCLUDE_DIRS} "${ITK_FFTW_INCLUDE_PATH}")
set(ITK_LIBRARY_DIRS ${ITK_LIBRARY_DIRS} "${ITK_FFTW_LIBDIR}")
endif()
# Add configuration with GPU
set(ITK_USE_GPU "@ITK_USE_GPU@")
# Wrapping
set(ITK_WRAPPING "@ITK_WRAPPING@")
# ITK_WRAP_DOC is disabled by default.
if( NOT DEFINED ITK_WRAP_PYTHON)
set(ITK_WRAP_PYTHON "@ITK_WRAP_PYTHON@")
endif()
# Set up the rest of the variables that WrapITK was built with.
set(ITK_WRAP_unsigned_char @ITK_WRAP_unsigned_char@)
set(ITK_WRAP_unsigned_short @ITK_WRAP_unsigned_short@)
set(ITK_WRAP_unsigned_long @ITK_WRAP_unsigned_long@)
set(ITK_WRAP_unsigned_long_long @ITK_WRAP_unsigned_long_long@)
set(ITK_WRAP_signed_char @ITK_WRAP_signed_char@)
set(ITK_WRAP_signed_short @ITK_WRAP_signed_short@)
set(ITK_WRAP_signed_long @ITK_WRAP_signed_long@)
set(ITK_WRAP_signed_long_long @ITK_WRAP_signed_long@)
set(ITK_WRAP_float @ITK_WRAP_float@)
set(ITK_WRAP_double @ITK_WRAP_double@)
set(ITK_WRAP_vector_float @ITK_WRAP_vector_float@)
set(ITK_WRAP_vector_double @ITK_WRAP_vector_double@)
set(ITK_WRAP_covariant_vector_float @ITK_WRAP_covariant_vector_float@)
set(ITK_WRAP_covariant_vector_double @ITK_WRAP_covariant_vector_double@)
set(ITK_WRAP_rgb_unsigned_char @ITK_WRAP_rgb_unsigned_char@)
set(ITK_WRAP_rgb_unsigned_short @ITK_WRAP_rgb_unsigned_short@)
set(ITK_WRAP_rgba_unsigned_char @ITK_WRAP_rgba_unsigned_char@)
set(ITK_WRAP_rgba_unsigned_short @ITK_WRAP_rgba_unsigned_short@)
set(ITK_WRAP_complex_float @ITK_WRAP_complex_float@)
set(ITK_WRAP_complex_double @ITK_WRAP_complex_double@)
set(ITK_WRAP_IMAGE_DIMS "@ITK_WRAP_IMAGE_DIMS@")
set(ITK_WRAP_VECTOR_COMPONENTS "@ITK_WRAP_VECTOR_COMPONENTS@")
set(ITK_WRAP_PYTHON_VERSION "@ITK_WRAP_PYTHON_VERSION@")
|