diff options
| author | Antonin Descampe <antonin@gmail.com> | 2011-04-13 21:01:39 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2011-04-13 21:01:39 +0000 |
| commit | 16f205d886407d087fbaa5d00ff31e371f97cb51 (patch) | |
| tree | c711b3f7a6ade13311cd10a2d2ec6cb0ea1b7a4f /applications/JavaOpenJPEG/CMakeLists.txt | |
| parent | 87e4c72ee4be8eb4899cfab25359440a9ecacafa (diff) | |
re-organization of openjpeg directories hierarchy : step 1
Diffstat (limited to 'applications/JavaOpenJPEG/CMakeLists.txt')
| -rw-r--r-- | applications/JavaOpenJPEG/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/applications/JavaOpenJPEG/CMakeLists.txt b/applications/JavaOpenJPEG/CMakeLists.txt new file mode 100644 index 00000000..6b1720b3 --- /dev/null +++ b/applications/JavaOpenJPEG/CMakeLists.txt @@ -0,0 +1,40 @@ +#JavaOpenJPEG/CMakeLists.txt + +# First thing define the common source: +SET(common_SRCS + ../codec/convert.c + ../codec/index.c + ) + +# If not getopt was found then add it to the lib: +IF(DONT_HAVE_GETOPT) + SET(common_SRCS + ${common_SRCS} + ../common/getopt.c + ) +ENDIF(DONT_HAVE_GETOPT) + + +# Headers file are located here: +INCLUDE_DIRECTORIES( + ${OPENJPEG_SOURCE_DIR}/libopenjpeg + ${LCMS_INCLUDE_DIR} + ${PNG_INCLUDE_DIR} + ${ZLIB_INCLUDE_DIR} + ${TIFF_INCLUDE_DIR} + ) + +# Loop over all executables: +FOREACH(exe j2k_to_image image_to_j2k) + ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS}) + TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES} + ${PNG_LIBRARIES} ${ZLIB_LIBRARY} ${LCMS_LIB}) + # On unix you need to link to the math library: + IF(UNIX) + TARGET_LINK_LIBRARIES(${exe} -lm) + ENDIF(UNIX) + # Install exe + INSTALL_TARGETS(/bin/ ${exe}) +ENDFOREACH(exe) + + |
