--- /dev/null
+# Find bbtk
+
+# Set 'FIND_PACKAGE_VERBOSE' to have information on the packages found
+SET(FIND_PACKAGE_VERBOSE 1)
+# Find
+FIND_PACKAGE(BBTK)
+# Use if found
+IF(BBTK_FOUND)
+INCLUDE(${BBTK_USE_FILE})
+ENDIF(BBTK_FOUND)
+
+SET(SAMPLE bbtkSampleInterpreter)
+
+# main
+ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+# Link with bbtk
+TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})
+
+
+# Configure the script bbProcessing.bbs to binary dir so that the
+# sample find it !
+CONFIGURE_FILE(bbProcessing.bbs
+ ${EXECUTABLE_OUTPUT_PATH}/bbProcessing.bbs
+ COPYONLY)