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
590 B
16 lines
590 B
# Copyright 2021 Ingemar Hedvall
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
include (FetchContent)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
GIT_TAG HEAD
|
|
)
|
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
FetchContent_MakeAvailable(googletest)
|
|
message(STATUS "googletest Populated: " ${googletest_POPULATED})
|
|
message(STATUS "googletest Source: " ${googletest_SOURCE_DIR})
|
|
message(STATUS "googletest Binary: " ${googletest_BINARY_DIR})
|