1 # Build the demo app, small examples
3 # First thing define the common source:
6 ${OPENJPEG_SOURCE_DIR}/src/bin/common/opj_getopt.c
9 # Headers file are located here:
11 ${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
12 ${OPENJPEG_SOURCE_DIR}/src/lib/openjp3d
13 ${LCMS_INCLUDE_DIRNAME}
14 ${OPENJPEG_SOURCE_DIR}/src/bin/common
16 ${PNG_INCLUDE_DIRNAME}
17 ${TIFF_INCLUDE_DIRNAME}
22 add_definitions(-DOPJ_EXPORTS)
24 add_definitions(-DOPJ_STATIC)
28 # Loop over all executables:
29 FOREACH(exe opj_jp3d_compress opj_jp3d_decompress)
30 ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
31 TARGET_LINK_LIBRARIES(${exe} openjp3d)
32 # On unix you need to link to the math library:
34 TARGET_LINK_LIBRARIES(${exe} m)
37 INSTALL(TARGETS ${exe}
38 EXPORT OpenJP3DTargets
39 DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications