]> Creatis software - gdcm.git/blobdiff - src/jpeg/CMakeLists.txt
ENH: Allow compilation with a not so famous compiler (gdcmDocument.cxx). Also put...
[gdcm.git] / src / jpeg / CMakeLists.txt
index 8a7e5f379db92df29320af2b16fcadd10295ed9a..dfe598c2662eda8d2204559a2e8b558b74d83884 100644 (file)
@@ -57,6 +57,13 @@ SET(JPEG_SOURCES
   ${decompression_SRCS}
   )
 
+IF (WIN32)
+  IF (BUILD_SHARED_LIBS)
+    ADD_DEFINITIONS(-DJPEGDLL)
+  ELSE (BUILD_SHARED_LIBS)
+    ADD_DEFINITIONS(-DJPEGSTATIC)
+  ENDIF (BUILD_SHARED_LIBS)
+ENDIF (WIN32)
 
 # Attempt to generate two libraries: jpeg 8bits and 12 bits using only one
 # source directory