From e54be25b524316006d7a36893c8847d438df06e5 Mon Sep 17 00:00:00 2001 From: Thijs Paelman Date: Mon, 20 Oct 2025 19:58:01 +0200 Subject: 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 Signed-off-by: Sander Vrijders --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.3