X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=samples%2FSampleOutputObserver%2FCMakeLists.txt;h=a72b24d1953312816ae3684a5aecf5b3c3161a68;hb=e249b08904f1f8a4349706e74768ed47a3e17aee;hp=ca18517ceabdff7eef9fcaeeed50b610b1afe68d;hpb=e746553dde41260204aae07b809f484544de10b9;p=bbtk.git diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index ca18517..a72b24d 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -13,7 +13,13 @@ 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}) +IF(WIN32) + SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console ) +ENDIF(WIN32) # Link against bbwx -TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES}) +TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})