diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-03-01 14:39:31 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2007-03-01 14:39:31 +0000 |
| commit | 219dd65befd2d53e775426676fe23f7e5f7d92e2 (patch) | |
| tree | f11130521ec9cfcbe749c5b9b324709310cc24b7 /codec | |
| parent | ba423fe3d0b501ae9166e36514c01173b0ce04be (diff) | |
COMP: Fix compilation of executable linking to TIFF lib.
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt index 7ca90e10..24058463 100644 --- a/codec/CMakeLists.txt +++ b/codec/CMakeLists.txt @@ -36,10 +36,12 @@ IF(NOT BUILD_SHARED_LIBS) ADD_DEFINITIONS(-DOPJ_STATIC) ENDIF(NOT BUILD_SHARED_LIBS) +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) + TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES}) # On unix you need to link to the math library: IF(UNIX) TARGET_LINK_LIBRARIES(${exe} -lm) |
