Skip to content

Instantly share code, notes, and snippets.

@ClintLiddick
ClintLiddick / External_GTest.cmake
Last active Dec 9, 2020
CMake ExternalProject_Add for Google Mock (gmock) and Google Test (gtest) Libraries
View External_GTest.cmake
find_package(Threads REQUIRED)
ExternalProject_Add(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
UPDATE_COMMAND ""
INSTALL_COMMAND ""
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON)