2011-04-13 17:24:36 +02:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#
|
2011-04-16 13:26:16 +02:00
|
|
|
# OPENJP3DConfig.cmake - CMake configuration file for external projects.
|
2011-04-13 17:24:36 +02:00
|
|
|
#
|
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@")
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
# The libraries.
|
2011-04-16 13:26:16 +02:00
|
|
|
SET(OPENJP3D_LIBRARIES "@OPENJP3D_LIBRARIES@")
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
# The CMake macros dir.
|
2011-04-16 13:26:16 +02:00
|
|
|
SET(OPENJP3D_CMAKE_DIR "@OPENJP3D_CMAKE_DIR_CONFIG@")
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
# The configuration options.
|
2011-04-16 13:26:16 +02:00
|
|
|
SET(OPENJP3D_BUILD_SHARED_LIBS "@OPENJP3D_BUILD_SHARED_LIBS@")
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
# The "use" file.
|
2011-04-16 13:26:16 +02:00
|
|
|
SET(OPENJP3D_USE_FILE "@OPENJP3D_USE_FILE_CONFIG@")
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
2011-04-16 13:26:16 +02:00
|
|
|
if(EXISTS ${SELF_DIR}/OpenJP3DTargets.cmake)
|
2011-04-13 17:24:36 +02:00
|
|
|
# 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-13 17:24:36 +02:00
|
|
|
|
2011-04-16 13:26:16 +02:00
|
|
|
else(EXISTS ${SELF_DIR}/OpenJP3DTargets.cmake)
|
|
|
|
if(EXISTS ${SELF_DIR}/OpenJP3DExports.cmake)
|
2011-04-13 17:24:36 +02:00
|
|
|
# This is a build tree
|
2011-04-16 13:26:16 +02:00
|
|
|
SET( OPENJP3D_INCLUDE_DIRS @OPENJP3D_INCLUDE_PATH@)
|
2011-04-13 17:24:36 +02:00
|
|
|
|
2011-04-16 13:26:16 +02:00
|
|
|
include(${SELF_DIR}/OpenJP3DExports.cmake)
|
2011-04-13 17:24:36 +02:00
|
|
|
|
2011-04-16 13:26:16 +02:00
|
|
|
else(EXISTS ${SELF_DIR}/OpenJP3DExports.cmake)
|
2011-04-13 17:24:36 +02:00
|
|
|
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-13 17:24:36 +02:00
|
|
|
|
2011-04-16 13:26:16 +02:00
|
|
|
set(OPENJP3D_USE_FILE ${SELF_DIR}/UseOPENJP3D.cmake)
|
2011-04-13 17:24:36 +02:00
|
|
|
|
|
|
|
# Backward compatible part:
|
2011-04-16 13:26:16 +02:00
|
|
|
SET(OPENJP3D_FOUND TRUE)
|
2011-04-13 17:24:36 +02:00
|
|
|
|