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
Merge requests
!69
Ensure all known Qt packages are looked up
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Ensure all known Qt packages are looked up
alcroito/qt-ui-viewer:better-module-linking
into
better-module-linking
Overview
0
Commits
1
Pipelines
4
Changes
1
Closed
Alexandru Croitor
requested to merge
alcroito/qt-ui-viewer:better-module-linking
into
better-module-linking
3 months ago
Overview
0
Commits
1
Pipelines
4
Changes
1
Expand
So that we generate a full list of qml modules to link in.
0
0
Merge request reports
Compare
better-module-linking
version 2
89ad6f96
3 months ago
version 1
89ad6f96
3 months ago
better-module-linking (base)
and
version 2
latest version
a70a9639
1 commit,
3 months ago
version 2
89ad6f96
1 commit,
3 months ago
version 1
89ad6f96
2 commits,
3 months ago
1 file
+
19
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/CMakeLists.txt
+
19
−
0
Options
@@ -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.
Loading