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:
parent
1f43c541cf
commit
9f6feb67dd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue