diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-06-03 13:44:58 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-06-03 13:44:58 +0000 |
| commit | 74583409eca710ec572e1d423672e23b9c0822af (patch) | |
| tree | 3ebc761458a5a15f68d0a6335275edb4e787ebd8 /applications/codec | |
| parent | 3da66d4d7905694b93456173c7665be08a986ef5 (diff) | |
Fix some error with cmake
Diffstat (limited to 'applications/codec')
| -rw-r--r-- | applications/codec/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/codec/CMakeLists.txt b/applications/codec/CMakeLists.txt index 37c8bb5d..44f10872 100644 --- a/applications/codec/CMakeLists.txt +++ b/applications/codec/CMakeLists.txt @@ -37,7 +37,11 @@ ENDIF(WIN32) FOREACH(exe j2k_to_image image_to_j2k j2k_dump) ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS}) TARGET_LINK_LIBRARIES(${exe} ${OPENJPEG_LIBRARY_NAME} - ${LCMS_LIBNAME} ${Z_LIBNAME} ${PNG_LIBNAME} ${TIFF_LIBNAME}) +${Z_LIBNAME} ${PNG_LIBNAME} ${TIFF_LIBNAME}) + + IF(LCMS_FOUND OR LCMS2_FOUND) + TARGET_LINK_LIBRARIES(${exe} ${LCMS_LIBNAME}) + ENDIF(LCMS_FOUND OR LCMS2_FOUND) ADD_TEST(${exe} ${EXECUTABLE_OUTPUT_PATH}/${exe}) # calling those exe without option will make them fail always: |
