Commit 2bed8429 authored by R. Harish Navnit's avatar R. Harish Navnit Committed by Pali Rohár

Adapt plugins/CMakeLists.txt* to KF5

parent a819f809
option(WITH_latex "Enable Kopete latex plugin" ON)
option(WITH_autoreplace "Enable Kopete autoreplace plugin" ON)
option(WITH_history "Enable Kopete history plugin" OFF)
option(WITH_history2 "Enable Kopete history2 plugin" OFF)
option(WITH_history "Enable Kopete history plugin" OFF) # To be re-written
option(WITH_history2 "Enable Kopete history2 plugin" OFF) # To be re-written
option(WITH_contactnotes "Enable Kopete contactnotes plugin" ON)
option(WITH_translator "Enable Kopete translator plugin" ON)
option(WITH_nowlistening "Enable Kopete nowlistening plugin" ON)
option(WITH_translator "Enable Kopete translator plugin" OFF)
option(WITH_nowlistening "Enable Kopete nowlistening plugin" OFF)
option(WITH_texteffect "Enable Kopete texteffect plugin" ON)
option(WITH_highlight "Enable Kopete highlight plugin" ON)
#option(WITH_alias "Enable Kopete alias plugin" ON)
......@@ -13,9 +13,9 @@ option(WITH_privacy "Enable Kopete privacy plugin" ON)
option(WITH_urlpicpreview "Enable Kopete urlpicpreview plugin" ON)
option(WITH_statistics "Enable Kopete statistics plugin" ON)
option(WITH_webpresence "Enable Kopete webpresence plugin" ON)
option(WITH_pipes "Enable Kopete pipes plugin" ON)
option(WITH_pipes "Enable Kopete pipes plugin" OFF)
option(WITH_otr "Enable Kopete Off-the-Record plugin" ON)
option(WITH_cryptography "Enable Kopete Cryptography plugin" OFF)
option(WITH_cryptography "Enable Kopete Cryptography plugin" OFF) # To be re-written
# Laurent this plugins use shell script which will not work on windows
if (WITH_latex AND UNIX)
......
......@@ -13,7 +13,11 @@ set(kopete_highlight_PART_SRCS highlightplugin.cpp highlightconfig.cpp filter.cp
add_library(kopete_highlight MODULE ${kopete_highlight_PART_SRCS})
target_link_libraries(kopete_highlight kopete Qt5::Xml)
target_link_libraries(kopete_highlight
kopete
KF5::KDELibs4Support
Qt5::Xml
)
install(TARGETS kopete_highlight DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -27,7 +31,15 @@ ki18n_wrap_ui(kcm_kopete_highlight_PART_SRCS highlightprefsbase.ui )
add_library(kcm_kopete_highlight MODULE ${kcm_kopete_highlight_PART_SRCS})
target_link_libraries(kcm_kopete_highlight KF5::NotifyConfig ${QT_QTXML_LIBRARY})
target_link_libraries(kcm_kopete_highlight
KF5::KDELibs4Support
KF5::NotifyConfig
KF5::Completion
KF5::KCMUtils
KF5::Parts
Qt5::Widgets
Qt5::Xml
)
install(TARGETS kcm_kopete_highlight DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -15,7 +15,10 @@ kconfig_add_kcfg_files(kopete_latex_PART_SRCS latexconfig.kcfgc )
add_library(kopete_latex MODULE ${kopete_latex_PART_SRCS})
target_link_libraries(kopete_latex kopete )
target_link_libraries(kopete_latex
kopete
KF5::KDELibs4Support
)
install(TARGETS kopete_latex DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -32,7 +35,14 @@ kconfig_add_kcfg_files(kcm_kopete_latex_PART_SRCS latexconfig.kcfgc )
add_library(kcm_kopete_latex MODULE ${kcm_kopete_latex_PART_SRCS})
target_link_libraries(kcm_kopete_latex KF5::KIOCore)
target_link_libraries(kcm_kopete_latex
KF5::KDELibs4Support
KF5::KIOCore
KF5::KIOWidgets
KF5::KCMUtils
Qt5::Widgets
Qt5::Gui
)
install(TARGETS kcm_kopete_latex DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -26,7 +26,11 @@ kconfig_add_kcfg_files(kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfgc )
add_library(kopete_nowlistening MODULE ${kopete_nowlistening_PART_SRCS})
target_link_libraries(kopete_nowlistening KF5::KIOCore kopete)
target_link_libraries(kopete_nowlistening
KF5::KDELibs4Support
KF5::KIOCore
kopete
)
if(XMMS_FOUND)
target_link_libraries( kopete_nowlistening ${XMMS_LDFLAGS} )
......@@ -47,7 +51,12 @@ kconfig_add_kcfg_files(kcm_kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfg
add_library(kcm_kopete_nowlistening MODULE ${kcm_kopete_nowlistening_PART_SRCS})
target_link_libraries(kcm_kopete_nowlistening )
target_link_libraries(kcm_kopete_nowlistening
KF5::KDELibs4Support
KF5::KCMUtils
Qt5::Widgets
Qt5::Core
)
install(TARGETS kcm_kopete_nowlistening DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -17,7 +17,12 @@ kconfig_add_kcfg_files(kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kcfgc
add_library(kopete_urlpicpreview MODULE ${kopete_urlpicpreview_PART_SRCS})
target_link_libraries(kopete_urlpicpreview KF5::KDELibs4Support KF5::KIOCore KF5::KCMUtils kopete )
target_link_libraries(kopete_urlpicpreview
KF5::KDELibs4Support
KF5::KIOCore
KF5::KCMUtils
kopete
)
install(TARGETS kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -34,7 +39,10 @@ kconfig_add_kcfg_files(kcm_kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kc
add_library(kcm_kopete_urlpicpreview MODULE ${kcm_kopete_urlpicpreview_PART_SRCS})
target_link_libraries(kcm_kopete_urlpicpreview KF5::KIOCore kopete )
target_link_libraries(kcm_kopete_urlpicpreview
KF5::KIOCore
kopete
)
install(TARGETS kcm_kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
......
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