File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -216,4 +216,4 @@ add_dependencies(install-lib multiprocess)
216
216
217
217
# Example and test subdirectories
218
218
add_subdirectory (example EXCLUDE_FROM_ALL )
219
- add_subdirectory (test EXCLUDE_FROM_ALL )
219
+ add_subdirectory (test )
Original file line number Diff line number Diff line change 2
2
# Distributed under the MIT software license, see the accompanying
3
3
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- # Custom test targets for convenience, based on
6
- # https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/EmulateMakeCheck.
7
- #
8
- # CTest already provides a "make test" target, but it just runs existing tests
9
- # that were previously built, without building anything itself. Define "make
10
- # tests" here as a custom target to build all available tests and "make check"
11
- # as a custom target to build and run them.
12
- add_custom_target (mptests )
13
- add_custom_target (mpcheck COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS mptests )
14
-
15
- # Only add more convenient tests and check targets if project is being built
16
- # standalone, to prevent clashes with external projects.
17
- if (MP_STANDALONE )
18
- add_custom_target (tests DEPENDS mptests )
19
- add_custom_target (check DEPENDS mpcheck )
20
- endif ()
21
-
22
5
if (BUILD_TESTING AND TARGET CapnProto::kj-test )
23
6
set_property (SOURCE ${MP_PROXY_HDRS} PROPERTY GENERATED 1 )
24
7
@@ -34,6 +17,5 @@ if(BUILD_TESTING AND TARGET CapnProto::kj-test)
34
17
target_link_libraries (mptest PRIVATE CapnProto::kj-test )
35
18
target_link_libraries (mptest PRIVATE Threads::Threads )
36
19
37
- add_dependencies (mptests mptest )
38
20
add_test (NAME mptest COMMAND mptest )
39
21
endif ()
You can’t perform that action at this time.
0 commit comments