]> Creatis software - gdcm.git/blobdiff - src/gdcmjpegls/Decoder/CMakeLists.txt
SerieHelper Normalization : stage 1
[gdcm.git] / src / gdcmjpegls / Decoder / CMakeLists.txt
index 35f9baebc86e666a92fcad423a4e52d29b956574..da2bcd119ebc1f434c008251ffb815ec663e13c2 100644 (file)
@@ -12,6 +12,18 @@ SET(GDCMJPEGLS_SRCS
   bitio.c 
   melcode.c)
 
+# Do the -fno-common magic
+IF(APPLE)
+  FOREACH(f ${GDCMJPEGLS_SRCS})
+    SET_SOURCE_FILES_PROPERTIES(
+      "${GDCMJPEGLS_SOURCE_DIR}/Decoder/${f}"
+      PROPERTIES COMPILE_FLAGS -fno-common)
+  ENDFOREACH(f)
+ENDIF(APPLE)
+
+
 ADD_LIBRARY(gdcmjpegls ${GDCMJPEGLS_SRCS})
+#ADD_EXECUTABLE(locod ${GDCMJPEGLS_SRCS})
 
 # TODO must do the INSTALL_ blah thing
+INSTALL_TARGETS(/lib/gdcm/ gdcmjpegls)