1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-04 23:55:27 +02:00

tests: Add missing QtWidgets dependency.

Fixes <https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/882>.

* tests/CMakeLists.txt: Add "Widgets" Qt module to find_package call.
(QML_TEST_LIBS): Add Qt::Widgets.

Change-Id: I695010776e6d2638fb65009c79f3263269e1020e
This commit is contained in:
Maxim Cournoyer 2022-11-06 00:16:34 -04:00
parent c04b123291
commit dae9249098
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1,4 +1,4 @@
find_package(Qt${QT_VERSION_MAJOR} CONFIG REQUIRED QuickTest Test)
find_package(Qt${QT_VERSION_MAJOR} CONFIG REQUIRED QuickTest Widgets Test)
if(MSVC)
# Download and unpack googletest for windows
@ -15,7 +15,7 @@ else()
endif()
enable_testing(true)
set(QML_TEST_LIBS ${QML_LIBS} Qt::QuickTest Qt::Test)
set(QML_TEST_LIBS ${QML_LIBS} Qt::QuickTest Qt::Widgets Qt::Test)
set(TESTS_INCLUDES
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/tests/qml