From c30bd4a6f39effb5d549c897a6e43508c3428af4 Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Sun, 30 Jun 2024 12:22:38 +0200 Subject: [PATCH] Add GoogleTest helper Signed-off-by: Uilian Ries --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index af0a8dfbd..a55a69615 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.22) project(${CMAKE_PROJECT_NAME}-UT CXX) include(CTest) +include(GoogleTest) include("${CMAKE_SOURCE_DIR}/cmake/CompilerWarnings.cmake") set(FAKER_UT_SOURCES @@ -40,6 +41,7 @@ set(FAKER_UT_SOURCES modules/string/StringTest.cpp modules/system/SystemTest.cpp modules/vehicle/VehicleTest.cpp + modules/version/VersionTest.cpp modules/videoGame/VideoGameTest.cpp modules/weather/WeatherTest.cpp modules/word/WordTest.cpp @@ -83,3 +85,5 @@ set_tests_properties(${PROJECT_NAME} PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<$:$>") target_code_coverage(${PROJECT_NAME} ALL) + +gtest_discover_tests(${PROJECT_NAME}) \ No newline at end of file