added testempty0 test

This commit is contained in:
Antonin Descampe 2015-09-15 15:49:58 +02:00
parent 2e508f1c89
commit 2d47938b25
1 changed files with 15 additions and 7 deletions

View File

@ -1,9 +1,17 @@
# UNIT TESTS
add_executable(testempty1 testempty1.c)
add_executable(testempty2 testempty2.c)
target_link_libraries(testempty1 openjpeg)
target_link_libraries(testempty2 openjpeg)
include_directories(
${OPENJPEG_BINARY_DIR}/libopenjpeg # opj_config.h
${OPENJPEG_SOURCE_DIR}/libopenjpeg
)
add_test(NAME testempty1 COMMAND testempty1)
add_test(NAME testempty2 COMMAND testempty2)
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()