2010-06-29 21:09:10 +02:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# OPENJPEGConfig.cmake - CMake configuration file for external projects.
|
|
|
|
#
|
|
|
|
# This file is configured by OPENJPEG and used by the UseOPENJPEG.cmake
|
|
|
|
# module to load OPENJPEG's settings for an external project.
|
|
|
|
@OPENJPEG_CONFIG_INSTALL_ONLY@
|
|
|
|
# The OPENJPEG version number.
|
|
|
|
SET(OPENJPEG_MAJOR_VERSION "@OPENJPEG_VERSION_MAJOR@")
|
|
|
|
SET(OPENJPEG_MINOR_VERSION "@OPENJPEG_VERSION_MINOR@")
|
|
|
|
SET(OPENJPEG_BUILD_VERSION "@OPENJPEG_VERSION_BUILD@")
|
|
|
|
|
|
|
|
# The libraries.
|
2012-02-10 02:26:11 +01:00
|
|
|
SET(OPENJPEG_LIBRARIES "@OPENJPEG_LIBRARY_NAME@")
|
2010-06-29 21:09:10 +02:00
|
|
|
|
|
|
|
# The CMake macros dir.
|
2012-02-10 02:26:11 +01:00
|
|
|
SET(OPENJPEG_CMAKE_DIR "@OPENJPEG_INSTALL_PACKAGE_DIR@")
|
2010-06-29 21:09:10 +02:00
|
|
|
|
|
|
|
# The configuration options.
|
2012-02-10 02:26:11 +01:00
|
|
|
SET(OPENJPEG_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
|
2010-06-29 21:09:10 +02:00
|
|
|
|
|
|
|
# The "use" file.
|
|
|
|
SET(OPENJPEG_USE_FILE "@OPENJPEG_USE_FILE_CONFIG@")
|
|
|
|
|
|
|
|
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
2010-08-11 10:47:21 +02:00
|
|
|
if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
# This is an install tree
|
2010-08-11 10:47:21 +02:00
|
|
|
include(${SELF_DIR}/OpenJPEGTargets.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
get_filename_component(OPENJPEG_INCLUDE_ROOT "${SELF_DIR}/../../@OPENJPEG_INSTALL_INCLUDE_DIR@" ABSOLUTE)
|
|
|
|
set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG_INCLUDE_ROOT})
|
|
|
|
|
2010-08-11 10:47:21 +02:00
|
|
|
else(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
|
|
|
if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
# This is a build tree
|
|
|
|
SET( OPENJPEG_INCLUDE_DIRS @OPENJPEG_INCLUDE_PATH@)
|
|
|
|
|
2010-08-11 10:47:21 +02:00
|
|
|
include(${SELF_DIR}/OpenJPEGExports.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
|
2010-08-11 10:47:21 +02:00
|
|
|
else(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
message(FATAL_ERROR "ooops")
|
2010-08-11 10:47:21 +02:00
|
|
|
endif(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
|
|
|
endif(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
2010-06-29 21:09:10 +02:00
|
|
|
|
|
|
|
set(OPENJPEG_USE_FILE ${SELF_DIR}/UseOPENJPEG.cmake)
|
|
|
|
|
|
|
|
# Backward compatible part:
|
|
|
|
SET(OPENJPEG_FOUND TRUE)
|
|
|
|
|