GoogleTest - Google Testing and Mocking Framework (grpc protobuff依赖)
https://google.github.io/googletest/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
377 B
16 lines
377 B
cmake_minimum_required(VERSION 2.6.4) |
|
|
|
project( googletest-distribution ) |
|
|
|
enable_testing() |
|
|
|
option(BUILD_GTEST "Builds the googletest subproject" OFF) |
|
|
|
#Note that googlemock target already builds googletest |
|
option(BUILD_GMOCK "Builds the googlemock subproject" ON) |
|
|
|
if(BUILD_GMOCK) |
|
add_subdirectory( googlemock ) |
|
elseif(BUILD_GTEST) |
|
add_subdirectory( googletest ) |
|
endif()
|
|
|