1 #JavaOpenJPEG/CMakeLists.txt
3 # First thing define the common source:
9 # If not getopt was found then add it to the lib:
15 ENDIF(DONT_HAVE_GETOPT)
18 # Headers file are located here:
20 ${OPENJPEG_SOURCE_DIR}/libopenjpeg
27 # Loop over all executables:
28 FOREACH(exe j2k_to_image image_to_j2k)
29 ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
30 TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES}
31 ${PNG_LIBRARIES} ${ZLIB_LIBRARY} ${LCMS_LIB})
32 # On unix you need to link to the math library:
34 TARGET_LINK_LIBRARIES(${exe} -lm)
37 INSTALL_TARGETS(/bin/ ${exe})