From 4e0efc7005058fc793abb77d14fd5327ee6f12ff Mon Sep 17 00:00:00 2001 From: Artur Mukhamadiev Date: Thu, 3 Jul 2025 21:45:22 +0300 Subject: [PATCH] ctest add --- tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4d806a7..d41f2ba 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,7 @@ +enable_testing() + find_package(GTest REQUIRED) +include(GoogleTest) find_package(Boost REQUIRED COMPONENTS thread) @@ -11,6 +14,6 @@ target_link_libraries(${NAME} PRIVATE Boost::thread ${PROJECT_NAME} ) - +gtest_discover_tests(${NAME}) # target_compile_options(${NAME} PRIVATE -fsanitize=thread) # target_link_options(${NAME} PRIVATE -fsanitize=thread) \ No newline at end of file