summaryrefslogtreecommitdiff
path: root/codec/CMakeLists.txt
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@gmail.com>2010-09-08 22:40:11 +0000
committerLuis Ibanez <luis.ibanez@gmail.com>2010-09-08 22:40:11 +0000
commit531c0cf26f0c327b42a5caa79725e4afeb98768d (patch)
treeb40bf58e7894092dfc922081eeaec2fe7fa487cf /codec/CMakeLists.txt
parentb7208fb525f0f260bdd1d095d2e7ef3692b0d1a0 (diff)
Reverting the use of #include "openjpegConfigure.h" until we find a compatible
way of doing this with autoconf, and with the default VS project files.
Diffstat (limited to 'codec/CMakeLists.txt')
-rw-r--r--codec/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index fdefce6c..563ae6dd 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -14,6 +14,12 @@ IF(DONT_HAVE_GETOPT)
)
ENDIF(DONT_HAVE_GETOPT)
+# 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)
+
# Headers file are located here:
INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg