Fix static build
This commit is contained in:
parent
96fd4a7914
commit
2bf3e887ee
|
@ -84,7 +84,7 @@ if (SNORE_STATIC_QT)
|
|||
link_libraries(
|
||||
"${_qt5Core_install_prefix}/lib/qtharfbuzzng${d}.${SUFFIX}"
|
||||
"${_qt5Core_install_prefix}/lib/qtpcre${d}.${SUFFIX}"
|
||||
"${_qt5Core_install_prefix}/lib/qtpng${d}.${SUFFIX}"
|
||||
#"${_qt5Core_install_prefix}/lib/qtpng${d}.${SUFFIX}"
|
||||
"${_qt5Core_install_prefix}/lib/qtfreetype${d}.${SUFFIX}"
|
||||
"${_qt5Core_install_prefix}/lib/Qt5PlatformSupport${d}.${SUFFIX}"
|
||||
"${_qt5Core_install_prefix}/plugins/platforms/qwindows${d}.${SUFFIX}"
|
||||
|
|
|
@ -26,6 +26,12 @@ function(generate_snore_plugin_header)
|
|||
set(SNORE_RESOURCE_LOADING "${SNORE_RESOURCE_LOADING}\n Q_INIT_RESOURCE(${RESOURCE});")
|
||||
endforeach()
|
||||
configure_file("${PROJECT_SOURCE_DIR}/src/libsnore/snore_static_plugins.h.in" "${PROJECT_BINARY_DIR}/src/libsnore/snore_static_plugins.h")
|
||||
|
||||
add_library(libsnore_static_plugins STATIC)
|
||||
target_link_libraries(libsnore_static_plugins LINK_PUBLIC ${SNORE_PLUGINS})
|
||||
add_library(Snore::StaticPlugins ALIAS libsnore_static_plugins)
|
||||
|
||||
|
||||
endfunction()
|
||||
|
||||
function(add_snore_plugin SNORE_NAME)
|
||||
|
|
|
@ -2,13 +2,13 @@ ecm_add_app_icon(SNORENOTIFY_SETTINGS_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-
|
|||
|
||||
add_executable( snoresettings-cli main-cli.cpp settingsutils.cpp ${SNORENOTIFY_SETTINGS_DEPS})
|
||||
ecm_mark_nongui_executable(snoresettings-cli)
|
||||
target_link_libraries( snoresettings-cli Snore::Libsnore ${SNORE_PLUGINS})
|
||||
target_link_libraries( snoresettings-cli Snore::Libsnore Snore::StaticPlugins)
|
||||
install(TARGETS snoresettings-cli ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
if(Qt5Widgets_FOUND)
|
||||
qt5_wrap_ui(UI settingswindow.ui)
|
||||
add_executable( snoresettings main.cpp settingswindow.cpp settingsutils.cpp ${UI} ${SNORENOTIFY_SETTINGS_DEPS})
|
||||
target_link_libraries( snoresettings Snore::Libsnore Snore::LibsnoreSettings ${SNORE_PLUGINS})
|
||||
target_link_libraries( snoresettings Snore::Libsnore Snore::LibsnoreSettings Snore::StaticPlugins)
|
||||
install(TARGETS snoresettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
||||
if(UNIX)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ecm_add_app_icon(SNORENOTIFY_SNORESEND_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-apps-snore.png)
|
||||
|
||||
add_executable(snoresend main.cpp ${SNORENOTIFY_SNORESEND_DEPS})
|
||||
target_link_libraries(snoresend Snore::Libsnore ${SNORE_PLUGINS})
|
||||
target_link_libraries(snoresend Snore::Libsnore Snore::StaticPlugins)
|
||||
ecm_mark_nongui_executable(snoresend)
|
||||
|
||||
install(TARGETS snoresend ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
|
Loading…
Reference in New Issue