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
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
Alexandru Croitor
Qt UI Viewer
Commits
89ad6f96
Commit
89ad6f96
authored
3 months ago
by
Alexandru Croitor
Browse files
Options
Downloads
Patches
Plain Diff
Ensure all known Qt packages are looked up
So that we generate a full list of qml modules to link in.
parent
cd52da75
No related branches found
No related tags found
No related merge requests found
Pipeline
#78724
canceled
3 months ago
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+19
-0
19 additions, 0 deletions
src/CMakeLists.txt
with
19 additions
and
0 deletions
src/CMakeLists.txt
+
19
−
0
View file @
89ad6f96
...
...
@@ -6,6 +6,25 @@ find_package(
find_package
(
QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network WebSockets
)
# 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.
# The StandaloneTests directory contains Config files that find_package all installed Qt packages.
# Abuse that, and include all of them to make all the backing libraries available as imported
# targets.
find_package
(
Qt6 COMPONENTS BuildInternals
)
if
(
Qt6BuildInternals_DIR
)
set
(
standalone_tests_dir
"
${
Qt6BuildInternals_DIR
}
/StandaloneTests"
)
if
(
EXISTS
"
${
standalone_tests_dir
}
"
)
# Glob the config files in there.
file
(
GLOB_RECURSE standalone_tests_files
"
${
standalone_tests_dir
}
/*TestsConfig.cmake"
)
# Include each one of them.
foreach
(
standalone_tests_file IN LISTS standalone_tests_files
)
include
(
"
${
standalone_tests_file
}
"
)
endforeach
()
endif
()
endif
()
set
(
imports
""
)
# Get all imported targets.
...
...
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