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