X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=samples%2FSampleOutputObserver%2FCMakeLists.txt;h=0a9e19ac0e85a84ad1389e6b30f4d91f9eebdb40;hb=59c1e1ce3506506ba854b72e6a80bef994bb2d8e;hp=ca18517ceabdff7eef9fcaeeed50b610b1afe68d;hpb=e746553dde41260204aae07b809f484544de10b9;p=bbtk.git diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index ca18517..0a9e19a 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -13,7 +13,17 @@ ENDIF(bbwx_FOUND) SET(SAMPLE bbtkSampleOutputObserver) +SET(USE_WXWIDGETS ON) +CREA_FIND_AND_USE_LIBRARIES() + # main -ADD_EXECUTABLE(${SAMPLE} ${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}) +TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})