]> Creatis software - gdcm.git/blobdiff - CMake/ExportConfiguration/GDCMConfig.cmake.in
ENH: Adding ExportConfiguration
[gdcm.git] / CMake / ExportConfiguration / GDCMConfig.cmake.in
diff --git a/CMake/ExportConfiguration/GDCMConfig.cmake.in b/CMake/ExportConfiguration/GDCMConfig.cmake.in
new file mode 100644 (file)
index 0000000..28d0975
--- /dev/null
@@ -0,0 +1,78 @@
+#-----------------------------------------------------------------------------
+#
+# GDCMConfig.cmake - CMake configuration file for external projects.
+#
+# This file is configured by GDCM and used by the UseGDCM.cmake
+# module to load GDCM's settings for an external project.
+@GDCM_CONFIG_INSTALL_ONLY@
+# The GDCM version number.
+SET(GDCM_MAJOR_VERSION "@GDCM_MAJOR_VERSION@")
+SET(GDCM_MINOR_VERSION "@GDCM_MINOR_VERSION@")
+
+# The libraries.
+SET(GDCM_LIBRARIES "@GDCM_LIBRARIES@")
+
+# The CMake macros dir.
+SET(GDCM_CMAKE_DIR "@GDCM_CMAKE_DIR_CONFIG@")
+
+# The configuration options.
+SET(GDCM_BUILD_SHARED_LIBS "@GDCM_BUILD_SHARED_LIBS@")
+SET(GDCM_VTK "@GDCM_VTK@")
+
+# The C and C++ flags added to the cmake-configured flags.
+SET(GDCM_REQUIRED_C_FLAGS
+  "@GDCM_REQUIRED_C_FLAGS@")
+SET(GDCM_REQUIRED_CXX_FLAGS
+  "@GDCM_REQUIRED_CXX_FLAGS@")
+SET(GDCM_REQUIRED_EXE_LINKER_FLAGS
+  "@GDCM_REQUIRED_EXE_LINKER_FLAGS@")
+SET(GDCM_REQUIRED_SHARED_LINKER_FLAGS
+  "@GDCM_REQUIRED_SHARED_LINKER_FLAGS@")
+SET(GDCM_REQUIRED_MODULE_LINKER_FLAGS
+  "@GDCM_REQUIRED_MODULE_LINKER_FLAGS@")
+
+# The "use" file.
+SET(GDCM_USE_FILE "@GDCM_USE_FILE_CONFIG@")
+
+# The build settings file.
+SET(GDCM_BUILD_SETTINGS_FILE "@GDCM_BUILD_SETTINGS_FILE_CONFIG@")
+
+# The library directories.
+SET(GDCM_LIBRARY_DIRS "@GDCM_LIBRARY_DIRS_CONFIG@")
+
+# The runtime directories.
+# Note that if GDCM_CONFIGURATION_TYPES is set (see below) then
+# these directories will be the parent directories under which there will
+# be a directory of runtime binaries for each configuration type.
+SET(GDCM_RUNTIME_DIRS "@GDCM_RUNTIME_DIRS_CONFIG@")
+
+# The include directories.
+SET(GDCM_INCLUDE_DIRS "@GDCM_INCLUDE_DIRS_CONFIG@")
+
+# The library dependencies file.
+IF(NOT GDCM_NO_LIBRARY_DEPENDS AND 
+    EXISTS "@GDCM_LIBRARY_DEPENDS_FILE@")
+  INCLUDE("@GDCM_LIBRARY_DEPENDS_FILE@")
+ENDIF(NOT GDCM_NO_LIBRARY_DEPENDS AND 
+  EXISTS "@GDCM_LIBRARY_DEPENDS_FILE@")
+
+# The VTK options.
+IF(GDCM_VTK)
+  SET(GDCM_VTK_DIR "@GDCM_VTK_DIR_CONFIG@")
+ENDIF(GDCM_VTK)
+
+# An install tree always provides one build configuration.
+# A build tree may provide either one or multiple build
+# configurations depending on the CMake generator used. Since
+# this project can be used either from a build tree or an install tree it
+# is useful for outside projects to know the configurations available.
+# If this GDCMConfig.cmake is in an install tree
+# GDCM_CONFIGURATION_TYPES will be empty and GDCM_BUILD_TYPE
+# will be set to the value of CMAKE_BUILD_TYPE used to build
+# GDCM. If GDCMConfig.cmake is in a build tree
+# then GDCM_CONFIGURATION_TYPES and GDCM_BUILD_TYPE will
+# have values matching CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE
+# for that build tree (only one will ever be set).
+SET(GDCM_CONFIGURATION_TYPES @GDCM_CONFIGURATION_TYPES_CONFIG@)
+SET(GDCM_BUILD_TYPE @GDCM_BUILD_TYPE_CONFIG@)
+