openjpeg/CMake/OpenJP3DConfig.cmake.in

49 lines
1.7 KiB
CMake
Raw Normal View History

#-----------------------------------------------------------------------------
#
2011-04-16 13:26:16 +02:00
# OPENJP3DConfig.cmake - CMake configuration file for external projects.
#
2011-04-16 13:26:16 +02:00
# This file is configured by OPENJP3D and used by the UseOPENJP3D.cmake
# module to load OPENJP3D's settings for an external project.
@OPENJP3D_CONFIG_INSTALL_ONLY@
# The OPENJP3D version number.
SET(OPENJP3D_MAJOR_VERSION "@OPENJP3D_VERSION_MAJOR@")
SET(OPENJP3D_MINOR_VERSION "@OPENJP3D_VERSION_MINOR@")
SET(OPENJP3D_BUILD_VERSION "@OPENJP3D_VERSION_BUILD@")
# The libraries.
2011-04-16 13:26:16 +02:00
SET(OPENJP3D_LIBRARIES "@OPENJP3D_LIBRARIES@")
# The CMake macros dir.
2011-04-16 13:26:16 +02:00
SET(OPENJP3D_CMAKE_DIR "@OPENJP3D_CMAKE_DIR_CONFIG@")
# The configuration options.
2011-04-16 13:26:16 +02:00
SET(OPENJP3D_BUILD_SHARED_LIBS "@OPENJP3D_BUILD_SHARED_LIBS@")
# The "use" file.
2011-04-16 13:26:16 +02:00
SET(OPENJP3D_USE_FILE "@OPENJP3D_USE_FILE_CONFIG@")
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
2011-04-16 13:26:16 +02:00
if(EXISTS ${SELF_DIR}/OpenJP3DTargets.cmake)
# This is an install tree
2011-04-16 13:26:16 +02:00
include(${SELF_DIR}/OpenJP3DTargets.cmake)
get_filename_component(OPENJP3D_INCLUDE_ROOT "${SELF_DIR}/../../@OPENJP3D_INSTALL_INCLUDE_DIR@" ABSOLUTE)
set(OPENJP3D_INCLUDE_DIRS ${OPENJP3D_INCLUDE_ROOT})
2011-04-16 13:26:16 +02:00
else(EXISTS ${SELF_DIR}/OpenJP3DTargets.cmake)
if(EXISTS ${SELF_DIR}/OpenJP3DExports.cmake)
# This is a build tree
2011-04-16 13:26:16 +02:00
SET( OPENJP3D_INCLUDE_DIRS @OPENJP3D_INCLUDE_PATH@)
2011-04-16 13:26:16 +02:00
include(${SELF_DIR}/OpenJP3DExports.cmake)
2011-04-16 13:26:16 +02:00
else(EXISTS ${SELF_DIR}/OpenJP3DExports.cmake)
message(FATAL_ERROR "ooops")
2011-04-16 13:26:16 +02:00
endif(EXISTS ${SELF_DIR}/OpenJP3DExports.cmake)
endif(EXISTS ${SELF_DIR}/OpenJP3DTargets.cmake)
2011-04-16 13:26:16 +02:00
set(OPENJP3D_USE_FILE ${SELF_DIR}/UseOPENJP3D.cmake)
# Backward compatible part:
2011-04-16 13:26:16 +02:00
SET(OPENJP3D_FOUND TRUE)