summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-02-05 21:39:19 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-02-05 21:39:19 +0000
commit23eeec876922ca8d593a7b43bfe22d131c3b7902 (patch)
tree8f0ed615c8e8209cf241b42378e3775e948a2ebe /codec
parentf31d963a643a0541ccbe47e119567aa3692c2f9d (diff)
ENH: Do the proper thing for static/shared
Diffstat (limited to 'codec')
-rw-r--r--codec/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index 3ed8bedd..3f3c7d5a 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -30,6 +30,12 @@ INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg
)
+# Do the proper thing when building static...if only there was configured
+# headers or def files instead
+IF(NOT BUILD_SHARED_LIBS)
+ ADD_DEFINITIONS(-DOPJ_STATIC)
+ENDIF(NOT BUILD_SHARED_LIBS)
+
# Loop over all executables:
FOREACH(exe j2k_to_image image_to_j2k)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})