]> Creatis software - clitk.git/commitdiff
Gate text file I/O is not cross-platform due to regex, compile only on unix
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 5 Dec 2011 07:56:46 +0000 (08:56 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 5 Dec 2011 07:56:46 +0000 (08:56 +0100)
common/CMakeLists.txt
common/clitkIO.cxx

index ec826a2..380ce41 100644 (file)
@@ -24,8 +24,6 @@ SET(clitkCommon_SRC
   clitkXdrImageIOFactory.cxx
   clitkHndImageIO.cxx
   clitkHndImageIOFactory.cxx
-  clitkGateAsciiImageIO.cxx
-  clitkGateAsciiImageIOFactory.cxx
   clitkDicomRTDoseIO.cxx
   clitkDicomRTDoseIOFactory.cxx
   clitkOrientation.cxx
@@ -38,6 +36,14 @@ SET(clitkCommon_SRC
   vvImageWriter.cxx
 )
 
+IF(UNIX)
+  SET(clitkCommon_SRC
+    ${clitkCommon_SRC}
+    clitkGateAsciiImageIO.cxx
+    clitkGateAsciiImageIOFactory.cxx
+  )
+ENDIF(UNIX)
+
 ### Declare clitkCommon library
 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
 
index 1acd352..2126a5a 100644 (file)
@@ -38,7 +38,9 @@
 // Register factories
 void clitk::RegisterClitkFactories()
 {
+#ifdef unix
   clitk::GateAsciiImageIOFactory::RegisterOneFactory();
+#endif
   clitk::DicomRTDoseIOFactory::RegisterOneFactory();
 #if ITK_VERSION_MAJOR <= 3
   itk::ImageIOFactory::RegisterBuiltInFactories();