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 |