Added the default lossless parameter to opj_set_default_encoder_parameters in openjpeg.c
[openjpeg.git] / v2 / test_Free_image_V2_tile_handling / CMakeLists.txt
1 # Build the demo app, small examples\r
2 \r
3 # First thing define the common source:\r
4 \r
5 # Then check if getopt is present:\r
6 INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)\r
7 \r
8 # Headers file are located here:\r
9 INCLUDE_DIRECTORIES(\r
10   ${OPENJPEG_SOURCE_DIR}/libopenjpeg\r
11   )\r
12 \r
13 # Do the proper thing when building static...if only there was configured\r
14 # headers or def files instead\r
15 IF(NOT BUILD_SHARED_LIBS)\r
16   ADD_DEFINITIONS(-DOPJ_STATIC)\r
17 ENDIF(NOT BUILD_SHARED_LIBS)\r
18 \r
19 INCLUDE(${OPENJPEG_SOURCE_DIR}/Free_CMakeImport.cmake)\r
20 \r
21 # Loop over all executables:\r
22 FOREACH(exe test2_encoder test2_decoder)\r
23   \r
24   ADD_EXECUTABLE(${exe} ${exe}.c)\r
25   TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg)\r
26   # Install exe\r
27   INSTALL_TARGETS(/bin/ ${exe})\r
28 ENDFOREACH(exe)\r
29 \r