Sync with trunk
This commit is contained in:
parent
72867bc692
commit
a13abdaf65
|
@ -5,14 +5,15 @@ INCLUDE_DIRECTORIES(
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(OPJ_SERVER_SRCS
|
SET(OPJ_SERVER_SRCS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/opj_server.c
|
${CMAKE_CURRENT_SOURCE_DIR}/opj_server.c
|
||||||
)
|
)
|
||||||
|
|
||||||
# Build executable
|
# Build executable
|
||||||
ADD_DEFINITIONS(-DSERVER -DQUIT_SIGNAL="quitJPIP")
|
|
||||||
#
|
|
||||||
ADD_EXECUTABLE(opj_server ${OPJ_SERVER_SRCS})
|
ADD_EXECUTABLE(opj_server ${OPJ_SERVER_SRCS})
|
||||||
TARGET_LINK_LIBRARIES(opj_server openjpip_server ${FCGI_LIBNAME})
|
TARGET_LINK_LIBRARIES(opj_server openjpip_server ${FCGI_LIBNAME})
|
||||||
|
SET_TARGET_PROPERTIES(opj_server
|
||||||
|
PROPERTIES COMPILE_FLAGS "-DSERVER -DQUIT_SIGNAL=\\\"quitJPIP\\\""
|
||||||
|
)
|
||||||
|
|
||||||
# On unix you need to link to the math library:
|
# On unix you need to link to the math library:
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
|
@ -20,19 +21,22 @@ IF(UNIX)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
# Install exe
|
# Install exe
|
||||||
INSTALL(TARGETS opj_server
|
INSTALL(TARGETS opj_server
|
||||||
EXPORT OpenJPEGTargets
|
EXPORT OpenJPEGTargets
|
||||||
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
||||||
)
|
|
||||||
#
|
|
||||||
REMOVE_DEFINITIONS(-DSERVER -DQUIT_SIGNAL="quitJPIP")
|
|
||||||
#
|
|
||||||
FOREACH(exe opj_dec_server jpip_to_jp2 jpip_to_j2k test_index)
|
|
||||||
#
|
|
||||||
ADD_EXECUTABLE(${exe} ${exe}.c)
|
|
||||||
TARGET_LINK_LIBRARIES(${exe} openjpip_local)
|
|
||||||
INSTALL(TARGETS ${exe}
|
|
||||||
EXPORT OpenJPEGTargets
|
|
||||||
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
|
||||||
)
|
)
|
||||||
|
#
|
||||||
|
SET(EXES
|
||||||
|
opj_dec_server
|
||||||
|
jpip_to_jp2
|
||||||
|
jpip_to_j2k
|
||||||
|
test_index
|
||||||
|
)
|
||||||
|
FOREACH(exe ${EXES})
|
||||||
|
ADD_EXECUTABLE(${exe} ${exe}.c)
|
||||||
|
TARGET_LINK_LIBRARIES(${exe} openjpip_local)
|
||||||
|
INSTALL(TARGETS ${exe}
|
||||||
|
EXPORT OpenJPEGTargets
|
||||||
|
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
||||||
|
)
|
||||||
ENDFOREACH(exe)
|
ENDFOREACH(exe)
|
||||||
|
|
Loading…
Reference in New Issue