added testempty0 test
This commit is contained in:
parent
2e508f1c89
commit
2d47938b25
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue