1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 INCLUDE_DIRECTORIES(${OPENJPEG_SOURCE_DIR}/libopenjpeg
4 ${OPENJPEG_SOURCE_DIR}/applications/codec
5 ${OPENJPEG_SOURCE_DIR}/applications/common
8 ${TIFF_INCLUDE_DIRNAME}
11 # First thing define the common source:
12 SET(comparePGXimages_SRCS comparePGXimages.c ${OPENJPEG_SOURCE_DIR}/applications/codec/convert.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
14 SET(compare_dump_files_SRCS compare_dump_files.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
16 SET(compareRAWimages_SRCS compareRAWimages.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
18 ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
19 TARGET_LINK_LIBRARIES(comparePGXimages ${OPENJPEG_LIBRARY_NAME}
25 ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS})
27 ADD_EXECUTABLE(j2k_random_tile_access j2k_random_tile_access.c)
28 TARGET_LINK_LIBRARIES(j2k_random_tile_access ${OPENJPEG_LIBRARY_NAME})
30 ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS})
32 # No image send to the dashboard if lib PNG is not available.
34 MESSAGE(WARNING "Lib PNG seems to be not available: if you want run the non-regression tests with images reported to the dashboard, you need it (try BUILD_THIRDPARTY)")
35 ENDIF(NOT HAVE_LIBPNG)
37 ADD_SUBDIRECTORY(conformance)
38 ADD_SUBDIRECTORY(nonregression)