sanity check GTest includes GMock component

pull/701/head
Brad House 1 year ago
parent 0e4c0f2600
commit 906d2c1041
  1. 4
      test/CMakeLists.txt

@ -9,6 +9,10 @@ ENDIF ()
find_package(Threads)
find_package(GTest REQUIRED)
IF (NOT TARGET GTest::gmock)
Message(FATAL_ERROR "GoogleTest found but the GMock component was not found")
ENDIF()
# create target to access and use internal cares library
add_library(caresinternal INTERFACE)
target_compile_definitions(caresinternal INTERFACE HAVE_CONFIG_H=1)

Loading…
Cancel
Save