2007-09-06 12:13:05 +02:00
|
|
|
# Makefile for the MJ2 codecs of the OpenJPEG library: frames_to_mj2, mj2_to_frames, extract_j2k_from_mj2 and wrap_j2k_in_mj2
|
|
|
|
|
|
|
|
# Headers file are located here:
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${OPENJPEG_SOURCE_DIR}/libopenjpeg
|
2010-12-08 12:06:41 +01:00
|
|
|
${OPENJPEG_SOURCE_DIR}/common
|
2010-10-05 12:33:15 +02:00
|
|
|
${LCMS_INCLUDE_DIR}
|
2007-09-06 12:13:05 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(frames_to_mj2
|
|
|
|
frames_to_mj2.c
|
2010-12-08 12:06:41 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/common/getopt.c
|
2010-09-05 23:59:25 +02:00
|
|
|
mj2_convert.c
|
|
|
|
mj2.c
|
|
|
|
)
|
2010-12-05 16:19:57 +01:00
|
|
|
TARGET_LINK_LIBRARIES(frames_to_mj2 ${OPENJPEG_LIBRARY_NAME} ${LCMS_LIB})
|
2007-09-06 12:13:05 +02:00
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(frames_to_mj2 m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(mj2_to_frames
|
|
|
|
mj2_to_frames.c
|
2010-12-08 12:06:41 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/common/getopt.c
|
2010-09-05 23:59:25 +02:00
|
|
|
mj2_convert.c
|
|
|
|
mj2.c
|
2010-12-08 12:06:41 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/common/color.c
|
2010-09-05 23:59:25 +02:00
|
|
|
)
|
2010-12-05 16:19:57 +01:00
|
|
|
TARGET_LINK_LIBRARIES(mj2_to_frames ${OPENJPEG_LIBRARY_NAME} ${LCMS_LIB})
|
2007-09-06 12:13:05 +02:00
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(mj2_to_frames m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(extract_j2k_from_mj2
|
|
|
|
extract_j2k_from_mj2.c
|
|
|
|
mj2.c )
|
2010-12-05 16:19:57 +01:00
|
|
|
TARGET_LINK_LIBRARIES(extract_j2k_from_mj2 ${OPENJPEG_LIBRARY_NAME} ${LCMS_LIB})
|
2007-09-06 12:13:05 +02:00
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(extract_j2k_from_mj2 m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(wrap_j2k_in_mj2
|
|
|
|
wrap_j2k_in_mj2.c
|
|
|
|
mj2.c )
|
2010-12-05 16:19:57 +01:00
|
|
|
TARGET_LINK_LIBRARIES(wrap_j2k_in_mj2 ${OPENJPEG_LIBRARY_NAME} ${LCMS_LIB})
|
2007-09-06 12:13:05 +02:00
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(wrap_j2k_in_mj2 m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
2007-09-12 11:04:03 +02:00
|
|
|
INSTALL(TARGETS frames_to_mj2 mj2_to_frames extract_j2k_from_mj2 wrap_j2k_in_mj2
|
|
|
|
DESTINATION bin)
|