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)
14 # If not getopt was found then add it to the exe:
16 message("dont have getopt, we will add it")
17 SET(comparePGXimages_SRCS
18 ${comparePGXimages_SRCS}
19 ${OPENJPEG_SOURCE_DIR}/applications/common/getopt.c
21 ENDIF(DONT_HAVE_GETOPT)
23 ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
24 TARGET_LINK_LIBRARIES(comparePGXimages ${OPENJPEG_LIBRARY_NAME}
30 # No image send to the dashboard if lib PNG is not available.
32 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)")
33 ENDIF(NOT HAVE_LIBPNG)
35 ADD_SUBDIRECTORY(conformance)