[PATCH 3/8] Enable testing and add test cases
Sebastian Ramacher
sebastian at ramacher.at
Mon Oct 8 19:33:42 UTC 2012
Signed-off-by: Sebastian Ramacher <sebastian at ramacher.at>
---
CMakeLists.txt | 1 +
examples/CMakeLists.txt | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a84b167..ebd596a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
project (libkdtree CXX)
cmake_minimum_required (VERSION 2.6.0)
+enable_testing()
option (BUILD_PYTHON_BINDINGS "Build Python bindings (requires SWIG)")
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 9b4cc4f..03d1f70 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,7 @@
add_executable (test_hayne test_hayne.cpp)
add_executable (test_kdtree test_kdtree.cpp)
add_executable (test_find_within_range test_find_within_range.cpp)
+
+add_test(test_hayne test_hayne)
+add_test(test_kdtree test_kdtree)
+add_test(test_find_within_range test_find_within_range)
--
1.7.10.4
More information about the libkdtree-devel
mailing list