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} qt6_add_qml_module(${PROJECT_NAME}
URI Status.StaticConfig URI Status.StaticConfig
VERSION 1.0 VERSION 1.0
STATIC
RESOURCES RESOURCES
default-networks.json default-networks.json
fleets.json fleets.json

View File

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

View File

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