Removed test coverage code
All checks were successful
Build and Run C++ Unit Tests / build-and-test (push) Successful in 1m59s
All checks were successful
Build and Run C++ Unit Tests / build-and-test (push) Successful in 1m59s
This commit is contained in:
parent
9b76dfd094
commit
5ed7e67070
@ -18,15 +18,6 @@ else()
|
|||||||
URL https://github.com/google/googletest/archive/refs/heads/main.zip
|
URL https://github.com/google/googletest/archive/refs/heads/main.zip
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enable coverage
|
|
||||||
option(CODE_COVERAGE "Enable coverage reporting" ON)
|
|
||||||
|
|
||||||
if(CODE_COVERAGE)
|
|
||||||
message(STATUS "Code coverage enabled")
|
|
||||||
add_compile_options(/PROFILE) # MSVC flag for coverage
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi /Od") # Debug info
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||||
FetchContent_MakeAvailable(googletest)
|
FetchContent_MakeAvailable(googletest)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user