1 # Build the demo app, small examples
3 # First thing define the common source:
8 # If not getopt was found then add it to the lib:
14 ENDIF(DONT_HAVE_GETOPT)
17 # Headers file are located here:
19 ${OPENJPEG_SOURCE_DIR}/libopenjpeg
22 FIND_PACKAGE(TIFF REQUIRED)
24 # Loop over all executables:
25 FOREACH(exe j2k_to_image image_to_j2k)
26 ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
27 TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES})
28 # On unix you need to link to the math library:
30 TARGET_LINK_LIBRARIES(${exe} -lm)
33 INSTALL_TARGETS(/bin/ ${exe})