Browse Source

CMake: rename test target to "tests"

Comply with CMake policy CMP0037: "test" is a reserved target name.
master
Matteo Cypriani 2 years ago
parent
commit
44dcf42180
2 changed files with 4 additions and 3 deletions
  1. 1
    1
      CMakeLists.txt
  2. 3
    2
      INSTALL.t2t

+ 1
- 1
CMakeLists.txt View File

@@ -233,6 +233,6 @@ add_custom_target(static DEPENDS ${OWLPS_STATIC_TARGETS})
233 233
 
234 234
 ### Tests ###
235 235
 
236
-add_custom_target(test
236
+add_custom_target(tests
237 237
   COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_positioner
238 238
   DEPENDS test_positioner)

+ 3
- 2
INSTALL.t2t View File

@@ -148,9 +148,10 @@ To display all the available targets, type:
148 148
 
149 149
 = Running the tests =
150 150
 
151
-To run the unit tests, use the ``test`` target:
151
+To run the unit tests, you will need to install ``cxxtest``. Then use
152
+the ``tests`` target from your build directory:
152 153
 
153
-``` make test
154
+``` make tests
154 155
 
155 156
 Currently, only OwlPS Positioner has (partial) unit tests.
156 157
 

Loading…
Cancel
Save