]> Creatis software - bbtk.git/blobdiff - samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
Create a package named XXX in a directory named XXX_PKG, to avoid troubles
[bbtk.git] / samples / SampleInsertWxBlackBoxInOwnFrame / CMakeLists.txt
index 3d042fdd0ba93db64a7d67c5fbae69d5a30d0c20..6eed45feac406030f26cb4ccbe21fab1837185f0 100644 (file)
@@ -18,5 +18,8 @@ SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
 
 # main 
 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} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
+TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES} ${bbwx_LIBRARIES}  ${WXWIDGETS_LIBRARIES})