Skip to content

Commit

Permalink
Add GoogleTest helper
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Jun 30, 2024
1 parent b659506 commit c30bd4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -83,3 +85,5 @@ set_tests_properties(${PROJECT_NAME} PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<$<BOOL:${WIN32}>:$<TARGET_FILE_DIR:faker-cxx>>")

target_code_coverage(${PROJECT_NAME} ALL)

gtest_discover_tests(${PROJECT_NAME})

0 comments on commit c30bd4a

Please sign in to comment.