Skip to content

Instantly share code, notes, and snippets.

View cbandera's full-sized avatar

Claudio Bandera cbandera

  • Stuttgart, Germany
View GitHub Profile
@cbandera
cbandera / googletest.cmake
Created November 1, 2021 09:48
Add Googletest to CMake via FetchContent
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)
FetchContent_GetProperties(googletest)
if(NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})