Verified Commit 0499ef0f authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

cleanup

parent eba4481b
Pipeline #90769 failed with stage
in 2 minutes and 51 seconds
{"bla":[]}
......@@ -25,3 +25,12 @@ MACRO(KMM_CREATE_LINKS)
ENDFOREACH (c_FILE)
ENDMACRO(KMM_CREATE_LINKS)
function(kmymoney_add_plugin)
if (true)
kcoreaddons_add_plugin(${ARGN} STATIC INSTALL_NAMESPACE kmymoney)
else()
kcoreaddons_add_plugin(${ARGN} INSTALL_NAMESPACE kmymoney)
endif()
endfunction()
......@@ -10,14 +10,8 @@ kconfig_add_kcfg_files(checkprinting_PART_SRCS pluginsettings.kcfgc)
qt5_add_resources(checkprinting_PART_SRCS checkprinting.qrc)
kcoreaddons_add_plugin(checkprinting
SOURCES ${checkprinting_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(checkprinting
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(checkprinting
SOURCES ${checkprinting_PART_SRCS})
target_link_libraries(checkprinting
Qt5::PrintSupport
......@@ -44,17 +38,11 @@ kconfig_add_kcfg_files(kcm_checkprinting_PART_SRCS pluginsettings.kcfgc)
ki18n_wrap_ui(kcm_checkprinting_PART_SRCS pluginsettingsdecl.ui)
kcoreaddons_add_plugin(kcm_checkprinting
SOURCES ${kcm_checkprinting_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(kcm_checkprinting
SOURCES ${kcm_checkprinting_PART_SRCS})
kcoreaddons_desktop_to_json(kcm_checkprinting kcm_checkprinting.desktop)
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kcm_checkprinting
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
target_link_libraries(
kcm_checkprinting
kmm_url
......
......@@ -15,14 +15,8 @@ ki18n_wrap_ui(csvexporter_PART_SRCS
csvexportdlg.ui
)
kcoreaddons_add_plugin(csvexporter
SOURCES ${csvexporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(csvexporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(csvexporter
SOURCES ${csvexporter_PART_SRCS})
target_link_libraries(csvexporter
PUBLIC
......
......@@ -40,15 +40,8 @@ ki18n_wrap_ui(csvimporter_PART_SRCS
currenciesdlg.ui
)
kcoreaddons_add_plugin(csvimporter
SOURCES ${csvimporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(csvimporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(csvimporter
SOURCES ${csvimporter_PART_SRCS})
target_link_libraries(csvimporter
PUBLIC
......@@ -67,17 +60,11 @@ kconfig_add_kcfg_files(kcm_csvimporter_PART_SRCS pluginsettings.kcfgc)
ki18n_wrap_ui(kcm_csvimporter_PART_SRCS pluginsettingsdecl.ui)
kcoreaddons_add_plugin(kcm_csvimporter
SOURCES ${kcm_csvimporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(kcm_csvimporter
SOURCES ${kcm_csvimporter_PART_SRCS})
kcoreaddons_desktop_to_json(kcm_csvimporter kcm_csvimporter.desktop)
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kcm_csvimporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
target_link_libraries(kcm_csvimporter
KF5::I18n
KF5::ConfigWidgets
......
......@@ -18,14 +18,8 @@ set(gncimporter_PART_UI
ki18n_wrap_ui(gncimporter_PART_SRCS ${gncimporter_PART_UI})
kcoreaddons_add_plugin(gncimporter
SOURCES ${gncimporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(gncimporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(gncimporter
SOURCES ${gncimporter_PART_SRCS})
target_link_libraries(gncimporter
PUBLIC
......
......@@ -12,14 +12,8 @@ set ( IBANBICDATA_SCRS
bicmodel.cpp
)
kcoreaddons_add_plugin(ibanbicdata
SOURCES ${IBANBICDATA_SCRS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(ibanbicdata
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(ibanbicdata
SOURCES ${IBANBICDATA_SCRS})
target_link_libraries(ibanbicdata
PUBLIC
......
......@@ -13,11 +13,10 @@ kconfig_add_kcfg_files(icalendarexporter_PART_SRCS pluginsettings.kcfgc)
qt5_add_resources(icalendarexporter_PART_SRCS icalendarexporter.qrc)
kcoreaddons_add_plugin(icalendarexporter
SOURCES ${icalendarexporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(icalendarexporter
SOURCES ${icalendarexporter_PART_SRCS})
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
#kmymoney_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(icalendarexporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
......@@ -39,17 +38,11 @@ set(kcm_icalendarexporter_PART_SRCS
kconfig_add_kcfg_files(kcm_icalendarexporter_PART_SRCS pluginsettings.kcfgc)
ki18n_wrap_ui(kcm_icalendarexporter_PART_SRCS pluginsettingsdecl.ui)
kcoreaddons_add_plugin(kcm_icalendarexporter
SOURCES ${kcm_icalendarexporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(kcm_icalendarexporter
SOURCES ${kcm_icalendarexporter_PART_SRCS})
kcoreaddons_desktop_to_json(kcm_icalendarexporter kcm_icalendarexporter.desktop)
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kcm_icalendarexporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
target_link_libraries(kcm_icalendarexporter
KF5::I18n
KF5::ConfigWidgets
......
......@@ -37,14 +37,8 @@ qt5_add_resources(kbanking_PART_SRCS "${CMAKE_CURRENT_BINARY_DIR}/kbanking.qrc")
qt5_add_resources(kbanking_PART_SRCS "qml/chipTan/chipTan.qrc")
kcoreaddons_add_plugin(kbanking
SOURCES ${kbanking_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kbanking
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(kbanking
SOURCES ${kbanking_PART_SRCS})
target_link_libraries(kbanking
kbanking_dialogs
......
......@@ -22,14 +22,8 @@ ki18n_wrap_ui(ofximporter_PART_SRCS ${ofximporter_PART_UI})
qt5_add_resources(ofximporter_PART_SRCS ofximporter.qrc)
kcoreaddons_add_plugin(ofximporter
SOURCES ${ofximporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(ofximporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(ofximporter
SOURCES ${ofximporter_PART_SRCS})
target_link_libraries(ofximporter
ofximporter_dialogs
......
......@@ -6,14 +6,8 @@ set(onlinejobpluginmockup_PART_SRCS
onlinejobpluginmockup.cpp
)
kcoreaddons_add_plugin(onlinejobpluginmockup
SOURCES ${onlinejobpluginmockup_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(onlinejobpluginmockup
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(onlinejobpluginmockup
SOURCES ${onlinejobpluginmockup_PART_SRCS})
target_link_libraries(onlinejobpluginmockup
kmm_mymoney
......
......@@ -12,14 +12,8 @@ ki18n_wrap_ui( sepaOnlineTasks_SRCS
add_library(konlinetasks_sepa_interface INTERFACE)
kcoreaddons_add_plugin(konlinetasks_sepa
SOURCES ${sepaOnlineTasks_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(konlinetasks_sepa
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(konlinetasks_sepa
SOURCES ${sepaOnlineTasks_SRCS})
# TODO some dependencies can be moved to konlinetasks_sepa
target_link_libraries( konlinetasks_sepa_interface
......
......@@ -8,17 +8,11 @@ set(kcm_qif_PART_SRCS
ki18n_wrap_ui(kcm_qif_PART_SRCS mymoneyqifprofileeditor.ui)
if(ENABLE_QIFIMPORTER OR ENABLE_QIFEXPORTER)
kcoreaddons_add_plugin(kcm_qif
SOURCES ${kcm_qif_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(kcm_qif
SOURCES ${kcm_qif_PART_SRCS})
kcoreaddons_desktop_to_json(kcm_qif kcm_qif.desktop)
endif()
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kcm_qif
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
target_link_libraries(kcm_qif
kmm_mymoney
KF5::I18n
......
......@@ -18,14 +18,8 @@ ki18n_wrap_ui(qifexporter_PART_SRCS ${qifexporter_PART_UI})
qt5_add_resources(qifexporter_PART_SRCS qifexporter.qrc)
kcoreaddons_add_plugin(qifexporter
SOURCES ${qifexporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(qifexporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(qifexporter
SOURCES ${qifexporter_PART_SRCS})
target_link_libraries(qifexporter
kmm_plugin
......
......@@ -18,14 +18,8 @@ ki18n_wrap_ui(qifimporter_PART_SRCS ${qifimporter_PART_UI})
qt5_add_resources(qifimporter_PART_SRCS qifimporter.qrc)
kcoreaddons_add_plugin(qifimporter
SOURCES ${qifimporter_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(qifimporter
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(qifimporter
SOURCES ${qifimporter_PART_SRCS})
target_link_libraries(qifimporter
PUBLIC
......
......@@ -11,14 +11,8 @@ set(reconciliationreport_PART_SRCS
ki18n_wrap_ui(reconciliationreport_PART_SRCS kreconciliationreportdlgdecl.ui )
kcoreaddons_add_plugin(reconciliationreport
SOURCES ${reconciliationreport_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(reconciliationreport
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(reconciliationreport
SOURCES ${reconciliationreport_PART_SRCS})
target_link_libraries(reconciliationreport
Qt5::PrintSupport
......
......@@ -19,14 +19,8 @@ ki18n_wrap_ui(sqlstorage_SOURCES kselectdatabasedlg.ui kgeneratesqldlg.ui)
qt5_add_resources(sqlstorage_SOURCES sqlstorage.qrc)
kcoreaddons_add_plugin(sqlstorage
SOURCES ${sqlstorage_SOURCES}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(sqlstorage
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(sqlstorage
SOURCES ${sqlstorage_SOURCES})
target_link_libraries(sqlstorage
PUBLIC
......
......@@ -26,15 +26,10 @@ set ( qsqlcipher_HEADERS
qsql_sqlite_p.h
)
kcoreaddons_add_plugin(qsqlcipher
kmymoney_add_plugin(qsqlcipher
SOURCES ${qsqlcipher_SOURCES}
INSTALL_NAMESPACE "sqldrivers")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(qsqlcipher
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
#otherwise "fatal error: 'sqlite3.h' file not found"
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "Windows" OR CMAKE_VERSION VERSION_LESS 3.5.2)
target_include_directories(qsqlcipher
......
......@@ -15,14 +15,8 @@ ki18n_wrap_ui(budgetview_SOURCES
qt5_add_resources(budgetview_SOURCES budgetview.qrc)
kcoreaddons_add_plugin(budgetview
SOURCES ${budgetview_SOURCES}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(budgetview
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(budgetview
SOURCES ${budgetview_SOURCES})
target_link_libraries(budgetview
PUBLIC
......
......@@ -12,14 +12,8 @@ qt5_add_resources(forecastview_SOURCES forecastview.qrc)
kconfig_add_kcfg_files(forecastview_SOURCES forecastviewsettings.kcfgc)
kcoreaddons_add_plugin(forecastview
SOURCES ${forecastview_SOURCES}
INSTALL_NAMESPACE "kmymoney")
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(forecastview
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
kmymoney_add_plugin(forecastview
SOURCES ${forecastview_SOURCES})
target_link_libraries(forecastview
PUBLIC
......@@ -39,17 +33,11 @@ kconfig_add_kcfg_files(kcm_forecastview_PART_SRCS forecastviewsettings.kcfgc)
ki18n_wrap_ui(kcm_forecastview_PART_SRCS forecastviewsettings.ui)
kcoreaddons_add_plugin(kcm_forecastview
SOURCES ${kcm_forecastview_PART_SRCS}
INSTALL_NAMESPACE "kmymoney")
kmymoney_add_plugin(kcm_forecastview
SOURCES ${kcm_forecastview_PART_SRCS})
kcoreaddons_desktop_to_json(kcm_forecastview kcm_forecastview.desktop)
#kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE}
set_target_properties(kcm_forecastview
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
target_link_libraries(kcm_forecastview
KF5::I18n
KF5::ConfigWidgets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment