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-09-01 02:52:26 +02:00
|
|
|
# Do the proper thing when building static...if only there was configured
|
|
|
|
# headers or def files instead
|
|
|
|
IF(NOT BUILD_SHARED_LIBS)
|
|
|
|
ADD_DEFINITIONS(-DOPJ_STATIC)
|
|
|
|
ENDIF(NOT BUILD_SHARED_LIBS)
|
|
|
|
|
2007-09-06 12:13:05 +02:00
|
|
|
ADD_EXECUTABLE(frames_to_mj2
|
|
|
|
frames_to_mj2.c
|
|
|
|
compat/getopt.c
|
|
|
|
mj2_convert.c mj2.c )
|
|
|
|
TARGET_LINK_LIBRARIES(frames_to_mj2 ${OPJ_PREFIX}openjpeg)
|
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(frames_to_mj2 m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(mj2_to_frames
|
|
|
|
mj2_to_frames.c
|
|
|
|
compat/getopt.c mj2_convert.c mj2.c )
|
|
|
|
TARGET_LINK_LIBRARIES(mj2_to_frames ${OPJ_PREFIX}openjpeg)
|
|
|
|
IF(UNIX)
|
|
|
|
TARGET_LINK_LIBRARIES(mj2_to_frames m)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(extract_j2k_from_mj2
|
|
|
|
extract_j2k_from_mj2.c
|
|
|
|
mj2.c )
|
|
|
|
TARGET_LINK_LIBRARIES(extract_j2k_from_mj2 ${OPJ_PREFIX}openjpeg)
|
|
|
|
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 )
|
|
|
|
TARGET_LINK_LIBRARIES(wrap_j2k_in_mj2 ${OPJ_PREFIX}openjpeg)
|
|
|
|
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)
|