removed LCMS dependency in jp3d/libjp3dvm/CMakeLists.txt
[openjpeg.git] / JavaOpenJPEG / CMakeLists.txt
1 #JavaOpenJPEG/CMakeLists.txt
2
3 # First thing define the common source:
4 SET(common_SRCS
5   ../codec/convert.c
6   ../codec/index.c
7   )
8
9 # If not getopt was found then add it to the lib:
10 IF(DONT_HAVE_GETOPT)
11   SET(common_SRCS
12     ${common_SRCS}
13     ../common/getopt.c
14   )
15 ENDIF(DONT_HAVE_GETOPT)
16
17
18 # Headers file are located here:
19 INCLUDE_DIRECTORIES(
20   ${OPENJPEG_SOURCE_DIR}/libopenjpeg
21   ${LCMS_INCLUDE_DIR}
22   ${PNG_INCLUDE_DIR}
23   ${ZLIB_INCLUDE_DIR}
24   ${TIFF_INCLUDE_DIR}
25   )
26
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:
33   IF(UNIX)
34     TARGET_LINK_LIBRARIES(${exe} -lm)
35   ENDIF(UNIX)
36   # Install exe
37   INSTALL_TARGETS(/bin/ ${exe})
38 ENDFOREACH(exe)
39
40