From 2c38002242d2126bd848186c10341f1da1821cb8 Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Sun, 2 Jan 2011 18:10:09 +0000 Subject: [PATCH] bug fixes to enable cmake compilation on WIN32 platform (see CHANGES for details) --- codec/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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})