tests/CMakeLists.txt

changeset 728
71c4ac35c1ce
parent 727
d92a59f5d261
child 753
24dc84788dee
equal deleted inserted replaced
727:d92a59f5d261 728:71c4ac35c1ce
1 # Use C++ for Testing 1 # Use C++ for Testing
2 set(CMAKE_CXX_STANDARD 17) 2 set(CMAKE_CXX_STANDARD 17)
3 3
4 # Load Google Test Framework 4 # Load Google Test Framework
5 set(INSTALL_GTEST OFF) 5 option(INSTALL_GTEST "By default googletest shall not be installed." OFF)
6 set(BUILD_GMOCK OFF) 6 option(BUILD_GMOCK "In this project we do not need gmock." OFF)
7 include(FetchContent) 7 include(FetchContent)
8 FetchContent_Declare( 8 FetchContent_Declare(
9 googletest 9 googletest
10 GIT_REPOSITORY https://github.com/google/googletest.git 10 GIT_REPOSITORY https://github.com/google/googletest.git
11 GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release 1.11.0 11 GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release 1.11.0

mercurial