2007-09-06 12:23:40 +02: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)
|
|
|
|
|
2011-04-14 00:38:50 +02:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${OPENJPEG_SOURCE_DIR}/libopenjpeg
|
|
|
|
)
|
2010-09-01 02:52:26 +02:00
|
|
|
|
2010-12-05 16:19:57 +01:00
|
|
|
# Build the library
|
2010-11-28 18:07:04 +01:00
|
|
|
IF(WIN32)
|
2010-12-05 16:19:57 +01:00
|
|
|
IF(BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DOPJ_EXPORTS)
|
|
|
|
ELSE(BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DOPJ_STATIC)
|
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
2010-11-28 18:07:04 +01:00
|
|
|
ENDIF(WIN32)
|
2011-04-14 00:38:50 +02:00
|
|
|
ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME}_JPWL ${JPWL_SRCS} ${OPENJPEG_SRCS})
|
2011-03-20 23:45:24 +01:00
|
|
|
SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}_JPWL
|
|
|
|
PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
|
2010-12-08 12:06:41 +01:00
|
|
|
|
2010-11-28 18:07:04 +01:00
|
|
|
# Install library
|
2010-12-05 16:19:57 +01:00
|
|
|
INSTALL(TARGETS ${OPENJPEG_LIBRARY_NAME}_JPWL
|
2010-10-28 16:34:37 +02:00
|
|
|
DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries
|
|
|
|
)
|