2011-08-12 15:57:36 +02:00
|
|
|
INCLUDE_REGULAR_EXPRESSION("^.*$")
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
2011-11-02 01:54:19 +01:00
|
|
|
${OPENJPEG_SOURCE_DIR}/libopenjpeg
|
2011-08-12 15:57:36 +02:00
|
|
|
${FCGI_INCLUDE_DIRNAME}
|
|
|
|
)
|
|
|
|
|
|
|
|
# Defines the source code for the library
|
|
|
|
SET(OPENJPIP_SRCS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/boxheader_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/codestream_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/imgreg_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/marker_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/msgqueue_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/box_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/faixbox_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/index_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/metadata_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/placeholder_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/byte_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ihdrbox_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/manfbox_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/mhixbox_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/target_manager.c
|
2011-08-26 14:44:28 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cachemodel_manager.c
|
2011-09-30 17:31:06 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/j2kheader_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jp2k_encoder.c
|
2011-10-25 23:10:48 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/openjpip.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/query_parser.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/channel_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/session_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jpip_parser.c
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(LOCAL_SRCS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jp2k_decoder.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/imgsock_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jpipstream_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cache_manager.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dec_clientmsg_handler.c
|
2011-08-12 15:57:36 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# Build the library
|
2011-10-25 23:10:48 +02:00
|
|
|
ADD_LIBRARY(openjpip_local STATIC ${OPENJPIP_SRCS} ${LOCAL_SRCS})
|
2011-11-02 01:54:19 +01:00
|
|
|
TARGET_LINK_LIBRARIES(openjpip_local ${OPENJPEG_LIBRARY_NAME})
|
2011-08-12 15:57:36 +02:00
|
|
|
|
2011-08-16 10:52:23 +02:00
|
|
|
ADD_LIBRARY(openjpip_server STATIC ${OPENJPIP_SRCS})
|
2011-08-12 15:57:36 +02:00
|
|
|
TARGET_LINK_LIBRARIES(openjpip_server ${FCGI_LIBNAME})
|
|
|
|
SET_TARGET_PROPERTIES(openjpip_server
|
2011-11-24 11:42:47 +01:00
|
|
|
PROPERTIES COMPILE_FLAGS "-DSERVER"
|
|
|
|
)
|
2011-08-12 15:57:36 +02:00
|
|
|
|
2011-11-24 11:42:47 +01:00
|
|
|
# As far as I understand the design openjpip_ libs do not have stable API
|
|
|
|
# This is why they are build as static. Thus they should NOT be installed as of yet
|
2011-08-12 15:57:36 +02:00
|
|
|
# Install library
|
2011-11-24 11:42:47 +01:00
|
|
|
#INSTALL(TARGETS openjpip_local
|
|
|
|
# EXPORT OpenJPEGTargets
|
|
|
|
# DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries
|
|
|
|
# )
|
|
|
|
#
|
|
|
|
#INSTALL(TARGETS openjpip_server
|
|
|
|
# EXPORT OpenJPEGTargets
|
|
|
|
# DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries
|
|
|
|
# )
|