diff options
| author | Antonin Descampe <antonin@gmail.com> | 2010-11-17 10:26:05 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2010-11-17 10:26:05 +0000 |
| commit | 223a39b51e24c3efe565c4c3276bcbd8c3d4db4d (patch) | |
| tree | 56500a947b9207ba21d2b3c08736313f3070de2d /JavaOpenJPEG | |
| parent | 8faf300b6e3d6fa9e16f6e3951646e69c52ef28e (diff) | |
minor changes in cmake files (from winfried)
Diffstat (limited to 'JavaOpenJPEG')
| -rw-r--r-- | JavaOpenJPEG/CMakeLists.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/JavaOpenJPEG/CMakeLists.txt b/JavaOpenJPEG/CMakeLists.txt index 66509caf..e5370f9e 100644 --- a/JavaOpenJPEG/CMakeLists.txt +++ b/JavaOpenJPEG/CMakeLists.txt @@ -1,15 +1,16 @@ -# Build the demo app, small examples +#JavaOpenJPEG/CMakeLists.txt # First thing define the common source: SET(common_SRCS - convert.c + ../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} - compat/getopt.c + ../codec/compat/getopt.c ) ENDIF(DONT_HAVE_GETOPT) @@ -17,14 +18,17 @@ 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} ) -FIND_PACKAGE(TIFF REQUIRED) - # 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}) + 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) |
