]> Creatis software - bbtk.git/blob - samples/SampleInterpreter/CMakeLists.txt
*** empty log message ***
[bbtk.git] / samples / SampleInterpreter / 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 # Link with bbtk
17 TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})
18
19
20 # Configure the script bbProcessing.bbs to binary dir so that the 
21 # sample find it !
22 CONFIGURE_FILE(bbProcessing.bbs
23   ${EXECUTABLE_OUTPUT_PATH}/bbProcessing.bbs
24   COPYONLY)