]> Creatis software - bbtk.git/blobdiff - samples/SampleOutputObserver/CMakeLists.txt
Windows compatibility
[bbtk.git] / samples / SampleOutputObserver / CMakeLists.txt
index ca18517ceabdff7eef9fcaeeed50b610b1afe68d..2bcb211f529286c5e75997b19bcb3728b043d101 100644 (file)
@@ -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})