projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba423fe
)
COMP: Fix compilation of executable linking to TIFF lib.
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 1 Mar 2007 14:39:31 +0000
(14:39 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 1 Mar 2007 14:39:31 +0000
(14:39 +0000)
codec/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/codec/CMakeLists.txt
b/codec/CMakeLists.txt
index 7ca90e1058368923b92c4591312b27b1d44bfdf9..2405846381091b88080bd4869c23ab4179c49fe0 100644
(file)
--- 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)