2007-09-06 10:23:40 +00:00
|
|
|
# Makefile for the main JPWL OpenJPEG codecs: JPWL_ j2k_to_image and JPWL_image_to_j2k
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-DUSE_JPWL)
|
|
|
|
|
|
|
|
SET(JPWL_SRCS crc.c jpwl.c jpwl_lib.c rs.c)
|
2012-03-02 14:31:46 +00:00
|
|
|
IF(APPLE)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(
|
|
|
|
rs.c
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS -fno-common)
|
|
|
|
ENDIF(APPLE)
|
2007-09-06 10:23:40 +00:00
|
|
|
|
2011-04-13 22:38:50 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${OPENJPEG_SOURCE_DIR}/libopenjpeg
|
|
|
|
)
|
2010-09-01 00:52:26 +00:00
|
|
|
|
2010-12-05 15:19:57 +00:00
|
|
|
# Build the library
|
2010-11-28 17:07:04 +00:00
|
|
|
IF(WIN32)
|
2010-12-05 15:19:57 +00:00
|
|
|
IF(BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DOPJ_EXPORTS)
|
|
|
|
ELSE(BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DOPJ_STATIC)
|
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
2010-11-28 17:07:04 +00:00
|
|
|
ENDIF(WIN32)
|
2011-04-13 22:38:50 +00:00
|
|
|
ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME}_JPWL ${JPWL_SRCS} ${OPENJPEG_SRCS})
|
2011-03-20 22:45:24 +00:00
|
|
|
SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}_JPWL
|
|
|
|
PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
|
2010-12-08 11:06:41 +00:00
|
|
|
|
2010-11-28 17:07:04 +00:00
|
|
|
# Install library
|
2010-12-05 15:19:57 +00:00
|
|
|
INSTALL(TARGETS ${OPENJPEG_LIBRARY_NAME}_JPWL
|
2012-03-02 14:31:46 +00:00
|
|
|
EXPORT OpenJPEGTargets
|
|
|
|
RUNTIME DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
|
|
|
|
LIBRARY DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries
|
|
|
|
ARCHIVE DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries
|
2010-10-28 14:34:37 +00:00
|
|
|
)
|