]> Creatis software - bbtk.git/blob - samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
3d042fdd0ba93db64a7d67c5fbae69d5a30d0c20
[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 # Link against bbwx
22 TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})