Skip to content
Snippets Groups Projects
Unverified Commit dae92490 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

tests: Add missing QtWidgets dependency.

Fixes <#882>.

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

Change-Id: I695010776e6d2638fb65009c79f3263269e1020e
parent c04b1232
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment