]> Creatis software - bbtk.git/blob - samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
*** empty log message ***
[bbtk.git] / samples / SampleInsertWxBlackBoxInOwnFrame / CMakeLists.txt
1 # Find the bbtk package wx 
2 # The package is called 'bbwx'
3 # It itself finds bbtk and automatically exports its dependency on it
4
5 # Set 'FIND_PACKAGE_VERBOSE' to have information on the packages found
6 SET(FIND_PACKAGE_VERBOSE 1)
7 # Find 
8 FIND_PACKAGE(bbwx)
9 # Use if found
10 IF(bbwx_FOUND)
11 INCLUDE(${bbwx_USE_FILE})
12 ENDIF(bbwx_FOUND)
13
14 SET(USE_WXWIDGETS ON)
15 CREA_FIND_AND_USE_LIBRARIES()
16
17 SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
18
19 # main 
20 ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
21 IF(WIN32)
22   SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
23 ENDIF(WIN32)
24 # Link against bbwx
25 TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})