]> Creatis software - bbtk.git/blobdiff - samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
Windows compatibility
[bbtk.git] / samples / SampleInsertWxBlackBoxInOwnFrame / CMakeLists.txt
index 4cd80c903a25cc85b94b161ce7c9dde5c75905c5..3d042fdd0ba93db64a7d67c5fbae69d5a30d0c20 100644 (file)
@@ -11,9 +11,12 @@ IF(bbwx_FOUND)
 INCLUDE(${bbwx_USE_FILE})
 ENDIF(bbwx_FOUND)
 
+SET(USE_WXWIDGETS ON)
+CREA_FIND_AND_USE_LIBRARIES()
+
 SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
 
 # main 
-ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
 # Link against bbwx
-TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES})
+TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})