X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FwxContourGUIExample%2FCMakeLists.txt;h=8820fed5e03ce051655d3a3096348a8b1f634dd4;hb=refs%2Fheads%2Fvtk8itk4wx3-mingw64;hp=5cfc3e06e569d881eaffeb07818d303171e90bc1;hpb=507a00d9d7800568d6e8ae91905f2b07cd2b30ae;p=creaContours.git diff --git a/appli/wxContourGUIExample/CMakeLists.txt b/appli/wxContourGUIExample/CMakeLists.txt index 5cfc3e0..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) @@ -52,3 +59,9 @@ TARGET_LINK_LIBRARIES( creaContourApp ) INSTALL_TARGETS(/bin/ creaContourApp ) + + + + + +