diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-09-07 13:21:17 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-09-07 13:21:17 +0000 |
| commit | b29cff9b9c081ef1f80088fae4a3c4d7a3b7a082 (patch) | |
| tree | 351070cfd17f2bcc2c0629024be2e290d610606b /codec | |
| parent | 2479921c7115dba5b3d41a047a18402a77366bbd (diff) | |
ENH: Add cmake code to do testing if user has properly setup a testimages directory
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt index 363c8fd8..84eb07a1 100644 --- a/codec/CMakeLists.txt +++ b/codec/CMakeLists.txt @@ -43,6 +43,8 @@ FOREACH(exe j2k_to_image image_to_j2k) ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS}) TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES}) ADD_TEST(${exe} ${EXECUTABLE_OUTPUT_PATH}/${exe}) + # calling those exe without option will make them fail always: + SET_TESTS_PROPERTIES(${exe} PROPERTIES WILL_FAIL TRUE) # On unix you need to link to the math library: IF(UNIX) TARGET_LINK_LIBRARIES(${exe} m) |
