]> Creatis software - bbtk.git/blob - CMakeLists.txt
045e79b405902214d85b97a231b009afaf0d54d0
[bbtk.git] / CMakeLists.txt
1 # Find bbtk
2
3 # Set 'FIND_PACKAGE_VERBOSE' to have information on the packages found
4 SET(FIND_PACKAGE_VERBOSE 1)
5 # Find 
6 FIND_PACKAGE(BBTK)
7 # Use if found
8 IF(BBTK_FOUND)
9 INCLUDE(${BBTK_USE_FILE})
10 ENDIF(BBTK_FOUND)
11
12 SET(SAMPLE bbtkSampleInterpreter)
13
14 # main 
15 ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
16 IF(WIN32)
17   SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
18 ENDIF(WIN32)
19 # Link with bbtk
20 TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})
21
22
23 # Configure the script bbProcessing.bbs to binary dir so that the 
24 # sample find it !
25 CONFIGURE_FILE(bbProcessing.bbs
26   ${EXECUTABLE_OUTPUT_PATH}/bbProcessing.bbs
27   COPYONLY)