diff options
| author | Thijs Paelman <thijs@ouroboros.rocks> | 2025-10-20 19:58:01 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-11-21 08:21:38 +0100 |
| commit | e54be25b524316006d7a36893c8847d438df06e5 (patch) | |
| tree | 10ff3be23540cdc89c62912af6e57a06093721d4 /CMakeLists.txt | |
| parent | 7dd1cd18373a6c64ecea8caf231e10a00764f705 (diff) | |
| download | ouroboros-e54be25b524316006d7a36893c8847d438df06e5.tar.gz ouroboros-e54be25b524316006d7a36893c8847d438df06e5.zip | |
build: Add build_tests target
This intermediate target only builds all the tests, it doesn't run them.
It is added for clarifying the different steps involved in testing.
The 'check' target still builds AND runs the tests as before.
Signed-off-by: Thijs Paelman <thijs@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d4a00708..978da287 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,7 +186,9 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING) else () set(BUILD_TESTS OFF) endif() +add_custom_target(build_tests) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) +add_dependencies(check build_tests) find_package(ProtobufC QUIET) if (NOT (PROTOBUF_C_INCLUDE_DIRS AND PROTOBUF_C_LIBRARY |
