add abi-check files and reports to gh-pages
[openjpeg.git] / abi-check / installed / openjpeg / current / lib / openjpeg-2.1 / OpenJPEGConfig.cmake
1 #-----------------------------------------------------------------------------
2 #
3 # OPENJPEGConfig.cmake - CMake configuration file for external projects.
4 #
5 # This file is configured by OPENJPEG and used by the UseOPENJPEG.cmake
6 # module to load OPENJPEG's settings for an external project.
7
8 # The OPENJPEG version number.
9 set(OPENJPEG_MAJOR_VERSION "2")
10 set(OPENJPEG_MINOR_VERSION "1")
11 set(OPENJPEG_BUILD_VERSION "1")
12
13 # The libraries.
14 set(OPENJPEG_LIBRARIES "openjp2")
15
16 # The CMake macros dir.
17 set(OPENJPEG_CMAKE_DIR "lib/openjpeg-2.1")
18
19 # The configuration options.
20 set(OPENJPEG_BUILD_SHARED_LIBS "ON")
21
22 # The "use" file.
23 set(OPENJPEG_USE_FILE "")
24
25 get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
26 if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
27   # This is an install tree
28   include(${SELF_DIR}/OpenJPEGTargets.cmake)
29   get_filename_component(OPENJPEG_INCLUDE_ROOT "${SELF_DIR}/../../include/openjpeg-2.1" ABSOLUTE)
30   set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG_INCLUDE_ROOT})
31
32 else()
33   if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
34     # This is a build tree
35     set( OPENJPEG_INCLUDE_DIRS )
36
37     include(${SELF_DIR}/OpenJPEGExports.cmake)
38
39   else()
40     message(FATAL_ERROR "ooops")
41   endif()
42 endif()
43
44 set(OPENJPEG_USE_FILE ${SELF_DIR}/UseOPENJPEG.cmake)
45
46 # Backward compatible part:
47 set(OPENJPEG_FOUND       TRUE)
48