kinect/codes/Azure-Kinect-Sensor-SDK/extern/googletest/CMakeLists.txt

11 lines
351 B
CMake
Raw Permalink Normal View History

2024-03-06 18:05:53 +00:00
if (NOT TARGET gtest)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
option(INSTALL_GTEST "" OFF)
option(INSTALL_GMOCK "" OFF)
add_subdirectory(src EXCLUDE_FROM_ALL)
else()
message(STATUS "gtest is already a target. Skipping adding it twice")
endif()
add_library(gtest::gtest ALIAS gtest)
add_library(gtest::gmock ALIAS gmock)