mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
CMake: Check for gmock
This commit is contained in:
parent
e2d8838fca
commit
00f06b22b8
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user