]> Creatis software - bbtk.git/blobdiff - samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
*** empty log message ***
[bbtk.git] / samples / SampleInsertWxBlackBoxInOwnFrame / CMakeLists.txt
diff --git a/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt b/samples/SampleInsertWxBlackBoxInOwnFrame/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4cd80c9
--- /dev/null
@@ -0,0 +1,19 @@
+# Find the bbtk package wx 
+# The package is called 'bbwx'
+# It itself finds bbtk and automatically exports its dependency on it
+
+# Set 'FIND_PACKAGE_VERBOSE' to have information on the packages found
+SET(FIND_PACKAGE_VERBOSE 1)
+# Find 
+FIND_PACKAGE(bbwx)
+# Use if found
+IF(bbwx_FOUND)
+INCLUDE(${bbwx_USE_FILE})
+ENDIF(bbwx_FOUND)
+
+SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
+
+# main 
+ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+# Link against bbwx
+TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES})