Skip to content
Snippets Groups Projects
Verified Commit 333d88ad authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

fix: link required packages

parent e442601c
No related branches found
No related tags found
1 merge request!71Remove importdummy dependency
Pipeline #78741 passed
find_package(
Qt6
COMPONENTS Core Widgets Quick Gui Qml Multimedia MultimediaWidgets Concurrent Network WebSockets
COMPONENTS
Core Widgets Quick Gui Qml Multimedia MultimediaWidgets Concurrent Network WebSockets
TextToSpeech Location Sensors WebView Positioning
REQUIRED
)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network WebSockets)
find_package(
QT NAMES Qt6 Qt5 REQUIRED
COMPONENTS
Core Network WebSockets TextToSpeech Location Sensors WebView Positioning)
# In shared Qt builds, the qml plugins don't have dependencies on their backing libraries, and
# thus the backing library packages are not automatically looked up.
......@@ -86,19 +91,18 @@ if(imports)
endif()
# Use file(GENERATE) to prevent touching the file if the contents hasn't changed.
set(dummy_valid_content "ApplicationWindow {
visible: true
width: 640
height: 480
}")
file(GENERATE OUTPUT "${imports_file_path}" CONTENT "${imports}
${dummy_valid_content}
")
qt_add_executable(${PROJECT_NAME}
# backend/importdummy.qml
backend/main.cpp
backend/logger.h
backend/backend.cpp backend/backend.h
......@@ -144,6 +148,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
Qt6::Qml Qt6::GuiPrivate
Qt6::Multimedia Qt6::MultimediaWidgets
Qt6::Concurrent Qt6::Network Qt6::WebSockets
Qt6::TextToSpeech Qt6::Location Qt6::Sensors
Qt6::WebView Qt6::Positioning
ZXing::ZXing
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment