X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=samples%2FSampleOutputObserver%2FCMakeLists.txt;h=0a9e19ac0e85a84ad1389e6b30f4d91f9eebdb40;hb=8ee546d7257111089f6e87c2c2e2c5394387f9ad;hp=2bcb211f529286c5e75997b19bcb3728b043d101;hpb=43b1503553c17d85b0e7aa356468fb8527e2bb68;p=bbtk.git diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index 2bcb211..0a9e19a 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -17,8 +17,13 @@ SET(USE_WXWIDGETS ON) CREA_FIND_AND_USE_LIBRARIES() # main -ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE}) -SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console ) +IF(WIN32) + ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE}) + SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console ) +ELSE(WIN32) + ADD_EXECUTABLE(${SAMPLE} MACOSX_BUNDLE ${SAMPLE}) +ENDIF(WIN32) + # Link against bbwx TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})