summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-01-02 18:10:09 +0000
committerAntonin Descampe <antonin@gmail.com>2011-01-02 18:10:09 +0000
commit2c38002242d2126bd848186c10341f1da1821cb8 (patch)
treeade6d3d0c5aed147b1ee98599800b78886945d46 /codec
parent1c1c123897c9e754cd48c123a50abf882403b6aa (diff)
bug fixes to enable cmake compilation on WIN32 platform (see CHANGES for details)
Diffstat (limited to 'codec')
-rw-r--r--codec/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt
index 9e35ea7a..6c33b963 100644
--- a/codec/CMakeLists.txt
+++ b/codec/CMakeLists.txt
@@ -24,6 +24,14 @@ IF(DONT_HAVE_GETOPT)
)
ENDIF(DONT_HAVE_GETOPT)
+IF(WIN32)
+ IF(BUILD_SHARED_LIBS)
+ ADD_DEFINITIONS(-DOPJ_EXPORTS)
+ ELSE(BUILD_SHARED_LIBS)
+ ADD_DEFINITIONS(-DOPJ_STATIC)
+ ENDIF(BUILD_SHARED_LIBS)
+ENDIF(WIN32)
+
# Loop over all executables:
FOREACH(exe jp3d_to_volume volume_to_jp3d)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})