mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
Merge efc0464ff476a28411ff5523c15b5f4192be48be into 417158b8bca158426cbdc0c547fdd7d9fbd46904
This commit is contained in:
commit
79411478e0
@ -4,7 +4,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
project(googletest-distribution)
|
project(googletest-distribution)
|
||||||
set(GOOGLETEST_VERSION 1.14.0)
|
|
||||||
|
# Import googletest version
|
||||||
|
include(cmake/googletest-version.cmake)
|
||||||
|
|
||||||
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
|
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|||||||
1
cmake/googletest-version.cmake
Normal file
1
cmake/googletest-version.cmake
Normal file
@ -0,0 +1 @@
|
|||||||
|
set(GOOGLETEST_VERSION 1.14.0)
|
||||||
@ -8,6 +8,9 @@
|
|||||||
# ctest. You can select which tests to run using 'ctest -R regex'.
|
# ctest. You can select which tests to run using 'ctest -R regex'.
|
||||||
# For more options, run 'ctest --help'.
|
# For more options, run 'ctest --help'.
|
||||||
|
|
||||||
|
# Import googletest version
|
||||||
|
include(../cmake/googletest-version.cmake)
|
||||||
|
|
||||||
option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
|
option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
|
||||||
|
|
||||||
# A directory to find Google Test sources.
|
# A directory to find Google Test sources.
|
||||||
|
|||||||
@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
# When other libraries are using a shared version of runtime libraries,
|
# When other libraries are using a shared version of runtime libraries,
|
||||||
# Google Test also has to use one.
|
# Google Test also has to use one.
|
||||||
|
|
||||||
|
# Import googletest version
|
||||||
|
include(../cmake/googletest-version.cmake)
|
||||||
|
|
||||||
option(
|
option(
|
||||||
gtest_force_shared_crt
|
gtest_force_shared_crt
|
||||||
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user