diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/ipcpd/unicast/dir/tests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/ipcpd/unicast/pff/tests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/ipcpd/unicast/routing/tests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/irmd/reg/tests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/irmd/tests/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/lib/tests/CMakeLists.txt | 2 |
7 files changed, 8 insertions, 6 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 diff --git a/src/ipcpd/unicast/dir/tests/CMakeLists.txt b/src/ipcpd/unicast/dir/tests/CMakeLists.txt index 897f1ec2..f5f5a74c 100644 --- a/src/ipcpd/unicast/dir/tests/CMakeLists.txt +++ b/src/ipcpd/unicast/dir/tests/CMakeLists.txt @@ -25,7 +25,7 @@ add_executable(${PARENT_DIR}_test ${${PARENT_DIR}_tests} ${DHT_PROTO_SRCS}) target_link_libraries(${PARENT_DIR}_test ouroboros-common) -add_dependencies(check ${PARENT_DIR}_test) +add_dependencies(build_tests ${PARENT_DIR}_test) set(tests_to_run ${${PARENT_DIR}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") diff --git a/src/ipcpd/unicast/pff/tests/CMakeLists.txt b/src/ipcpd/unicast/pff/tests/CMakeLists.txt index 99c32e7a..d224dac0 100644 --- a/src/ipcpd/unicast/pff/tests/CMakeLists.txt +++ b/src/ipcpd/unicast/pff/tests/CMakeLists.txt @@ -23,7 +23,7 @@ create_test_sourcelist(${PARENT_DIR}_tests test_suite.c add_executable(${PARENT_DIR}_test ${${PARENT_DIR}_tests}) target_link_libraries(${PARENT_DIR}_test ouroboros-common) -add_dependencies(check ${PARENT_DIR}_test) +add_dependencies(build_tests ${PARENT_DIR}_test) set(tests_to_run ${${PARENT_DIR}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") diff --git a/src/ipcpd/unicast/routing/tests/CMakeLists.txt b/src/ipcpd/unicast/routing/tests/CMakeLists.txt index b5011474..7b549995 100644 --- a/src/ipcpd/unicast/routing/tests/CMakeLists.txt +++ b/src/ipcpd/unicast/routing/tests/CMakeLists.txt @@ -23,7 +23,7 @@ create_test_sourcelist(${PARENT_DIR}_tests test_suite.c add_executable(${PARENT_DIR}_test ${${PARENT_DIR}_tests}) target_link_libraries(${PARENT_DIR}_test ouroboros-common) -add_dependencies(check ${PARENT_DIR}_test) +add_dependencies(build_tests ${PARENT_DIR}_test) set(tests_to_run ${${PARENT_DIR}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") diff --git a/src/irmd/reg/tests/CMakeLists.txt b/src/irmd/reg/tests/CMakeLists.txt index 73df911b..d2907a93 100644 --- a/src/irmd/reg/tests/CMakeLists.txt +++ b/src/irmd/reg/tests/CMakeLists.txt @@ -18,7 +18,7 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug*") add_compile_flags(${src_folder}_test -DCONFIG_OUROBOROS_DEBUG) endif () -add_dependencies(check ${src_folder}_test) +add_dependencies(build_tests ${src_folder}_test) set(tests_to_run ${${src_folder}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") diff --git a/src/irmd/tests/CMakeLists.txt b/src/irmd/tests/CMakeLists.txt index 4b62261c..5bef0064 100644 --- a/src/irmd/tests/CMakeLists.txt +++ b/src/irmd/tests/CMakeLists.txt @@ -10,7 +10,7 @@ create_test_sourcelist(${src_folder}_tests test_suite.c add_executable(${src_folder}_test ${${src_folder}_tests}) target_link_libraries(${src_folder}_test ouroboros-common) -add_dependencies(check ${src_folder}_test) +add_dependencies(build_tests ${src_folder}_test) set(tests_to_run ${${src_folder}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") diff --git a/src/lib/tests/CMakeLists.txt b/src/lib/tests/CMakeLists.txt index c795c1ac..752d9065 100644 --- a/src/lib/tests/CMakeLists.txt +++ b/src/lib/tests/CMakeLists.txt @@ -21,7 +21,7 @@ add_executable(${PARENT_DIR}_test ${${PARENT_DIR}_tests}) target_link_libraries(${PARENT_DIR}_test ouroboros-common) -add_dependencies(check ${PARENT_DIR}_test) +add_dependencies(build_tests ${PARENT_DIR}_test) set(tests_to_run ${${PARENT_DIR}_tests}) if(CMAKE_VERSION VERSION_LESS "3.29.0") |
