integrate gtest framwork

This commit is contained in:
2024-03-26 04:52:12 +00:00
parent 347cfcf8e9
commit 68d185f12a
5 changed files with 55 additions and 4 deletions

View File

@ -4,6 +4,13 @@ include(CTest)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -fsanitize=address")
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
)
FetchContent_MakeAvailable(googletest)
include(GoogleTest)
add_subdirectory(vector)
add_subdirectory(priority_queue)
add_subdirectory(map)