mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-15 12:25:11 +03:00
21 lines
544 B
CMake
21 lines
544 B
CMake
# Fetch gtest source code from Github
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest
|
|
GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571 # v1.14.0
|
|
)
|
|
|
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
|
|
option(BUILD_GMOCK "Build GMock" OFF)
|
|
option(INSTALL_GTEST "Install GTest" OFF)
|
|
|
|
FetchContent_MakeAvailable(googletest)
|
|
|
|
include_directories(
|
|
${googletest_SOURCE_DIR}/googletest/include
|
|
)
|