]> Creatis software - clitk.git/blobdiff - common/CMakeLists.txt
Gate text file I/O is not cross-platform due to regex, compile only on unix
[clitk.git] / common / CMakeLists.txt
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})