1 # Makefile for the MJ2 codecs of the OpenJPEG library: frames_to_mj2, mj2_to_frames, extract_j2k_from_mj2 and wrap_j2k_in_mj2
3 set(common_SRCS ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_getopt.c)
7 add_definitions(-DOPJ_EXPORTS)
9 add_definitions(-DOPJ_STATIC)
13 # Headers file are located here:
15 ${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
16 ${OPENJPEG_BINARY_DIR}/src/bin/common # opj_apps_config.h
17 ${OPENJPEG_SOURCE_DIR}/src/lib/openmj2
18 ${OPENJPEG_SOURCE_DIR}/src/bin/common
19 ${LCMS_INCLUDE_DIRNAME}
28 add_definitions(-DOPJ_USE_LEGACY)
33 ${OPENJPEG_SOURCE_DIR}/src/bin/common/color.c
35 target_link_libraries(${exe} ${LCMS_LIBNAME} openmj2)
38 target_link_libraries(${exe} m)
41 install(TARGETS ${exe}
42 DESTINATION ${OPENJPEG_INSTALL_BIN_DIR})