summaryrefslogtreecommitdiff
path: root/src/bin/jpip/CMakeLists.txt
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-10-08 15:59:17 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-10-08 15:59:17 +0000
commit9832c911b36f25f228e391c6da876f79b664af0e (patch)
tree076c1fb815e638ca8ac4d6f287865e9c8e547b21 /src/bin/jpip/CMakeLists.txt
parent23f5eeec20e853c5534df735d9263befda9b0135 (diff)
[trunk] Update JPIP (FolderReorgProposal task)
This commit does three things: - Use opj_malloc/calloc/free instead of the default C ones. - Update JPIP API to start using cio _v2 API - Create a new opj_jpip_compress which is the replacement for image_to_j2k -jpip Update issue 177
Diffstat (limited to 'src/bin/jpip/CMakeLists.txt')
-rw-r--r--src/bin/jpip/CMakeLists.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/bin/jpip/CMakeLists.txt b/src/bin/jpip/CMakeLists.txt
index f1433887..09d6f98c 100644
--- a/src/bin/jpip/CMakeLists.txt
+++ b/src/bin/jpip/CMakeLists.txt
@@ -2,6 +2,8 @@
include_directories(
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
+ ${OPENJPEG_SOURCE_DIR}/src/bin/common # opj_getopt.h
+ ${OPENJPEG_SOURCE_DIR}/src/bin/jp2 # convert.h
${OPENJPEG_SOURCE_DIR}/src/lib/openjpip
${FCGI_INCLUDE_DIRS}
)
@@ -15,7 +17,6 @@ install(TARGETS opj_jpip_addxml
)
if(BUILD_JPIP_SERVER)
-
set(OPJ_SERVER_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/opj_server.c
)
@@ -45,9 +46,20 @@ set(EXES
opj_dec_server
opj_jpip_transcode
opj_jpip_test
+ opj_jpip_compress
)
foreach(exe ${EXES})
- add_executable(${exe} ${exe}.c)
+ if(${exe} STREQUAL "opj_jpip_compress")
+ add_executable(${exe} ${exe}.c
+ ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_getopt.c
+ ${OPENJPEG_SOURCE_DIR}/src/bin/jp2/convert.c
+ )
+ target_link_libraries(${exe}
+ ${PNG_LIBNAME} ${TIFF_LIBNAME} ${LCMS_LIBNAME}
+ )
+ else()
+ add_executable(${exe} ${exe}.c)
+ endif()
target_link_libraries(${exe} openjpip)
install(TARGETS ${exe}
EXPORT OpenJPEGTargets