]> Creatis software - bbtk.git/blob - samples/SampleWidgetsBase/CMakeLists.txt
b264e2f437d673760893272f01ef8bb3c785faaa
[bbtk.git] / samples / SampleWidgetsBase / 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 SET(USE_WXWIDGETS ON)
14 CREA_FIND_AND_USE_LIBRARIES()
15
16 SET(SAMPLE bbtkSampleWidgetsBase)
17
18 # main 
19 ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
20 IF(WIN32)
21   SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
22 ENDIF(WIN32)
23 # Link against bbwx
24 TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})