Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
333d88ad
Verified
Commit
333d88ad
authored
4 months ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
fix: link required packages
parent
e442601c
No related branches found
No related tags found
1 merge request
!71
Remove importdummy dependency
Pipeline
#78741
passed
4 months ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+10
-4
10 additions, 4 deletions
src/CMakeLists.txt
with
10 additions
and
4 deletions
src/CMakeLists.txt
+
10
−
4
View file @
333d88ad
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment