summaryrefslogtreecommitdiff
path: root/applications/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-04-14 10:13:25 +0000
committerAntonin Descampe <antonin@gmail.com>2011-04-14 10:13:25 +0000
commit27b894dd3fd6d67dacf6c263587d789d96172116 (patch)
treefdbf0c28ae4a76886033e6c7830b19c0538b96a4 /applications/codec
parent6aaaa3eae28d82e3a2c34e0bd57d027be0685869 (diff)
fixed applications/codec/CMakeLists.txt that prevented JPWL executables to be built with JPWL functionalities ; changed make all behaviour : DOC target removed from ALL
Diffstat (limited to 'applications/codec')
-rw-r--r--applications/codec/CMakeLists.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/applications/codec/CMakeLists.txt b/applications/codec/CMakeLists.txt
index 02d90fc5..37c8bb5d 100644
--- a/applications/codec/CMakeLists.txt
+++ b/applications/codec/CMakeLists.txt
@@ -66,10 +66,15 @@ IF(BUILD_JPWL)
j2k_to_image.c
${common_SRCS}
)
+
+ SET_PROPERTY(
+ TARGET JPWL_j2k_to_image
+ APPEND PROPERTY COMPILE_DEFINITIONS USE_JPWL
+ )
TARGET_LINK_LIBRARIES(JPWL_j2k_to_image ${OPENJPEG_LIBRARY_NAME}_JPWL
${LCMS_LIBNAME} ${Z_LIBNAME} ${PNG_LIBNAME} ${TIFF_LIBNAME})
- #
+
IF(UNIX)
TARGET_LINK_LIBRARIES(JPWL_j2k_to_image m)
ENDIF(UNIX)
@@ -78,10 +83,15 @@ IF(BUILD_JPWL)
image_to_j2k.c
${common_SRCS}
)
+
+ SET_PROPERTY(
+ TARGET JPWL_image_to_j2k
+ APPEND PROPERTY COMPILE_DEFINITIONS USE_JPWL
+ )
TARGET_LINK_LIBRARIES(JPWL_image_to_j2k ${OPENJPEG_LIBRARY_NAME}_JPWL
${LCMS_LIBNAME} ${Z_LIBNAME} ${PNG_LIBNAME} ${TIFF_LIBNAME})
- #
+
IF(UNIX)
TARGET_LINK_LIBRARIES(JPWL_image_to_j2k m)
ENDIF(UNIX)