d5bb3b0039
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. This also changes all the key words to lower case. The primary reason for changing key words is that all documentation for CMakeLists.txt now shows the key words as lower case. Even the printed “Mastering CMake v5” uses lower case. Thanks to Hans Johnson
49 lines
1.7 KiB
CMake
49 lines
1.7 KiB
CMake
#-----------------------------------------------------------------------------
|
|
#
|
|
# 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.
|
|
set(OPENJPEG_LIBRARIES "@OPENJPEG_LIBRARY_NAME@")
|
|
|
|
# The CMake macros dir.
|
|
set(OPENJPEG_CMAKE_DIR "@OPENJPEG_INSTALL_PACKAGE_DIR@")
|
|
|
|
# The configuration options.
|
|
set(OPENJPEG_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
|
|
|
|
# The "use" file.
|
|
set(OPENJPEG_USE_FILE "@OPENJPEG_USE_FILE_CONFIG@")
|
|
|
|
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
|
# This is an install tree
|
|
include(${SELF_DIR}/OpenJPEGTargets.cmake)
|
|
get_filename_component(OPENJPEG_INCLUDE_ROOT "${SELF_DIR}/../../@OPENJPEG_INSTALL_INCLUDE_DIR@" ABSOLUTE)
|
|
set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG_INCLUDE_ROOT})
|
|
|
|
else(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
|
if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
|
# This is a build tree
|
|
set( OPENJPEG_INCLUDE_DIRS @OPENJPEG_INCLUDE_PATH@)
|
|
|
|
include(${SELF_DIR}/OpenJPEGExports.cmake)
|
|
|
|
else(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
|
message(FATAL_ERROR "ooops")
|
|
endif(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
|
endif(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
|
|
|
|
set(OPENJPEG_USE_FILE ${SELF_DIR}/UseOPENJPEG.cmake)
|
|
|
|
# Backward compatible part:
|
|
set(OPENJPEG_FOUND TRUE)
|
|
|