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
|
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(+)
Index: libkdtreepp-salsa/CMakeLists.txt
===================================================================
--- libkdtreepp-salsa.orig/CMakeLists.txt 2024-11-23 17:19:43.689379269 +0100
+++ libkdtreepp-salsa/CMakeLists.txt 2024-11-23 17:19:51.673475515 +0100
@@ -1,6 +1,8 @@
cmake_minimum_required (VERSION 2.8.12)
project (libkdtree CXX)
+enable_testing()
+
option (BUILD_PYTHON_BINDINGS "Build Python bindings (requires SWIG)")
if (WIN32)
Index: libkdtreepp-salsa/examples/CMakeLists.txt
===================================================================
--- libkdtreepp-salsa.orig/examples/CMakeLists.txt 2024-11-23 17:19:43.689379269 +0100
+++ libkdtreepp-salsa/examples/CMakeLists.txt 2024-11-23 17:19:43.685379221 +0100
@@ -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)
|