]> 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 ec826a2340d4437e5d4dd546c865a2609671f74d..380ce41d5c40f3afd9d6224af5202b86cc7d0b63 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 1acd352808ba3ff8f01a8beaa6cd0e2db2ddc66e..2126a5a4d79110eb1abf96422480ef5587c1f8f8 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();