1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 09:05:04 +01:00

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()

View File

@ -23,7 +23,7 @@ target_include_directories(test_utils PRIVATE
${CMAKE_SOURCE_DIR}/src
)
target_link_libraries(test_utils PRIVATE
GTest::GTest
GTest::gtest
GTest::gmock
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Widgets