renamed getopt.{c/h} to opj_getopt.{c/h} and forced the use of these files rather...
[openjpeg.git] / tests / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3 INCLUDE_DIRECTORIES(${OPENJPEG_SOURCE_DIR}/libopenjpeg
4                     ${OPENJPEG_SOURCE_DIR}/applications/codec
5                     ${OPENJPEG_SOURCE_DIR}/applications/common
6                     ${Z_INCLUDE_DIRNAME}
7                     ${PNG_INCLUDE_DIRNAME}
8                     ${TIFF_INCLUDE_DIRNAME}
9                     )
10
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)
13
14 SET(compare_dump_files_SRCS compare_dump_files.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
15
16 SET(compareRAWimages_SRCS compareRAWimages.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
17
18 ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
19 TARGET_LINK_LIBRARIES(comparePGXimages ${OPENJPEG_LIBRARY_NAME}
20                                        ${Z_LIBNAME}
21                                        ${PNG_LIBNAME}
22                                        ${TIFF_LIBNAME}
23                                        )
24                                        
25 ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS})
26
27 ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS})
28
29 # No image send to the dashboard if lib PNG is not available.
30 IF(NOT HAVE_LIBPNG)
31   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)") 
32 ENDIF(NOT HAVE_LIBPNG)
33
34 ADD_SUBDIRECTORY(conformance)
35 ADD_SUBDIRECTORY(nonregression)