Package: libkdtree++ / 0.7.1+git20101123-5

enable-tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Enable testing and add test cases
Author: Sebastian Ramacher <sramacher@debian.org>
Origin: vendor
Last-Update: 2012-11-17
Forwarded: http://lists.alioth.debian.org/pipermail/libkdtree-devel/2012-October/000363.html

---
 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