opj_jp2_read_header(): move setting icc_profile here instead in opj_jp2_decode()...
[openjpeg.git] / tests / unit / CMakeLists.txt
1 # UNIT TESTS
2
3 include_directories(
4   ${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
5   ${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
6 )
7
8 set(unit_test
9   testempty0
10   testempty1
11   testempty2
12 )
13 foreach(ut ${unit_test})
14   add_executable(${ut} ${ut}.c)
15   target_link_libraries(${ut} openjp2)
16   add_test(NAME ${ut} COMMAND ${ut})
17 endforeach()
18
19 add_executable(testjp2 testjp2.c)
20 target_link_libraries(testjp2 openjp2)
21 add_test(NAME testjp2 COMMAND testjp2 ${OPJ_DATA_ROOT})