From ddefde740b420d307d102287a0b3bad86033e1d2 Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 21 Sep 2023 19:57:06 -0400 Subject: [PATCH 1/3] Fix Testing.cmake to not require pthread --- cmake/Testing.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Testing.cmake b/cmake/Testing.cmake index e50b60b..9e57555 100644 --- a/cmake/Testing.cmake +++ b/cmake/Testing.cmake @@ -11,7 +11,7 @@ IF(NOT DEFINED ENV{BUILD_ARCHITECTURE} AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/te target_link_libraries(${UNIT_TEST} PUBLIC ${PROJECT_NAME} ${TEST_LINK_LIBRARIES} - gtest) + GTest::gtest_main) add_test(NAME ${UNIT_TEST} COMMAND ${UNIT_TEST}) add_custom_target( run_unit_test ALL From 15ea7a47868f588b4d9a9e0b20962308a89b25a7 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 22 Sep 2023 09:15:12 -0400 Subject: [PATCH 2/3] Add gtest_discover_tests call --- cmake/Testing.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Testing.cmake b/cmake/Testing.cmake index 9e57555..7071c4e 100644 --- a/cmake/Testing.cmake +++ b/cmake/Testing.cmake @@ -13,6 +13,7 @@ IF(NOT DEFINED ENV{BUILD_ARCHITECTURE} AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/te ${TEST_LINK_LIBRARIES} GTest::gtest_main) add_test(NAME ${UNIT_TEST} COMMAND ${UNIT_TEST}) + gtest_discover_tests(${UNIT_TEST}) add_custom_target( run_unit_test ALL COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure From a9f92a54e1231ea8e27e7e69bdfc3013d1f27bc8 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 22 Sep 2023 11:28:28 -0400 Subject: [PATCH 3/3] Added include --- cmake/Testing.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Testing.cmake b/cmake/Testing.cmake index 7071c4e..808a50a 100644 --- a/cmake/Testing.cmake +++ b/cmake/Testing.cmake @@ -13,6 +13,7 @@ IF(NOT DEFINED ENV{BUILD_ARCHITECTURE} AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/te ${TEST_LINK_LIBRARIES} GTest::gtest_main) add_test(NAME ${UNIT_TEST} COMMAND ${UNIT_TEST}) + include(GoogleTest) gtest_discover_tests(${UNIT_TEST}) add_custom_target( run_unit_test ALL