X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=samples%2FSampleOutputObserver%2FCMakeLists.txt;h=0a9e19ac0e85a84ad1389e6b30f4d91f9eebdb40;hb=8ee546d7257111089f6e87c2c2e2c5394387f9ad;hp=a72b24d1953312816ae3684a5aecf5b3c3161a68;hpb=8586e5e054283f8f7b22dd17b12e2d6b8338df62;p=bbtk.git diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index a72b24d..0a9e19a 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -17,9 +17,13 @@ SET(USE_WXWIDGETS ON) CREA_FIND_AND_USE_LIBRARIES() # main -ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE}) 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})