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