bug fixes to enable cmake compilation on WIN32 platform (see CHANGES for details)

This commit is contained in:
Antonin Descampe 2011-01-02 18:10:09 +00:00
parent 1c1c123897
commit 2c38002242
1 changed files with 8 additions and 0 deletions

View File

@ -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})