openjpeg/tests/unit/CMakeLists.txt

18 lines
329 B
CMake
Raw Normal View History

2015-09-15 15:49:58 +02:00
# UNIT TESTS
2012-04-06 15:07:01 +02:00
2015-09-15 15:49:58 +02:00
include_directories(
${OPENJPEG_BINARY_DIR}/libopenjpeg # opj_config.h
${OPENJPEG_SOURCE_DIR}/libopenjpeg
)
2012-04-06 15:07:01 +02:00
2015-09-15 15:49:58 +02:00
set(unit_test
testempty0
testempty1
testempty2
)
foreach(ut ${unit_test})
add_executable(${ut} ${ut}.c)
target_link_libraries(${ut} openjpeg)
add_test(NAME ${ut} COMMAND ${ut})
endforeach()