From 44dcf42180691bde3e6786f25d635063c53e64fe Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Thu, 3 Nov 2016 12:29:10 -0400 Subject: [PATCH] CMake: rename test target to "tests" Comply with CMake policy CMP0037: "test" is a reserved target name. --- CMakeLists.txt | 2 +- INSTALL.t2t | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35f3c6d..6bded12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,6 +233,6 @@ add_custom_target(static DEPENDS ${OWLPS_STATIC_TARGETS}) ### Tests ### -add_custom_target(test +add_custom_target(tests COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_positioner DEPENDS test_positioner) diff --git a/INSTALL.t2t b/INSTALL.t2t index f2fcbd3..32713b8 100644 --- a/INSTALL.t2t +++ b/INSTALL.t2t @@ -148,9 +148,10 @@ To display all the available targets, type: = Running the tests = -To run the unit tests, use the ``test`` target: +To run the unit tests, you will need to install ``cxxtest``. Then use +the ``tests`` target from your build directory: -``` make test +``` make tests Currently, only OwlPS Positioner has (partial) unit tests.