Handle the case where GTest is not found

fix-squashed-planets
MrSimbax 2020-07-11 12:26:35 +02:00
parent 004c861ba9
commit e8f9c0292b
1 changed files with 2 additions and 0 deletions

View File

@ -453,6 +453,8 @@ if(TESTS)
# Add aliases so target names are compatible with the find_package above
add_library(GTest::GTest ALIAS gtest)
add_library(GTest::Main ALIAS gtest_main)
else()
message(FATAL_ERROR "Could not find gtest, cannot enable testing")
endif()
# Hippomocks library