]> Creatis software - creaContours.git/blobdiff - appli/wxContourGUIExample/CMakeLists.txt
#3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw
[creaContours.git] / appli / wxContourGUIExample / CMakeLists.txt
index 755e18b7dfe6d31e6743c093acbba2684f3ec171..8820fed5e03ce051655d3a3096348a8b1f634dd4 100644 (file)
 IF(WIN32)
   #MESSAGE("WIN32")
   ADD_EXECUTABLE(creaContourApp WIN32 wxContourGUIExample.cxx)  
-  SET_TARGET_PROPERTIES(creaContourApp PROPERTIES LINK_FLAGS /subsystem:console )
+
+   IF(MINGW)
+       SET_TARGET_PROPERTIES(creaContourApp PROPERTIES LINK_FLAGS -mconsole )
+  ELSE(MINGW)
+       SET_TARGET_PROPERTIES(creaContourApp PROPERTIES LINK_FLAGS /subsystem:console )
+  ENDIF(MINGW)
+  
 ELSE(WIN32)
   ADD_EXECUTABLE(creaContourApp MACOSX_BUNDLE wxContourGUIExample)
 ENDIF(WIN32)