]> Creatis software - bbtk.git/blobdiff - samples/SampleInterpreter/CMakeLists.txt
*** empty log message ***
[bbtk.git] / samples / SampleInterpreter / CMakeLists.txt
diff --git a/samples/SampleInterpreter/CMakeLists.txt b/samples/SampleInterpreter/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7b32e37
--- /dev/null
@@ -0,0 +1,24 @@
+# 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)