[trunk] implement Large File support in the library
[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(j2k_random_tile_access j2k_random_tile_access.c)
28 TARGET_LINK_LIBRARIES(j2k_random_tile_access ${OPENJPEG_LIBRARY_NAME})
29
30 ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS})
31
32 # No image send to the dashboard if lib PNG is not available.
33 IF(NOT HAVE_LIBPNG)
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)
36
37 ADD_SUBDIRECTORY(conformance)
38 ADD_SUBDIRECTORY(nonregression)