CMake: Check for gmock

This commit is contained in:
Jonas Kvinge
2025-01-10 20:11:46 +01:00
parent e2d8838fca
commit 00f06b22b8
2 changed files with 2 additions and 2 deletions

View File

@@ -1452,7 +1452,7 @@ endif()
add_subdirectory(src)
add_subdirectory(dist)
if(TARGET GTest::GTest AND Qt${QT_VERSION_MAJOR}Test_FOUND)
if(TARGET GTest::gtest AND TARGET GTest::gmock AND Qt${QT_VERSION_MAJOR}Test_FOUND)
add_subdirectory(tests)
endif()