diff options
| author | Antonin Descampe <antonin@gmail.com> | 2015-09-15 15:49:58 +0200 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2015-09-15 15:49:58 +0200 |
| commit | 2d47938b25526e29b88d379057cc9ffa293e6dfd (patch) | |
| tree | d0e646876d8d448bb4a54e6456ef9ac4af52ef68 /tests/unit | |
| parent | 2e508f1c89b6de9cf3f03c2b51d064839d455ebf (diff) | |
added testempty0 test
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/CMakeLists.txt | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index e45b991d..67cf854f 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -1,9 +1,17 @@ -# UNIT TESTS +# 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() |
