summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2010-05-26 09:45:12 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2010-05-26 09:45:12 +0000
commita1b6f1e0966b33197ee02c952b806b8a0bc7d51f (patch)
tree3677beb68b398d9745fcb6ec954cbad2b7f336ac /codec
parenta02c683572bda5e7eb212bc5a11f7e7140a47714 (diff)
Reactivate ctest
Diffstat (limited to 'codec')
-rw-r--r--codec/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index 26cd7eeb..32aed5ee 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -38,11 +38,12 @@ IF(NOT BUILD_SHARED_LIBS)
ENDIF(NOT BUILD_SHARED_LIBS)
FIND_PACKAGE(TIFF REQUIRED)
+FIND_PACKAGE(PNG REQUIRED)
# Loop over all executables:
FOREACH(exe j2k_to_image image_to_j2k)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
- TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES})
+ TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES} ${PNG_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)