fix(cpp): make libraries which are not dynamically loaded static

Otherwise, linker will optimize resources registration code on Linux,
resulting in resources loading failure.
This commit is contained in:
Patryk Osmaczko 2022-07-29 11:12:56 +02:00 committed by Stefan Dunca
parent 1f43c541cf
commit 9f6feb67dd
3 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ qt6_standard_project_setup()
qt6_add_qml_module(${PROJECT_NAME}
URI Status.StaticConfig
VERSION 1.0
STATIC
RESOURCES
default-networks.json
fleets.json

View File

@ -15,6 +15,7 @@ qt6_standard_project_setup()
qt6_add_qml_module(${PROJECT_NAME}
URI Status.FontsAssets
VERSION 1.0
STATIC
# TODO: temporary until we make qt_target_qml_sources work
RESOURCES
Inter/Inter-Regular.otf

View File

@ -15,6 +15,7 @@ qt6_standard_project_setup()
qt6_add_qml_module(${PROJECT_NAME}
URI Status.UiAssets
VERSION 1.0
STATIC
# TODO: temporary until we make qt_target_qml_sources work
RESOURCES
gif/status_splash_dark.gif