X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=appli%2FwxContourGUIExample%2FCMakeLists.txt;h=8820fed5e03ce051655d3a3096348a8b1f634dd4;hb=c86e56d7883a16ec6734f64b61b3d87e49527a43;hp=755e18b7dfe6d31e6743c093acbba2684f3ec171;hpb=d366f8ff2bc5fe4fc04d11a11dcd5a6ea2a9b84b;p=creaContours.git diff --git a/appli/wxContourGUIExample/CMakeLists.txt b/appli/wxContourGUIExample/CMakeLists.txt index 755e18b..8820fed 100644 --- a/appli/wxContourGUIExample/CMakeLists.txt +++ b/appli/wxContourGUIExample/CMakeLists.txt @@ -27,7 +27,14 @@ 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)