summaryrefslogtreecommitdiff
path: root/openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-04-13 15:24:36 +0000
committerAntonin Descampe <antonin@gmail.com>2011-04-13 15:24:36 +0000
commit5ef5fc65aeffbe3715cd21eed9f915629cb2a39a (patch)
tree20c1eb1e954080b3624027465dcf4b84c6da41d3 /openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in
parente93d5a683f8af382bbdb4bea4cf6fe2bd8337411 (diff)
renamed and reorganized "jp3d" directory to "openjpeg3d". Is now a standalone directory, with independent cmake files. Done as it uses its own version of the openjpeg library and does not depend on the one currently developped. Will be removed from the trunk and stored in a branch.
Diffstat (limited to 'openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in')
-rw-r--r--openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in48
1 files changed, 48 insertions, 0 deletions
diff --git a/openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in b/openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in
new file mode 100644
index 00000000..633c0935
--- /dev/null
+++ b/openjpeg3d/CMake/OpenJPEG3DConfig.cmake.in
@@ -0,0 +1,48 @@
+#-----------------------------------------------------------------------------
+#
+# OPENJPEG3DConfig.cmake - CMake configuration file for external projects.
+#
+# This file is configured by OPENJPEG3D and used by the UseOPENJPEG3D.cmake
+# module to load OPENJPEG3D's settings for an external project.
+@OPENJPEG3D_CONFIG_INSTALL_ONLY@
+# The OPENJPEG3D version number.
+SET(OPENJPEG3D_MAJOR_VERSION "@OPENJPEG3D_VERSION_MAJOR@")
+SET(OPENJPEG3D_MINOR_VERSION "@OPENJPEG3D_VERSION_MINOR@")
+SET(OPENJPEG3D_BUILD_VERSION "@OPENJPEG3D_VERSION_BUILD@")
+
+# The libraries.
+SET(OPENJPEG3D_LIBRARIES "@OPENJPEG3D_LIBRARIES@")
+
+# The CMake macros dir.
+SET(OPENJPEG3D_CMAKE_DIR "@OPENJPEG3D_CMAKE_DIR_CONFIG@")
+
+# The configuration options.
+SET(OPENJPEG3D_BUILD_SHARED_LIBS "@OPENJPEG3D_BUILD_SHARED_LIBS@")
+
+# The "use" file.
+SET(OPENJPEG3D_USE_FILE "@OPENJPEG3D_USE_FILE_CONFIG@")
+
+get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+if(EXISTS ${SELF_DIR}/OpenJPEG3DTargets.cmake)
+ # This is an install tree
+ include(${SELF_DIR}/OpenJPEG3DTargets.cmake)
+ get_filename_component(OPENJPEG3D_INCLUDE_ROOT "${SELF_DIR}/../../@OPENJPEG3D_INSTALL_INCLUDE_DIR@" ABSOLUTE)
+ set(OPENJPEG3D_INCLUDE_DIRS ${OPENJPEG3D_INCLUDE_ROOT})
+
+else(EXISTS ${SELF_DIR}/OpenJPEG3DTargets.cmake)
+ if(EXISTS ${SELF_DIR}/OpenJPEG3DExports.cmake)
+ # This is a build tree
+ SET( OPENJPEG3D_INCLUDE_DIRS @OPENJPEG3D_INCLUDE_PATH@)
+
+ include(${SELF_DIR}/OpenJPEG3DExports.cmake)
+
+ else(EXISTS ${SELF_DIR}/OpenJPEG3DExports.cmake)
+ message(FATAL_ERROR "ooops")
+ endif(EXISTS ${SELF_DIR}/OpenJPEG3DExports.cmake)
+endif(EXISTS ${SELF_DIR}/OpenJPEG3DTargets.cmake)
+
+set(OPENJPEG3D_USE_FILE ${SELF_DIR}/UseOPENJPEG3D.cmake)
+
+# Backward compatible part:
+SET(OPENJPEG3D_FOUND TRUE)
+