summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Harish Navnit <[email protected]>2015-07-31 14:25:04 +0530
committerPali Roh├ír <[email protected]>2017-12-22 09:10:18 +0100
commitf9f8d4b85cfc056845129144d45de52bd2f80cd8 (patch)
treefa618a30027752cb726a50d8b7a72e74164efc2b
parent642e5fd90e9d41d36419c19bce39401b72b7c173 (diff)
Adapt CMakeLists.txt files for KF5 port
-rw-r--r--CMakeLists.txt146
-rw-r--r--doc-dev/t2/CMakeLists.txt8
-rw-r--r--doc-dev/t3/CMakeLists.txt14
-rw-r--r--doc/CMakeLists.txt2
-rw-r--r--icons/CMakeLists.txt2
-rw-r--r--kopete/CMakeLists.txt23
-rw-r--r--kopete/addaccountwizard/CMakeLists.txt6
-rw-r--r--kopete/chatwindow/CMakeLists.txt19
-rw-r--r--kopete/chatwindow/a11y/CMakeLists.txt4
-rw-r--r--kopete/chatwindow/tests/CMakeLists.txt5
-rw-r--r--kopete/config/accounts/CMakeLists.txt6
-rw-r--r--kopete/config/appearance/CMakeLists.txt8
-rw-r--r--kopete/config/avdevice/CMakeLists.txt10
-rw-r--r--kopete/config/behavior/CMakeLists.txt6
-rw-r--r--kopete/config/chatwindow/CMakeLists.txt6
-rw-r--r--kopete/config/plugins/CMakeLists.txt4
-rw-r--r--kopete/config/status/CMakeLists.txt6
-rw-r--r--kopete/contactlist/CMakeLists.txt19
-rw-r--r--kopete/identity/CMakeLists.txt6
-rw-r--r--kopete/statusmenu/CMakeLists.txt6
-rw-r--r--libkopete/CMakeLists.txt15
-rw-r--r--libkopete/avdevice/CMakeLists.txt6
-rw-r--r--libkopete/tests/CMakeLists.txt21
-rw-r--r--plugins/CMakeLists.txt14
-rw-r--r--plugins/addbookmarks/CMakeLists.txt10
-rw-r--r--plugins/alias/CMakeLists.txt10
-rw-r--r--plugins/autoreplace/CMakeLists.txt10
-rw-r--r--plugins/autoreplace/icons/CMakeLists.txt2
-rw-r--r--plugins/contactnotes/CMakeLists.txt4
-rw-r--r--plugins/cryptography/CMakeLists.txt22
-rw-r--r--plugins/highlight/CMakeLists.txt11
-rw-r--r--plugins/highlight/icons/CMakeLists.txt2
-rw-r--r--plugins/history/CMakeLists.txt16
-rw-r--r--plugins/history2/CMakeLists.txt16
-rw-r--r--plugins/latex/CMakeLists.txt14
-rw-r--r--plugins/latex/icons/CMakeLists.txt2
-rw-r--r--plugins/nowlistening/CMakeLists.txt14
-rw-r--r--plugins/otr/CMakeLists.txt20
-rw-r--r--plugins/otr/icons/CMakeLists.txt2
-rw-r--r--plugins/pipes/CMakeLists.txt16
-rw-r--r--plugins/pipes/tests/CMakeLists.txt6
-rw-r--r--plugins/privacy/CMakeLists.txt16
-rw-r--r--plugins/statistics/CMakeLists.txt8
-rw-r--r--plugins/texteffect/CMakeLists.txt10
-rw-r--r--plugins/texteffect/icons/CMakeLists.txt2
-rw-r--r--plugins/translator/CMakeLists.txt14
-rw-r--r--plugins/urlpicpreview/CMakeLists.txt18
-rw-r--r--plugins/webpresence/CMakeLists.txt14
-rw-r--r--protocols/bonjour/CMakeLists.txt10
-rw-r--r--protocols/bonjour/icons/CMakeLists.txt3
-rw-r--r--protocols/gadu/CMakeLists.txt10
-rw-r--r--protocols/gadu/icons/CMakeLists.txt2
-rw-r--r--protocols/groupwise/CMakeLists.txt6
-rw-r--r--protocols/groupwise/icons/CMakeLists.txt2
-rw-r--r--protocols/groupwise/libgroupwise/CMakeLists.txt4
-rw-r--r--protocols/groupwise/libgroupwise/tasks/tests/CMakeLists.txt4
-rw-r--r--protocols/groupwise/libgroupwise/tests/CMakeLists.txt16
-rw-r--r--protocols/irc/CMakeLists.txt6
-rw-r--r--protocols/irc/icons/CMakeLists.txt2
-rw-r--r--protocols/irc/libkirc/CMakeLists.txt8
-rw-r--r--protocols/irc/libkirc/client/CMakeLists.txt4
-rw-r--r--protocols/jabber/CMakeLists.txt6
-rw-r--r--protocols/jabber/icons/CMakeLists.txt2
-rw-r--r--protocols/jabber/kioslave/CMakeLists.txt4
-rw-r--r--protocols/jabber/libiris/CMakeLists.txt4
-rw-r--r--protocols/jabber/libiris/src/jdns/src/qjdns/CMakeLists.txt2
-rw-r--r--protocols/jabber/libiris/src/jdns/tools/jdns/CMakeLists.txt2
-rw-r--r--protocols/meanwhile/CMakeLists.txt8
-rw-r--r--protocols/meanwhile/icons/CMakeLists.txt2
-rw-r--r--protocols/oscar/CMakeLists.txt6
-rw-r--r--protocols/oscar/aim/CMakeLists.txt8
-rw-r--r--protocols/oscar/icons/CMakeLists.txt2
-rw-r--r--protocols/oscar/icq/CMakeLists.txt8
-rw-r--r--protocols/oscar/liboscar/CMakeLists.txt4
-rw-r--r--protocols/oscar/liboscar/tests/CMakeLists.txt22
-rw-r--r--protocols/qq/CMakeLists.txt6
-rw-r--r--protocols/qq/icons/CMakeLists.txt2
-rw-r--r--protocols/skype/CMakeLists.txt15
-rw-r--r--protocols/skype/icons/CMakeLists.txt2
-rw-r--r--protocols/skype/skypebuttons/CMakeLists.txt6
-rw-r--r--protocols/sms/CMakeLists.txt18
-rw-r--r--protocols/sms/icons/CMakeLists.txt2
-rw-r--r--protocols/sms/services/CMakeLists.txt12
-rw-r--r--protocols/sms/ui/CMakeLists.txt12
-rw-r--r--protocols/testbed/CMakeLists.txt10
-rw-r--r--protocols/testbed/icons/CMakeLists.txt3
-rw-r--r--protocols/winpopup/CMakeLists.txt6
-rw-r--r--protocols/winpopup/icons/CMakeLists.txt2
-rw-r--r--protocols/wlm/CMakeLists.txt14
-rw-r--r--protocols/wlm/icons/CMakeLists.txt2
-rw-r--r--protocols/yahoo/CMakeLists.txt6
-rw-r--r--protocols/yahoo/icons/CMakeLists.txt2
-rw-r--r--protocols/yahoo/libkyahoo/CMakeLists.txt4
-rw-r--r--protocols/yahoo/libkyahoo/tests/CMakeLists.txt5
94 files changed, 482 insertions, 425 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5216807..f4819e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,25 +1,41 @@
cmake_minimum_required(VERSION 2.8.9)
project(kopete)
-find_package(KDE4 REQUIRED)
-include(KDE4Defaults)
-include(MacroLibrary)
-find_package(KdepimLibs REQUIRED)
-find_package(QImageBlitz REQUIRED)
+cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(KOPETE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(KOPETE_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
-set(CMAKE_MODULE_PATH ${KOPETE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
-set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
+set(KF5_VERSION "5.11.0")
+set(REQUIRED_QT_VERSION "5.2.0")
+
+#ECM modules configurations
+find_package(ECM 1.7 REQUIRED NO_MODULE)
+set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_MODULE_DIR} ${ECM_KDE_MODULE_DIR} ${KOPETE_SOURCE_DIR}/cmake)
+
+find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Core)
+find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Widgets Xml Sql Test)
+find_package(KF5Config ${KF5_VERSION} CONFIG REQUIRED)
+find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED)
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS
+ CoreAddons I18n DocTools KCMUtils KHtml NotifyConfig #[[Phonon PimIdentities]]
+ KDELibs4Support)
+
+include(KDEInstallDirs)
+include(KDECompilerSettings)
+include(KDECMakeSettings)
+include(FeatureSummary)
+include(ECMAddTests)
+include(ECMAddAppIcon)
+include(ECMInstallIcons)
if(WIN32)
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES})
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES})
endif(WIN32)
-add_definitions(${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
+add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
if(WIN32)
set(DISABLE_VIDEOSUPPORT ON)
@@ -31,97 +47,93 @@ if(DISABLE_VIDEOSUPPORT)
add_definitions(-DVIDEOSUPPORT_DISABLED)
endif(DISABLE_VIDEOSUPPORT)
-kde4_no_enable_final(kopete)
### Alphabetical list of optional packages ###
-#macro_optional_find_package(Alsa)
-#macro_log_feature(ALSA_FOUND "Alsa" "Alsa is Advanced Linux Sound Architecture" "http://www.alsa-project.org/" FALSE "" "Required for the Jabber protocol with Jingle support")
+find_package(Alsa QUIET CONFIG)
+set_package_properties(Alsa PROPERTIES DESCRIPTION "Alsa is advanced linux sound Architecture" URL "http://www.alsa-project.org" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support")
-macro_optional_find_package(Boost)
-macro_log_feature(Boost_FOUND Boost "C++ Boost libraries" "http://www.boost.org/" FALSE "" "Required for the WLM protocol")
+find_package(Boost QUIET CONFIG)
+set_package_properties(Boost PROPERTIES DESCRIPTION "C++ Boost libraries" URL "http://www.boost.org/" TYPE OPTIONAL PURPOSE "Required for the WLM protocol")
-macro_optional_find_package(Expat)
-macro_log_feature(EXPAT_FOUND "Expat" "Expat is a stream oriented XML parser" "http://expat.sourceforge.net/" FALSE "" "Required for the Jabber protocol with libjingle support")
+find_package(Expat QUIET CONFIG)
+set_package_properties(Expat PROPERTIES DESCRIPTION "Expat is a stream oriented XML parser" URL "http://expat.sourceforge.net/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support")
-macro_optional_find_package(GIF)
-macro_log_feature(GIF_FOUND "GIF" "Package of portable tools and library routines for working with GIF images" "http://giflib.sourceforge.net/" FALSE "" "Required for the WLM protocol with handwriting messages support")
+find_package(GIF QUIET CONFIG)
+set_package_properties(GIF PROPERTIES DESCRIPTION "GIF - Package of portable tools and library routines for working with GIF images" URL "http://giflib.sourceforge.net/" TYPE OPTIONAL PURPOSE "Required for the WLM protocol with handwriting messages support")
-macro_optional_find_package(GLIB2)
-macro_log_feature(GLIB2_FOUND "GLIB2" "GLib library" "http://www.gtk.org/" FALSE "" "Required for the Nowlistening plugin with XMMS player support")
+find_package(GLIB2 QUIET CONFIG)
+set_package_properties(GLIB2 PROPERTIES DESCRIPTION "GLib library" URL "http://www.gtk.org" TYPE OPTIONAL PURPOSE "Required for the Nowlistening plugin with XMMS player support")
-macro_optional_find_package(IDN)
-macro_log_feature(IDN_FOUND "IDN" "GNU Libidn Internationalized Domain Name (IDN) implementation" "http://www.gnu.org/software/libidn/" FALSE "" "Required for the Jabber protocol")
+find_package(IDN QUIET CONFIG)
+set_package_properties(IDN PROPERTIES DESCRIPTION "GNU Libidn International Domain Name(IDN) implementation" URL "http://www.gnu.org/software/libidn/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol")
-macro_optional_find_package(Jasper)
-macro_log_feature(JASPER_FOUND "Jasper" "JasPer library implements the codec specified in the JPEG-2000 Part-1 standard" "http://www.ece.uvic.ca/~mdadams/jasper/" FALSE "" "Required for the Yahoo protocol")
+find_package(Jasper QUIET CONFIG)
+set_package_properties(Jasper PROPERTIES DESCRIPTION "Jasper library implements the codec specified in the JPEG-200 Part-1 standard" URL "http://www.ece.uvic.ca/~mdadams/jasper/" TYPE OPTIONAL PURPOSE "Required for the Yahoo protocol")
-macro_optional_find_package(JsonCpp)
-macro_log_feature(JSONCPP_FOUND "JsonCpp" "JsonCpp is an implementation of a JSON reader and writer in C++" "http://jsoncpp.sourceforge.net/" FALSE "" "Required for the Jabber protocol with libjingle support")
+find_package(JsonCpp QUIET CONFIG)
+set_package_properties(JsonCpp PROPERTIES DESCRIPTION "JsonCpp is an implementation of a JSON reader and writer in C++" URL "http://jsoncpp.sourceforge.net/" TYPE OPTIONAL PURPOSE "Required for the jabber protocol")
-macro_optional_find_package(Kleopatra)
-macro_log_feature(KLEOPATRA_FOUND "Kleopatra" "The Kleopatra libraries (from kdepim)" "http://kde.org/" FALSE "" "Required for the Cryptography plugin")
+find_package(Kleopatra QUIET CONFIG)
+set_package_properties(Kleopatra PROPERTIES DESCRIPTION "The Kleopatra libraries (from kdepim)" URL "http://kde.org/" TYPE OPTIONAL PURPOSE "Required for the Cryptography plugin")
-macro_optional_find_package(Libgadu)
-macro_log_feature(LIBGADU_FOUND "Libgadu" "A library providing support for Gadu-Gadu protocol" "http://toxygen.net/libgadu/" FALSE "1.8.0" "Required for the Gadu-Gadu protocol")
+find_package(Libgadu QUIET CONFIG)
+set_package_properties(Libgadu PROPERTIES DESCRIPTION "A library providing support for the Gadu-Gadu protocol" URL "http://www.toxygen.net/libgadu" TYPE OPTIONAL PURPOSE "Required for the Gadu-Gadu protocol")
-macro_optional_find_package(LibMeanwhile)
-macro_log_feature(LIBMEANWHILE_FOUND "LibMeanwhile" "A library for protocol support for connection to Sametime servers" "http://meanwhile.sourceforge.net/" FALSE "" "Required for the Meanwhile protocol")
+find_package(LibMeanwhile QUIET CONFIG)
+set_package_properties(LibMeanwhile PROPERTIES DESCRIPTION "A library for protocol support for connection to sametime servers" URL "http://meanwhile.sourceforge.net/" TYPE OPTIONAL PURPOSE "Required for the meanwhile protocol")
-macro_optional_find_package(Libmsn)
-macro_log_feature(LIBMSN_FOUND "Libmsn" "A library providing support for the msn protocol" "http://libmsn.sourceforge.net/" FALSE "0.4.0" "Required for the WLM protocol")
+find_package(Libmsn QUIET CONFIG)
+set_package_properties(Libmsn PROPERTIES DESCRIPTION "A library providing support for the msn protocol" URL "http://libmsn.sourceforge.net/" TYPE OPTIONAL PURPOSE "Required for the WLM protocol")
-macro_optional_find_package(LiboRTP)
-macro_log_feature(LIBORTP_FOUND "LiboRTP" "oRTP provides an API to send rtp packets" "http://www.linphone.org/index.php/eng/code_review/ortp/" FALSE "0.13" "Required for the Jabber protocol with libjingle support and for the WLM protocol with voice clips support")
+find_package(LiboRTP QUIET CONFIG)
+set_package_properties(LiboRTP PROPERTIES DESCRIPTION "oRTP provides an API to send rtp packets" URL "http://www.linphone.org/index.php/eng/code_review/ortp/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support and for the WLM protocol with voice clips support")
-macro_optional_find_package(LibOTR)
-macro_log_feature(LIBOTR_FOUND "LibOTR" "A library to encrypt messages with Off-the-Record encryption" "http://www.cypherpunks.ca/otr/" FALSE "4.0.0" "Required for the OTR plugin")
+find_package(LibOTR QUIET CONFIG)
+set_package_properties(LibOTR PROPERTIES DESCRIPTION "Library to encrypt messages with off-the-record encryption" URL "http://www.cypherpunks.ca/otr/" TYPE OPTIONAL PURPOSE "Required for the OTR plugin")
-macro_optional_find_package(LibV4L2)
-macro_log_feature(LIBV4L2_FOUND "LibV4L2" "Collection of video4linux support libraries" "http://hansdegoede.livejournal.com/ http://linuxtv.org/hg/~hgoede/libv4l/" FALSE "" "Required for better webcam support on Linux")
+find_package(LibV4L2 QUIET CONFIG)
+set_package_properties(LibV4L2 PROPERTIES DESCRIPTION "Collection of video4linux support libraries" URL "http://hansdegoede.livejournal.com http://linuxtv.org/hq/~hgoede/libv4l/" TYPE OPTIONAL PURPOSE "Required for better webcam support on Linux")
-macro_optional_find_package(LibXml2)
-macro_log_feature(LIBXML2_FOUND "LibXml2" "Libraries used to develop XML applications" "http://xmlsoft.org/" FALSE "" "Required for the Webpresence plugin")
+find_package(LibXml2 QUIET CONFIG)
+set_package_properties(LibXml2 PROPERTIES DESCRIPTION "Libraries used to develop XML applications" URL "http://www.xmlsoft.org/" TYPE OPTIONAL PURPOSE "Required for Webpresence plugin")
-macro_optional_find_package(LibXslt)
-macro_log_feature(LIBXSLT_FOUND "LibXslt" "A library to transform XML files into other XML files" "http://xmlsoft.org/XSLT/" FALSE "" "Required for the Webpresence plugin")
+find_package(LibXslt QUIET CONFIG)
+set_package_properties(Alsa PROPERTIES DESCRIPTION "A library to transofrm XML files into other XML files" URL "http://www.xmlsoft.org/XSLT/" TYPE OPTIONAL PURPOSE "Required for the Webpresence plugin")
-macro_optional_find_package(Mediastreamer)
-macro_log_feature(MEDIASTREAMER_FOUND "Mediastreamer" "A streaming engine specialized for voice/video telephony applications" "http://www.linphone.org/index.php/eng/code_review/mediastreamer2/" FALSE "2.3.0" "Required for the Jabber protocol with libjingle support and for the WLM protocol with voice clips support")
+find_package(Mediastreamer QUIET CONFIG)
+set_package_properties(Mediastreamer PROPERTIES DESCRIPTION "A streaming enginer specialized for voice/video telephony applications" URL "http://www.linphone.org/index.php/eng/code_review/mediastreamer2/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support and for the WLM protocol with voice clips support")
-macro_optional_find_package(OpenSSL)
-macro_log_feature(OPENSSL_FOUND "OpenSSL" "OpenSSL implementation of SSL" "https://www.openssl.org/" FALSE "" "Required for the Jabber protocol with libjingle support")
+find_package(OpenSSL QUIET CONFIG)
+set_package_properties(OpenSSL PROPERTIES DESCRIPTION "OpenSSL implementation of SSL" URL "https://www.openssl.org/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support")
-macro_optional_find_package(QCA2)
-macro_log_feature(QCA2_FOUND "QCA2" "Qt Cryptographic Architecture" "http://delta.affinix.com/qca/" FALSE "2.0.0" "Required for the GroupWise and Jabber protocols")
+find_package(QCA2 QUIET CONFIG)
+set_package_properties(QCA2 PROPERTIES DESCRIPTION "Qt Cryptographic Architecture" URL "http://delta.affinix.com/qca/" TYPE OPTIONAL PURPOSE "Required for the GroupWise and Jabber protocols")
-macro_optional_find_package(QJSON)
-macro_log_feature(QJSON_FOUND "QJSON" "JSON handling library for Qt" "http://qjson.sourceforge.net/" FALSE "" "Required for the Jabber protocol")
+find_package(QGpgme QUIET CONFIG)
+set_package_properties(QGpgme PROPERTIES DESCRIPTION "QGpgME library (from kdepimlibs)" URL "http://www.kde.org/" TYPE OPTIONAL PURPOSE "Required for the Cryptography plugin")
-macro_optional_find_package(QGpgme)
-macro_log_feature(QGPGME_FOUND "QGpgme" "QGpgME library (from kdepimlibs)" "http://www.kde.org/" FALSE "" "Required for the Cryptography plugin")
+find_package(Sqlite QUIET CONFIG)
+set_package_properties(Sqlite PROPERTIES DESCRIPTION "SQLite is a Binary-Database" URL "http://www.sqlite.org" TYPE OPTIONAL PURPOSE "Required for the Statistic plugin")
-macro_optional_find_package(Sqlite)
-macro_log_feature(SQLITE_FOUND "Sqlite" "SQLite is a Binary-Database" "http://www.sqlite.org/" FALSE "" "Required for the Statistic plugin")
+find_package(Speex QUIET CONFIG)
+set_package_properties(Speex PROPERTIES DESCRIPTION "Speex is an encoder/decoder for the speex audio format" URL "http://www.speex.org/" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with Jingle support")
-#macro_optional_find_package(Speex)
-#macro_log_feature(SPEEX_FOUND "Speex" "Speex is an encoder/decoder for the speex audio format" "http://www.speex.org/" FALSE "" "Required for the Jabber protocol with Jingle support")
+find_package(SRTP QUIET CONFIG)
+set_package_properties(SRTP PROPERTIES DESCRIPTION "SRTP provides an implementation of the Secure Real-time Transport protocol(SRTP)" URL "http://srtp.sourceforge.net/srtp.html" TYPE OPTIONAL PURPOSE "Required for the Jabber protocol with libjingle support")
-macro_optional_find_package(SRTP)
-macro_log_feature(SRTP_FOUND "SRTP" "SRTP provides an implementation of the Secure Real-time Transport Protocol (SRTP)" "http://srtp.sourceforge.net/srtp.html" FALSE "" "Required for the Jabber protocol with libjingle support")
+find_package(Xmms QUIET CONFIG)
+set_package_properties(Xmms PROPERTIES DESCRIPTION "X Multimedia System development libraries" URL "http://www.xmms.org/" TYPE OPTIONAL PURPOSE "Required for the Nowlistening plugin with XMMS player support")
-macro_optional_find_package(Xmms)
-macro_log_feature(XMMS_FOUND "Xmms" "X MultiMedia System development libraries" "http://www.xmms.org/" FALSE "" "Required for the Nowlistening plugin with XMMS player support")
-
-macro_optional_find_package(ZLIB)
-macro_log_feature(ZLIB_FOUND "ZLIB" "Zlib is a library implementing the deflate compression method" "http://zlib.net/" FALSE "" "Required for the GroupWise and Jabber protocols")
+find_package(ZLIB QUIET CONFIG)
+set_package_properties(ZLIB PROPERTIES DESCRIPTION "Zlib is a library implementing the deflate compression method" URL "http://zlib.net/" TYPE OPTIONAL PURPOSE "Required for the GroupWise and Jabber protocols")
if(Q_WS_X11)
macro_log_feature(X11_Xss_FOUND "libXss" "libXss provides access to screen server X11 extension" "" FALSE "" "Required for idle timer on X11")
endif(Q_WS_X11)
set(KOPETE_INCLUDES
- ${KDE4_INCLUDES}
+
${KDEPIMLIBS_INCLUDE_DIRS}
${KOPETE_SOURCE_DIR}/libkopete/
${KOPETE_BINARY_DIR}/libkopete/
@@ -140,4 +152,6 @@ add_subdirectory(sounds)
add_subdirectory(styles)
add_subdirectory(doc)
-macro_display_feature_log()
+install(FILES kopeteui.rc kopete.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kopete )
+
+#macro_display_feature_log()
diff --git a/doc-dev/t2/CMakeLists.txt b/doc-dev/t2/CMakeLists.txt
index 0ef0d1c..fbe52e8 100644
--- a/doc-dev/t2/CMakeLists.txt
+++ b/doc-dev/t2/CMakeLists.txt
@@ -13,8 +13,8 @@ install(FILES kopete_tutorialplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
# set the search path for included headers
set(KOPETE_INCLUDES
- ${KDE4_INCLUDE_DIR}/kopete
- ${KDE4_INCLUDES}
+ /kopete
+
)
include_directories(${KOPETE_INCLUDES})
@@ -25,11 +25,11 @@ set(kopete_tutorialplugin_PART_SRCS tutorialplugin.cpp )
# create moc files as needed
# declare the plugin library
-kde4_add_plugin(kopete_tutorialplugin ${kopete_tutorialplugin_PART_SRCS})
+add_library(kopete_tutorialplugin MODULE ${kopete_tutorialplugin_PART_SRCS})
# link any other libraries
# kdeui is needed because a kopete plugin uses KXMLGUI
-target_link_libraries(kopete_tutorialplugin ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries(kopete_tutorialplugin kopete )
# install the result with other KDE plugins
install(TARGETS kopete_tutorialplugin DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/doc-dev/t3/CMakeLists.txt b/doc-dev/t3/CMakeLists.txt
index f41a2f8..e1a929d 100644
--- a/doc-dev/t3/CMakeLists.txt
+++ b/doc-dev/t3/CMakeLists.txt
@@ -13,8 +13,8 @@ install(FILES kopete_tutorialplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
# set the search path for included headers
set(KOPETE_INCLUDES
- ${KDE4_INCLUDE_DIR}/kopete
- ${KDE4_INCLUDES}
+ /kopete
+
)
include_directories(${KOPETE_INCLUDES})
@@ -25,11 +25,11 @@ set(kopete_tutorialplugin_PART_SRCS tutorialplugin.cpp )
# create moc files as needed
# declare the plugin library
-kde4_add_plugin(kopete_tutorialplugin ${kopete_tutorialplugin_PART_SRCS})
+add_library(kopete_tutorialplugin MODULE ${kopete_tutorialplugin_PART_SRCS})
# link any other libraries
# kdeui is needed because a kopete plugin uses KXMLGUI
-target_link_libraries(kopete_tutorialplugin ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries(kopete_tutorialplugin kopete )
# install the result with other KDE plugins
install(TARGETS kopete_tutorialplugin DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -38,12 +38,12 @@ install(TARGETS kopete_tutorialplugin DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_tutorialplugin_PART_SRCS tutorialpreferences.cpp )
-kde4_add_ui_files(kcm_kopete_tutorialplugin_PART_SRCS tutorialprefs.ui )
+ki18n_wrap_ui(kcm_kopete_tutorialplugin_PART_SRCS tutorialprefs.ui )
-kde4_add_plugin(kcm_kopete_tutorialplugin ${kcm_kopete_tutorialplugin_PART_SRCS})
+add_library(kcm_kopete_tutorialplugin MODULE ${kcm_kopete_tutorialplugin_PART_SRCS})
-target_link_libraries(kcm_kopete_tutorialplugin ${KDE4_KUTILS_LIBS})
+target_link_libraries(kcm_kopete_tutorialplugin )
install(TARGETS kcm_kopete_tutorialplugin DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 91c3e23..1643912 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,2 +1,2 @@
########### install files ###############
-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kopete)
+kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kopete)
diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt
index 02e3c9e..285de8e 100644
--- a/icons/CMakeLists.txt
+++ b/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons(${ICON_INSTALL_DIR})
+ecm_install_icons(${ICON_INSTALL_DIR})
diff --git a/kopete/CMakeLists.txt b/kopete/CMakeLists.txt
index 7167352..d2d3eac 100644
--- a/kopete/CMakeLists.txt
+++ b/kopete/CMakeLists.txt
@@ -31,6 +31,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/contactlist
########### next target ###############
# Contact List
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS NotifyConfig TextEditor)
set(kopete_SRCS
${kopetecontactlist_SRCS}
@@ -45,26 +46,28 @@ set(kopete_SRCS
infoeventwidget.cpp
)
-QT4_ADD_DBUS_ADAPTOR(kopete_SRCS org.kde.Kopete.xml kopetedbusinterface.h KopeteDBusInterface)
+qt5_add_dbus_adaptor(kopete_SRCS org.kde.Kopete.xml kopetedbusinterface.h KopeteDBusInterface)
-kde4_add_ui_files(kopete_SRCS groupkabcselectorwidget.ui infoeventbase.ui )
+ki18n_wrap_ui(kopete_SRCS groupkabcselectorwidget.ui infoeventbase.ui )
-kde4_add_app_icon(kopete_SRCS "hi*-apps-kopete.png")
+file(GLOB ICONS_SRCS "hi*-apps-kopete.png")
+ecm_add_app_icon(kopete_SRCS ICONS ${ICONS_SRCS})
-kde4_add_executable(kopete_bin ${kopete_SRCS})
+add_executable(kopete_bin ${kopete_SRCS})
set_target_properties(kopete_bin PROPERTIES RUNTIME_OUTPUT_NAME kopete)
-target_link_libraries(kopete_bin
- ${KDE4_KTEXTEDITOR_LIBS}
- ${KDE4_KNOTIFYCONFIG_LIBS}
+target_link_libraries(kopete_bin
+ KF5::TextEditor
+ KF5::NotifyConfig
${KDE4_KABC_LIBS}
${KDE4_SOLID_LIBRARY}
${QIMAGEBLITZ_LIBRARIES}
- kopete
+ kopete
kopeteaddaccountwizard
kopetestatusmenu
kopetecontactlist
- kopeteidentity)
+ kopeteidentity
+)
install(TARGETS kopete_bin ${INSTALL_TARGETS_DEFAULT_ARGS} )
@@ -76,5 +79,5 @@ install( FILES kopeteui.rc kopete.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kope
install( FILES kopeterc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES org.kde.Kopete.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
-kde4_install_icons( ${ICON_INSTALL_DIR} )
+ecm_install_icons( ${ICON_INSTALL_DIR} )
diff --git a/kopete/addaccountwizard/CMakeLists.txt b/kopete/addaccountwizard/CMakeLists.txt
index 7d625a3..241e508 100644
--- a/kopete/addaccountwizard/CMakeLists.txt
+++ b/kopete/addaccountwizard/CMakeLists.txt
@@ -10,13 +10,13 @@ set( kopeteaddaccountwizard_SRCS
addaccountwizard.cpp
)
-kde4_add_ui_files( kopeteaddaccountwizard_SRCS
+ki18n_wrap_ui( kopeteaddaccountwizard_SRCS
addaccountwizardpage1.ui
addaccountwizardpage2.ui
)
-kde4_add_library( kopeteaddaccountwizard SHARED ${kopeteaddaccountwizard_SRCS} )
-target_link_libraries( kopeteaddaccountwizard kopete ${KDE4_KDEUI_LIBS} )
+add_library( kopeteaddaccountwizard SHARED ${kopeteaddaccountwizard_SRCS} )
+target_link_libraries( kopeteaddaccountwizard kopete )
set_target_properties( kopeteaddaccountwizard PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopeteaddaccountwizard ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/kopete/chatwindow/CMakeLists.txt b/kopete/chatwindow/CMakeLists.txt
index ba4bb87..ce85d3b 100644
--- a/kopete/chatwindow/CMakeLists.txt
+++ b/kopete/chatwindow/CMakeLists.txt
@@ -21,9 +21,9 @@ kopetechatwindowstylemanager.cpp
kopetechatwindowstyle.cpp )
-kde4_add_kcfg_files(kopetechatwindow_shared_SRCS GENERATE_MOC kopetechatwindowsettings.kcfgc )
-kde4_add_library(kopetechatwindow_shared SHARED ${kopetechatwindow_shared_SRCS})
-target_link_libraries(kopetechatwindow_shared kopete ${KDE4_PHONON_LIBS} ${KDE4_KHTML_LIBS} ${KDE4_KUTILS_LIBS} )
+kconfig_add_kcfg_files(kopetechatwindow_shared_SRCS GENERATE_MOC kopetechatwindowsettings.kcfgc )
+add_library(kopetechatwindow_shared SHARED ${kopetechatwindow_shared_SRCS})
+target_link_libraries(kopetechatwindow_shared kopete Phonon::phonon4qt5 KF5::KHtml )
set_target_properties(kopetechatwindow_shared PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopetechatwindow_shared ${INSTALL_TARGETS_DEFAULT_ARGS})
@@ -31,10 +31,10 @@ install(TARGETS kopetechatwindow_shared ${INSTALL_TARGETS_DEFAULT_ARGS})
set(chattexteditpart_PART_SRCS chattexteditpart.cpp )
-kde4_add_plugin(chattexteditpart WITH_PREFIX ${chattexteditpart_PART_SRCS})
+add_library(chattexteditpart MODULE ${chattexteditpart_PART_SRCS})
-target_link_libraries(chattexteditpart kopete kopetechatwindow_shared ${KDE4_KPARTS_LIBS} )
+target_link_libraries(chattexteditpart kopete kopetechatwindow_shared KF5::Parts )
install(TARGETS chattexteditpart DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -44,10 +44,9 @@ install(TARGETS chattexteditpart DESTINATION ${PLUGIN_INSTALL_DIR})
set(kopete_chatwindow_PART_SRCS chatview.cpp kopetechatwindow.cpp chatmemberslistview.cpp)
-kde4_add_plugin(kopete_chatwindow ${kopete_chatwindow_PART_SRCS})
+add_library(kopete_chatwindow MODULE ${kopete_chatwindow_PART_SRCS})
-
-target_link_libraries(kopete_chatwindow ${KDE4_KDEUI_LIBS} kopete kopetechatwindow_shared ${KDE4_KHTML_LIBS})
+target_link_libraries(kopete_chatwindow kopete kopetechatwindow_shared KF5::KHtml)
install(TARGETS kopete_chatwindow DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -57,10 +56,10 @@ install(TARGETS kopete_chatwindow DESTINATION ${PLUGIN_INSTALL_DIR})
set(kopete_emailwindow_PART_SRCS kopeteemailwindow.cpp )
-kde4_add_plugin(kopete_emailwindow ${kopete_emailwindow_PART_SRCS})
+add_library(kopete_emailwindow MODULE ${kopete_emailwindow_PART_SRCS})
-target_link_libraries(kopete_emailwindow ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KHTML_LIBS} kopete kopetechatwindow_shared)
+target_link_libraries(kopete_emailwindow KF5::Parts KF5::KHtml kopete kopetechatwindow_shared)
install(TARGETS kopete_emailwindow DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/chatwindow/a11y/CMakeLists.txt b/kopete/chatwindow/a11y/CMakeLists.txt
index f20cf44..8dd19a0 100644
--- a/kopete/chatwindow/a11y/CMakeLists.txt
+++ b/kopete/chatwindow/a11y/CMakeLists.txt
@@ -1,5 +1,5 @@
include_directories(${KOPETE_INCLUDES})
set(chatwindowaccessiblewidgetfactory_SRCS chatwindowaccessiblewidgetfactory.cpp accessiblechatmessagepart.cpp)
-kde4_add_plugin(chatwindowaccessiblewidgetfactory ${chatwindowaccessiblewidgetfactory_SRCS})
-target_link_libraries(chatwindowaccessiblewidgetfactory ${KDE4_KHTML_LIBS} )
+add_library(chatwindowaccessiblewidgetfactory MODULE ${chatwindowaccessiblewidgetfactory_SRCS})
+target_link_libraries(chatwindowaccessiblewidgetfactory KF5::KHtml )
install(TARGETS chatwindowaccessiblewidgetfactory DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/accessible)
diff --git a/kopete/chatwindow/tests/CMakeLists.txt b/kopete/chatwindow/tests/CMakeLists.txt
index adc6129..d1b07fe 100644
--- a/kopete/chatwindow/tests/CMakeLists.txt
+++ b/kopete/chatwindow/tests/CMakeLists.txt
@@ -8,9 +8,10 @@ set(kopetetabwidgettest_SRCS kopetetabwidgettest.cpp )
-kde4_add_executable(kopetetabwidgettest TEST ${kopetetabwidgettest_SRCS})
+add_executable(kopetetabwidgettest ${kopetetabwidgettest_SRCS})
+ecm_mark_as_test(kopetetabwidgettest)
-target_link_libraries(kopetetabwidgettest ${KDE4_KDECORE_LIBS} kopetechatwindow )
+target_link_libraries(kopetetabwidgettest KF5::KDELibs4Support kopetechatwindow )
########### install files ###############
diff --git a/kopete/config/accounts/CMakeLists.txt b/kopete/config/accounts/CMakeLists.txt
index f0a463d..fe5d058 100644
--- a/kopete/config/accounts/CMakeLists.txt
+++ b/kopete/config/accounts/CMakeLists.txt
@@ -14,12 +14,12 @@ link_directories( ${KOPETE_BINARY_DIR}/kopete/addaccountwizard ${KOPETE_BINARY_D
set(kcm_kopete_accountconfig_PART_SRCS accounttreewidget.cpp kopeteaccountconfig.cpp )
-kde4_add_ui_files(kcm_kopete_accountconfig_PART_SRCS kopeteaccountconfigbase.ui )
+ki18n_wrap_ui(kcm_kopete_accountconfig_PART_SRCS kopeteaccountconfigbase.ui )
-kde4_add_plugin(kcm_kopete_accountconfig ${kcm_kopete_accountconfig_PART_SRCS})
+add_library(kcm_kopete_accountconfig MODULE ${kcm_kopete_accountconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_accountconfig ${KDE4_KUTILS_LIBS} kopete kopeteaddaccountwizard kopeteidentity)
+target_link_libraries(kcm_kopete_accountconfig kopete kopeteaddaccountwizard kopeteidentity)
install(TARGETS kcm_kopete_accountconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/config/appearance/CMakeLists.txt b/kopete/config/appearance/CMakeLists.txt
index abfe7ae..905830f 100644
--- a/kopete/config/appearance/CMakeLists.txt
+++ b/kopete/config/appearance/CMakeLists.txt
@@ -12,6 +12,8 @@ link_directories( ${KOPETE_BINARY_DIR}/kopete/contactlist )
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS NotifyConfig)
+
set(kcm_kopete_appearanceconfig_PART_SRCS
appearanceconfig.cpp
contactlistlayoutwidget.cpp
@@ -23,17 +25,17 @@ set(kcm_kopete_appearanceconfig_PART_SRCS
layout/TokenPool.cpp
layout/TokenWithLayout.cpp )
-kde4_add_ui_files(kcm_kopete_appearanceconfig_PART_SRCS
+ki18n_wrap_ui(kcm_kopete_appearanceconfig_PART_SRCS
appearanceconfig_colors.ui
appearanceconfig_contactlist.ui
appearanceconfig_advanced.ui
contactlistlayoutwidget.ui
tooltipeditwidget.ui )
-kde4_add_plugin(kcm_kopete_appearanceconfig ${kcm_kopete_appearanceconfig_PART_SRCS})
+add_library(kcm_kopete_appearanceconfig MODULE ${kcm_kopete_appearanceconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_appearanceconfig ${KDE4_KUTILS_LIBS} kopete kopetecontactlist )
+target_link_libraries(kcm_kopete_appearanceconfig kopete kopetecontactlist )
install(TARGETS kcm_kopete_appearanceconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/config/avdevice/CMakeLists.txt b/kopete/config/avdevice/CMakeLists.txt
index c4e3eb2..b85ed95 100644
--- a/kopete/config/avdevice/CMakeLists.txt
+++ b/kopete/config/avdevice/CMakeLists.txt
@@ -4,19 +4,18 @@ ${KOPETE_INCLUDES}
)
-
########### next target ###############
set(kcm_kopete_avdeviceconfig_PART_SRCS
avdeviceconfig.cpp IdGuiElements.cpp )
# avdeviceconfig_videodevicec.cpp )
-kde4_add_ui_files(kcm_kopete_avdeviceconfig_PART_SRCS avdeviceconfig_videodevice.ui )
+ki18n_wrap_ui(kcm_kopete_avdeviceconfig_PART_SRCS avdeviceconfig_videodevice.ui )
-kde4_add_plugin(kcm_kopete_avdeviceconfig ${kcm_kopete_avdeviceconfig_PART_SRCS})
+add_library(kcm_kopete_avdeviceconfig MODULE ${kcm_kopete_avdeviceconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_avdeviceconfig ${KDE4_KUTILS_LIBS} kopete kopete_videodevice)
+target_link_libraries(kcm_kopete_avdeviceconfig kopete kopete_videodevice)
install(TARGETS kcm_kopete_avdeviceconfig DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -25,4 +24,5 @@ install(TARGETS kcm_kopete_avdeviceconfig DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES kopete_avdeviceconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+#ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons(${ICON_INSTALL_DIR})
diff --git a/kopete/config/behavior/CMakeLists.txt b/kopete/config/behavior/CMakeLists.txt
index bba08e0..38a1f7b 100644
--- a/kopete/config/behavior/CMakeLists.txt
+++ b/kopete/config/behavior/CMakeLists.txt
@@ -12,7 +12,7 @@ set(kcm_kopete_behaviorconfig_PART_SRCS
behaviorconfig_away.cpp
)
-kde4_add_ui_files(kcm_kopete_behaviorconfig_PART_SRCS
+ki18n_wrap_ui(kcm_kopete_behaviorconfig_PART_SRCS
behaviorconfig_chat.ui
behaviorconfig_events.ui
behaviorconfig_general.ui
@@ -20,10 +20,10 @@ kde4_add_ui_files(kcm_kopete_behaviorconfig_PART_SRCS
)
-kde4_add_plugin(kcm_kopete_behaviorconfig ${kcm_kopete_behaviorconfig_PART_SRCS})
+add_library(kcm_kopete_behaviorconfig MODULE ${kcm_kopete_behaviorconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_behaviorconfig ${KDE4_KUTILS_LIBS} kopete)
+target_link_libraries(kcm_kopete_behaviorconfig kopete)
install(TARGETS kcm_kopete_behaviorconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/config/chatwindow/CMakeLists.txt b/kopete/config/chatwindow/CMakeLists.txt
index 89e6fae..332dbb4 100644
--- a/kopete/config/chatwindow/CMakeLists.txt
+++ b/kopete/config/chatwindow/CMakeLists.txt
@@ -13,16 +13,16 @@ set(kcm_kopete_chatwindowconfig_PART_SRCS
emoticonthemedelegate.cpp
emoticonthemeitem.cpp )
-kde4_add_ui_files(kcm_kopete_chatwindowconfig_PART_SRCS
+ki18n_wrap_ui(kcm_kopete_chatwindowconfig_PART_SRCS
chatwindowconfig_style.ui
chatwindowconfig_emoticons.ui
chatwindowconfig_colors.ui
chatwindowconfig_tab.ui )
-kde4_add_plugin(kcm_kopete_chatwindowconfig ${kcm_kopete_chatwindowconfig_PART_SRCS})
+add_library(kcm_kopete_chatwindowconfig MODULE ${kcm_kopete_chatwindowconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_chatwindowconfig ${KDE4_KUTILS_LIBS} kopete kopetechatwindow_shared ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KHTML_LIBS})
+target_link_libraries(kcm_kopete_chatwindowconfig kopete kopetechatwindow_shared ${KDE4_KNEWSTUFF2_LIBS} KF5::KHtml)
install(TARGETS kcm_kopete_chatwindowconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/config/plugins/CMakeLists.txt b/kopete/config/plugins/CMakeLists.txt
index 5dc269d..ba07abb 100644
--- a/kopete/config/plugins/CMakeLists.txt
+++ b/kopete/config/plugins/CMakeLists.txt
@@ -6,10 +6,10 @@ ${KOPETE_INCLUDES}
set(kcm_kopete_pluginconfig_PART_SRCS kopetepluginconfig.cpp )
-kde4_add_plugin(kcm_kopete_pluginconfig ${kcm_kopete_pluginconfig_PART_SRCS})
+add_library(kcm_kopete_pluginconfig MODULE ${kcm_kopete_pluginconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_pluginconfig ${KDE4_KUTILS_LIBS} kopete)
+target_link_libraries(kcm_kopete_pluginconfig kopete)
install(TARGETS kcm_kopete_pluginconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/config/status/CMakeLists.txt b/kopete/config/status/CMakeLists.txt
index 8cab8f1..9b95592 100644
--- a/kopete/config/status/CMakeLists.txt
+++ b/kopete/config/status/CMakeLists.txt
@@ -9,14 +9,14 @@ set(kcm_kopete_statusconfig_PART_SRCS
statusmodel.cpp
)
-kde4_add_ui_files(kcm_kopete_statusconfig_PART_SRCS
+ki18n_wrap_ui(kcm_kopete_statusconfig_PART_SRCS
statusconfig_manager.ui
statusconfig_general.ui
)
-kde4_add_plugin(kcm_kopete_statusconfig ${kcm_kopete_statusconfig_PART_SRCS})
+add_library(kcm_kopete_statusconfig MODULE ${kcm_kopete_statusconfig_PART_SRCS})
-target_link_libraries(kcm_kopete_statusconfig ${KDE4_KUTILS_LIBS} ${QT_QTXML_LIBRARY} kopete)
+target_link_libraries(kcm_kopete_statusconfig Qt5::Xml kopete)
install(TARGETS kcm_kopete_statusconfig DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/kopete/contactlist/CMakeLists.txt b/kopete/contactlist/CMakeLists.txt
index c99130a..83d1e9c 100644
--- a/kopete/contactlist/CMakeLists.txt
+++ b/kopete/contactlist/CMakeLists.txt
@@ -6,6 +6,8 @@ ${QIMAGEBLITZ_INCLUDES}
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS NotifyConfig)
+
set(kopetecontactlist_SRCS
#kopetemetacontactitem.cpp
#kopetestatusgroupviewitem.cpp
@@ -25,7 +27,7 @@ contactlistlayoutmanager.cpp
contactlistlayoutitemconfig.cpp
)
-kde4_add_ui_files(kopetecontactlist_SRCS
+ki18n_wrap_ui(kopetecontactlist_SRCS
kopetegvipropswidget.ui
kopetemetalvipropswidget.ui
kopeteaddrbookexportui.ui
@@ -33,13 +35,14 @@ kabcexport_page1.ui
kabcexport_page2.ui
)
-kde4_add_library( kopetecontactlist SHARED ${kopetecontactlist_SRCS} )
-target_link_libraries( kopetecontactlist kopete ${KDE4_KDEUI_LIBS}
-${KDE4_KABC_LIBS}
-${KDE4_KIO_LIBS}
-${KDE4_KNOTIFYCONFIG_LIBS}
-${QT_QTXML_LIBRARY}
-${QIMAGEBLITZ_LIBRARIES})
+add_library( kopetecontactlist SHARED ${kopetecontactlist_SRCS} )
+target_link_libraries(
+ kopetecontactlist
+ kopete
+ ${KDE4_KABC_LIBS}
+ KF5::NotifyConfig
+ ${QIMAGEBLITZ_LIBRARIES}
+)
set_target_properties( kopetecontactlist PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopetecontactlist ${INSTALL_TARGETS_DEFAULT_ARGS})
install( FILES DefaultContactListLayouts.xml CompactContactListLayouts.xml DESTINATION ${DATA_INSTALL_DIR}/kopete)
diff --git a/kopete/identity/CMakeLists.txt b/kopete/identity/CMakeLists.txt
index e42c4b4..b03e5aa 100644
--- a/kopete/identity/CMakeLists.txt
+++ b/kopete/identity/CMakeLists.txt
@@ -17,15 +17,15 @@ identitydialog.cpp
identitystatuswidget.cpp
)
-kde4_add_ui_files( kopeteidentity_SRCS
+ki18n_wrap_ui( kopeteidentity_SRCS
accountidentitybase.ui
identitygeneral.ui
identitydetailed.ui
identitystatusbase.ui
)
-kde4_add_library( kopeteidentity SHARED ${kopeteidentity_SRCS} )
-target_link_libraries( kopeteidentity kopeteaddaccountwizard kopete ${KDE4_KDEUI_LIBS} kopetestatusmenu )
+add_library( kopeteidentity SHARED ${kopeteidentity_SRCS} )
+target_link_libraries( kopeteidentity kopeteaddaccountwizard kopete kopetestatusmenu )
set_target_properties( kopeteidentity PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopeteidentity ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/kopete/statusmenu/CMakeLists.txt b/kopete/statusmenu/CMakeLists.txt
index 6ef9e81..d34887f 100644
--- a/kopete/statusmenu/CMakeLists.txt
+++ b/kopete/statusmenu/CMakeLists.txt
@@ -14,12 +14,12 @@ set( kopetestatusmenu_SRCS
kopetestatusrootaction.cpp
)
-kde4_add_ui_files( kopetestatusmenu_SRCS
+ki18n_wrap_ui( kopetestatusmenu_SRCS
kopetestatuseditwidget_base.ui
)
-kde4_add_library( kopetestatusmenu SHARED ${kopetestatusmenu_SRCS} )
-target_link_libraries( kopetestatusmenu kopete ${KDE4_KDEUI_LIBS} ${KDE4_KCMUTILS_LIBS} )
+add_library( kopetestatusmenu SHARED ${kopetestatusmenu_SRCS} )
+target_link_libraries( kopetestatusmenu kopete KF5::KCMUtils )
set_target_properties( kopetestatusmenu PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopetestatusmenu ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/libkopete/CMakeLists.txt b/libkopete/CMakeLists.txt
index 31dd9dc..c4ee620 100644
--- a/libkopete/CMakeLists.txt
+++ b/libkopete/CMakeLists.txt
@@ -134,7 +134,7 @@ set(kopete_LIB_SRCS
)
-kde4_add_ui_files(kopete_LIB_SRCS
+ki18n_wrap_ui(kopete_LIB_SRCS
ui/addressbooklinkwidget_base.ui
ui/addressbookselectorwidget_base.ui
ui/avatarselectorwidget.ui
@@ -144,20 +144,21 @@ kde4_add_ui_files(kopete_LIB_SRCS
ui/metacontactselectorwidget_base.ui
)
-kde4_add_kcfg_files(kopete_LIB_SRCS GENERATE_MOC
+kconfig_add_kcfg_files(kopete_LIB_SRCS GENERATE_MOC
kopeteappearancesettings.kcfgc
kopetebehaviorsettings.kcfgc
kopetestatussettings.kcfgc
)
-kde4_add_library(kopete SHARED ${kopete_LIB_SRCS})
+add_library(kopete SHARED ${kopete_LIB_SRCS})
target_link_libraries(kopete
${QT_QTXML_LIBRARIES}
- ${KDE4_KIO_LIBS}
- ${KDE4_KABC_LIBS}
- ${KDE4_SOLID_LIBS}
- ${KDE4_KCMUTILS_LIBS}
+ KF5::KIOCore
+ KF5::KIOWidgets
+ KF5::Contacts
+ KF5::Solid
+ KF5::KCMUtils
${KDE4_KEMOTICONS_LIBS}
)
diff --git a/libkopete/avdevice/CMakeLists.txt b/libkopete/avdevice/CMakeLists.txt
index d91f4c8..2d85cb8 100644
--- a/libkopete/avdevice/CMakeLists.txt
+++ b/libkopete/avdevice/CMakeLists.txt
@@ -26,12 +26,12 @@ set(kopete_videodevice_LIB_SRCS
bayer.cpp
sonix_compress.cpp )
-kde4_add_library(kopete_videodevice SHARED ${kopete_videodevice_LIB_SRCS})
+add_library(kopete_videodevice SHARED ${kopete_videodevice_LIB_SRCS})
if (LIBV4L2_FOUND)
-target_link_libraries(kopete_videodevice ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_SOLID_LIBS} ${LIBV4L2_LIBRARY})
+target_link_libraries(kopete_videodevice Qt5::Gui KF5::KDELibs4Support ${LIBV4L2_LIBRARY})
else (LIBV4L2_FOUND)
-target_link_libraries(kopete_videodevice ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_SOLID_LIBS})
+target_link_libraries(kopete_videodevice Qt5::Gui KF5::KDELibs4Support )
endif (LIBV4L2_FOUND)
set_target_properties(kopete_videodevice PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
diff --git a/libkopete/tests/CMakeLists.txt b/libkopete/tests/CMakeLists.txt
index 78e489a..456212b 100644
--- a/libkopete/tests/CMakeLists.txt
+++ b/libkopete/tests/CMakeLists.txt
@@ -14,7 +14,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/mock/ ${KOPETE_INCLUDES} )
add_definitions( -DSRCDIR="\\"${CMAKE_CURRENT_SOURCE_DIR}/\\"" )
-set( KOPETE_TEST_LIBRARIES ${QT_QTTEST_LIBRARY} ${KDE4_KIO_LIBS} kopete )
+set( KOPETE_TEST_LIBRARIES Qt5::Test KF5::KIOCore kopete )
########### Automated tests ###############
@@ -23,7 +23,9 @@ if(NOT WIN32)
set(kopetemessage_test_SRCS kopetemessage_test.cpp ${kopete_test_mock_SRCS})
- kde4_add_unit_test(kopetemessage_test ${kopetemessage_test_SRCS})
+ add_executable(kopetemessage_test ${kopetemessage_test_SRCS})
+add_test(kopetemessage_test kopetemessage_test)
+ecm_mark_as_test(kopetemessage_test)
target_link_libraries(kopetemessage_test ${KOPETE_TEST_LIBRARIES} )
@@ -32,7 +34,9 @@ endif(NOT WIN32)
set(kopetetask_test_SRCS kopetetask_test.cpp )
-kde4_add_unit_test(kopetetask_test ${kopetetask_test_SRCS})
+add_executable(kopetetask_test ${kopetetask_test_SRCS})
+add_test(kopetetask_test kopetetask_test)
+ecm_mark_as_test(kopetetask_test)
target_link_libraries(kopetetask_test ${KOPETE_TEST_LIBRARIES} )
@@ -41,7 +45,9 @@ target_link_libraries(kopetetask_test ${KOPETE_TEST_LIBRARIES} )
set(statusmessage_test_SRCS statusmessage_test.cpp )
-kde4_add_unit_test(statusmessage_test ${statusmessage_test_SRCS})
+add_executable(statusmessage_test ${statusmessage_test_SRCS})
+add_test(statusmessage_test statusmessage_test)
+ecm_mark_as_test(statusmessage_test)
target_link_libraries(statusmessage_test ${KOPETE_TEST_LIBRARIES} )
@@ -50,7 +56,9 @@ target_link_libraries(statusmessage_test ${KOPETE_TEST_LIBRARIES} )
set(xmlcontactstorage_test_SRCS xmlcontactstorage_test.cpp)
-kde4_add_unit_test(xmlcontactstorage_test ${xmlcontactstorage_test_SRCS})
+add_executable(xmlcontactstorage_test ${xmlcontactstorage_test_SRCS})
+add_test(xmlcontactstorage_test xmlcontactstorage_test)
+ecm_mark_as_test(xmlcontactstorage_test)
target_link_libraries(xmlcontactstorage_test ${KOPETE_TEST_LIBRARIES})
@@ -58,7 +66,8 @@ target_link_libraries(xmlcontactstorage_test ${KOPETE_TEST_LIBRARIES})
set(avatarselector_test_SRCS avatarselectortest_program.cpp)
-kde4_add_executable(avatarselectortest_program TEST ${avatarselector_test_SRCS})
+add_executable(avatarselectortest_program ${avatarselector_test_SRCS})
+ecm_mark_as_test(avatarselectortest_program)
target_link_libraries(avatarselectortest_program ${KOPETE_TEST_LIBRARIES})
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 86fe572..8d17d3b 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -1,7 +1,7 @@
option(WITH_latex "Enable Kopete latex plugin" ON)
option(WITH_autoreplace "Enable Kopete autoreplace plugin" ON)
-option(WITH_history "Enable Kopete history plugin" ON)
-option(WITH_history2 "Enable Kopete history2 plugin" ON)
+option(WITH_history "Enable Kopete history plugin" OFF)
+option(WITH_history2 "Enable Kopete history2 plugin" OFF)
option(WITH_contactnotes "Enable Kopete contactnotes plugin" ON)
option(WITH_translator "Enable Kopete translator plugin" ON)
option(WITH_nowlistening "Enable Kopete nowlistening plugin" ON)
@@ -15,7 +15,7 @@ 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_otr "Enable Kopete Off-the-Record plugin" ON)
-option(WITH_cryptography "Enable Kopete Cryptography plugin" ON)
+option(WITH_cryptography "Enable Kopete Cryptography plugin" OFF)
# Laurent this plugins use shell script which will not work on windows
if (WITH_latex AND UNIX)
@@ -24,12 +24,12 @@ endif (WITH_latex AND UNIX)
if (WITH_autoreplace)
add_subdirectory( autoreplace )
endif (WITH_autoreplace)
-if (WITH_history)
+#[[if (WITH_history)
add_subdirectory( history )
endif (WITH_history)
if (WITH_history2)
add_subdirectory( history2 )
-endif (WITH_history2)
+endif (WITH_history2)]]
if (WITH_contactnotes)
add_subdirectory( contactnotes )
endif (WITH_contactnotes)
@@ -74,6 +74,6 @@ endif(WITH_webpresence AND LIBXML2_FOUND AND LIBXSLT_FOUND)
if (WITH_otr AND LIBOTR_FOUND)
add_subdirectory ( otr )
endif (WITH_otr AND LIBOTR_FOUND)
-if (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)
+#[[if (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)
add_subdirectory ( cryptography )
-endif (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)
+endif (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)]]
diff --git a/plugins/addbookmarks/CMakeLists.txt b/plugins/addbookmarks/CMakeLists.txt
index 84fe18c..95e6daa 100644
--- a/plugins/addbookmarks/CMakeLists.txt
+++ b/plugins/addbookmarks/CMakeLists.txt
@@ -8,10 +8,10 @@ ${KOPETE_INCLUDES}
set(kopete_addbookmarks_PART_SRCS addbookmarksplugin.cpp addbookmarksprefssettings.cpp )
-kde4_add_plugin(kopete_addbookmarks ${kopete_addbookmarks_PART_SRCS})
+add_library(kopete_addbookmarks MODULE ${kopete_addbookmarks_PART_SRCS})
-target_link_libraries(kopete_addbookmarks ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kopete_addbookmarks KF5::KIOCore kopete )
install(TARGETS kopete_addbookmarks DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -20,13 +20,13 @@ install(TARGETS kopete_addbookmarks DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_addbookmarks_PART_SRCS addbookmarkspreferences.cpp addbookmarksprefssettings.cpp )
-kde4_add_ui_files(kcm_kopete_addbookmarks_PART_SRCS addbookmarksprefsui.ui )
+ki18n_wrap_ui(kcm_kopete_addbookmarks_PART_SRCS addbookmarksprefsui.ui )
-kde4_add_plugin(kcm_kopete_addbookmarks ${kcm_kopete_addbookmarks_PART_SRCS})
+add_library(kcm_kopete_addbookmarks MODULE ${kcm_kopete_addbookmarks_PART_SRCS})
-target_link_libraries(kcm_kopete_addbookmarks kopete ${KDE4_KUTILS_LIBS} )
+target_link_libraries(kcm_kopete_addbookmarks kopete )
install(TARGETS kcm_kopete_addbookmarks DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/alias/CMakeLists.txt b/plugins/alias/CMakeLists.txt
index 015da6c..995277d 100644
--- a/plugins/alias/CMakeLists.txt
+++ b/plugins/alias/CMakeLists.txt
@@ -7,10 +7,10 @@ ${KOPETE_INCLUDES}
set(kopete_alias_PART_SRCS aliasplugin.cpp )
-kde4_add_plugin(kopete_alias ${kopete_alias_PART_SRCS})
+add_library(kopete_alias MODULE ${kopete_alias_PART_SRCS})
-target_link_libraries(kopete_alias ${KDE4_KDECORE_LIBS} kopete )
+target_link_libraries(kopete_alias KF5::KDELibs4Support kopete )
install(TARGETS kopete_alias DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -19,13 +19,13 @@ install(TARGETS kopete_alias DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_alias_PART_SRCS aliaspreferences.cpp editaliasdialog.cpp )
-kde4_add_ui_files(kcm_kopete_alias_PART_SRCS aliasdialogbase.ui aliasdialog.ui )
+ki18n_wrap_ui(kcm_kopete_alias_PART_SRCS aliasdialogbase.ui aliasdialog.ui )
-kde4_add_plugin(kcm_kopete_alias ${kcm_kopete_alias_PART_SRCS})
+add_library(kcm_kopete_alias MODULE ${kcm_kopete_alias_PART_SRCS})
-target_link_libraries(kcm_kopete_alias ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_alias kopete )
install(TARGETS kcm_kopete_alias DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/autoreplace/CMakeLists.txt b/plugins/autoreplace/CMakeLists.txt
index 3c930bb..89b453d 100644
--- a/plugins/autoreplace/CMakeLists.txt
+++ b/plugins/autoreplace/CMakeLists.txt
@@ -9,10 +9,10 @@ ${KOPETE_INCLUDES}
set(kopete_autoreplace_PART_SRCS autoreplaceplugin.cpp autoreplaceconfig.cpp )
-kde4_add_plugin(kopete_autoreplace ${kopete_autoreplace_PART_SRCS})
+add_library(kopete_autoreplace MODULE ${kopete_autoreplace_PART_SRCS})
-target_link_libraries(kopete_autoreplace ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries(kopete_autoreplace kopete )
install(TARGETS kopete_autoreplace DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -21,13 +21,13 @@ install(TARGETS kopete_autoreplace DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_autoreplace_PART_SRCS autoreplacepreferences.cpp autoreplaceconfig.cpp )
-kde4_add_ui_files(kcm_kopete_autoreplace_PART_SRCS autoreplaceprefs.ui )
+ki18n_wrap_ui(kcm_kopete_autoreplace_PART_SRCS autoreplaceprefs.ui )
-kde4_add_plugin(kcm_kopete_autoreplace ${kcm_kopete_autoreplace_PART_SRCS})
+add_library(kcm_kopete_autoreplace MODULE ${kcm_kopete_autoreplace_PART_SRCS})
-target_link_libraries(kcm_kopete_autoreplace ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_autoreplace kopete )
install(TARGETS kcm_kopete_autoreplace DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/autoreplace/icons/CMakeLists.txt b/plugins/autoreplace/icons/CMakeLists.txt
index c62b24b..e31e728 100644
--- a/plugins/autoreplace/icons/CMakeLists.txt
+++ b/plugins/autoreplace/icons/CMakeLists.txt
@@ -1,7 +1,7 @@
########### install files ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/plugins/contactnotes/CMakeLists.txt b/plugins/contactnotes/CMakeLists.txt
index 3742e4b..08262a4 100644
--- a/plugins/contactnotes/CMakeLists.txt
+++ b/plugins/contactnotes/CMakeLists.txt
@@ -8,10 +8,10 @@ ${KOPETE_INCLUDES}
set(kopete_contactnotes_PART_SRCS contactnotesplugin.cpp contactnotesedit.cpp )
-kde4_add_plugin(kopete_contactnotes ${kopete_contactnotes_PART_SRCS})
+add_library(kopete_contactnotes MODULE ${kopete_contactnotes_PART_SRCS})
-target_link_libraries(kopete_contactnotes ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kopete_contactnotes KF5::KIOCore kopete )
install(TARGETS kopete_contactnotes DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/cryptography/CMakeLists.txt b/plugins/cryptography/CMakeLists.txt
index f1faffa..9cc6e48 100644
--- a/plugins/cryptography/CMakeLists.txt
+++ b/plugins/cryptography/CMakeLists.txt
@@ -9,15 +9,15 @@ set(kopete_cryptography_PART_SRCS
exportkeys.cpp
cryptographymessagehandler.cpp )
-kde4_add_kcfg_files(kopete_cryptography_PART_SRCS
+kconfig_add_kcfg_files(kopete_cryptography_PART_SRCS
cryptographysettings.kcfgc
)
-kde4_add_ui_files(kopete_cryptography_PART_SRCS kabckeyselectorbase.ui exportkeysbase.ui )
+ki18n_wrap_ui(kopete_cryptography_PART_SRCS kabckeyselectorbase.ui exportkeysbase.ui )
-kde4_add_plugin(kopete_cryptography ${kopete_cryptography_PART_SRCS})
+add_library(kopete_cryptography MODULE ${kopete_cryptography_PART_SRCS})
-target_link_libraries(kopete_cryptography ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kopete ${KLEOPATRA_LIBRARIES} ${KDE4_KABC_LIBS} ${QGPGME_LIBRARIES} )
+target_link_libraries(kopete_cryptography Qt5::Gui KF5::KDELibs4Support kopete ${KLEOPATRA_LIBRARIES} ${KDE4_KABC_LIBS} ${QGPGME_LIBRARIES} )
install(TARGETS kopete_cryptography DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -26,21 +26,21 @@ install(TARGETS kopete_cryptography DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_cryptography_PART_SRCS cryptographypreferences.cpp )
-kde4_add_kcfg_files(kcm_kopete_cryptography_PART_SRCS
+kconfig_add_kcfg_files(kcm_kopete_cryptography_PART_SRCS
cryptographysettings.kcfgc
)
-kde4_add_plugin(kcm_kopete_cryptography ${kcm_kopete_cryptography_PART_SRCS})
+add_library(kcm_kopete_cryptography MODULE ${kcm_kopete_cryptography_PART_SRCS})
target_link_libraries(
kcm_kopete_cryptography
kopete
${KLEOPATRA_LIBRARIES}
- ${KDE4_KDECORE_LIBS}
- ${KDE4_KDEUI_LIBS}
- ${KDE4_KUTILS_LIBS}
- ${QT_QTCORE_LIBRARY}
- ${QT_QTGUI_LIBRARY}
+ KF5::KDELibs4Support
+
+
+ Qt5::Core
+ Qt5::Gui
)
install(TARGETS kcm_kopete_cryptography DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/highlight/CMakeLists.txt b/plugins/highlight/CMakeLists.txt
index 4e2017f..f47404a 100644
--- a/plugins/highlight/CMakeLists.txt
+++ b/plugins/highlight/CMakeLists.txt
@@ -10,10 +10,10 @@ ${KOPETE_INCLUDES}
set(kopete_highlight_PART_SRCS highlightplugin.cpp highlightconfig.cpp filter.cpp )
-kde4_add_plugin(kopete_highlight ${kopete_highlight_PART_SRCS})
+add_library(kopete_highlight MODULE ${kopete_highlight_PART_SRCS})
-target_link_libraries(kopete_highlight ${KDE4_KDEUI_LIBS} kopete ${QT_QTXML_LIBRARY})
+target_link_libraries(kopete_highlight kopete Qt5::Xml)
install(TARGETS kopete_highlight DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -22,13 +22,12 @@ install(TARGETS kopete_highlight DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_highlight_PART_SRCS highlightpreferences.cpp filter.cpp highlightconfig.cpp )
-kde4_add_ui_files(kcm_kopete_highlight_PART_SRCS highlightprefsbase.ui )
+ki18n_wrap_ui(kcm_kopete_highlight_PART_SRCS highlightprefsbase.ui )
-kde4_add_plugin(kcm_kopete_highlight ${kcm_kopete_highlight_PART_SRCS})
+add_library(kcm_kopete_highlight MODULE ${kcm_kopete_highlight_PART_SRCS})
-
-target_link_libraries(kcm_kopete_highlight ${QT_QTXML_LIBRARY} ${KDE4_KUTILS_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS})
+target_link_libraries(kcm_kopete_highlight KF5::NotifyConfig ${QT_QTXML_LIBRARY})
install(TARGETS kcm_kopete_highlight DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/highlight/icons/CMakeLists.txt b/plugins/highlight/icons/CMakeLists.txt
index 1a9fa43..8aee586 100644
--- a/plugins/highlight/icons/CMakeLists.txt
+++ b/plugins/highlight/icons/CMakeLists.txt
@@ -1,2 +1,2 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/plugins/history/CMakeLists.txt b/plugins/history/CMakeLists.txt
index 015df95..7c1e7ca 100644
--- a/plugins/history/CMakeLists.txt
+++ b/plugins/history/CMakeLists.txt
@@ -14,15 +14,15 @@ set(kopete_history_PART_SRCS
historyguiclient.cpp
historyimport.cpp )
-kde4_add_ui_files(kopete_history_PART_SRCS historyviewer.ui )
+ki18n_wrap_ui(kopete_history_PART_SRCS historyviewer.ui )
-kde4_add_kcfg_files(kopete_history_PART_SRCS historyconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_history_PART_SRCS historyconfig.kcfgc )
-kde4_add_plugin(kopete_history ${kopete_history_PART_SRCS})
+add_library(kopete_history MODULE ${kopete_history_PART_SRCS})
-target_link_libraries(kopete_history ${KDE4_KHTML_LIBS} kopete )
+target_link_libraries(kopete_history KF5::KHtml kopete )
install(TARGETS kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -31,15 +31,15 @@ install(TARGETS kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_history_PART_SRCS historypreferences.cpp )
-kde4_add_ui_files(kcm_kopete_history_PART_SRCS historyprefsui.ui )
+ki18n_wrap_ui(kcm_kopete_history_PART_SRCS historyprefsui.ui )
-kde4_add_kcfg_files(kcm_kopete_history_PART_SRCS historyconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_history_PART_SRCS historyconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_history ${kcm_kopete_history_PART_SRCS})
+add_library(kcm_kopete_history MODULE ${kcm_kopete_history_PART_SRCS})
-target_link_libraries(kcm_kopete_history ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_history kopete )
install(TARGETS kcm_kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/history2/CMakeLists.txt b/plugins/history2/CMakeLists.txt
index 195edf6..8b3b754 100644
--- a/plugins/history2/CMakeLists.txt
+++ b/plugins/history2/CMakeLists.txt
@@ -13,15 +13,15 @@ set(kopete_history2_PART_SRCS
history2import.cpp
)
-kde4_add_ui_files(kopete_history2_PART_SRCS history2viewer.ui )
+ki18n_wrap_ui(kopete_history2_PART_SRCS history2viewer.ui )
-kde4_add_kcfg_files(kopete_history2_PART_SRCS history2config.kcfgc )
+kconfig_add_kcfg_files(kopete_history2_PART_SRCS history2config.kcfgc )
-kde4_add_plugin(kopete_history2 ${kopete_history2_PART_SRCS})
+add_library(kopete_history2 MODULE ${kopete_history2_PART_SRCS})
-target_link_libraries(kopete_history2 ${KDE4_KHTML_LIBS} kopete ${QT_QTSQL_LIBRARY})
+target_link_libraries(kopete_history2 KF5::KHtml kopete Qt5::Sql)
install(TARGETS kopete_history2 DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -30,15 +30,15 @@ install(TARGETS kopete_history2 DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_history2_PART_SRCS history2preferences.cpp history2logger.cpp history2import.cpp)
-kde4_add_ui_files(kcm_kopete_history2_PART_SRCS history2prefsui.ui )
+ki18n_wrap_ui(kcm_kopete_history2_PART_SRCS history2prefsui.ui )
-kde4_add_kcfg_files(kcm_kopete_history2_PART_SRCS history2config.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_history2_PART_SRCS history2config.kcfgc )
-kde4_add_plugin(kcm_kopete_history2 ${kcm_kopete_history2_PART_SRCS})
+add_library(kcm_kopete_history2 MODULE ${kcm_kopete_history2_PART_SRCS})
-target_link_libraries(kcm_kopete_history2 ${KDE4_KUTILS_LIBS} ${KDE4_KHTML_LIBS} kopete ${QT_QTSQL_LIBRARY})
+target_link_libraries(kcm_kopete_history2 KF5::KHtml kopete Qt5::Sql)
install(TARGETS kcm_kopete_history2 DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/latex/CMakeLists.txt b/plugins/latex/CMakeLists.txt
index 7ab71de..45f401a 100644
--- a/plugins/latex/CMakeLists.txt
+++ b/plugins/latex/CMakeLists.txt
@@ -10,12 +10,12 @@ ${KOPETE_INCLUDES}
set(kopete_latex_PART_SRCS latexplugin.cpp latexguiclient.cpp )
-kde4_add_kcfg_files(kopete_latex_PART_SRCS latexconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_latex_PART_SRCS latexconfig.kcfgc )
-kde4_add_plugin(kopete_latex ${kopete_latex_PART_SRCS})
+add_library(kopete_latex MODULE ${kopete_latex_PART_SRCS})
-target_link_libraries(kopete_latex ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries(kopete_latex kopete )
install(TARGETS kopete_latex DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -24,15 +24,15 @@ install(TARGETS kopete_latex DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_latex_PART_SRCS latexpreferences.cpp )
-kde4_add_ui_files(kcm_kopete_latex_PART_SRCS latexprefsbase.ui )
+ki18n_wrap_ui(kcm_kopete_latex_PART_SRCS latexprefsbase.ui )
-kde4_add_kcfg_files(kcm_kopete_latex_PART_SRCS latexconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_latex_PART_SRCS latexconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_latex ${kcm_kopete_latex_PART_SRCS})
+add_library(kcm_kopete_latex MODULE ${kcm_kopete_latex_PART_SRCS})
-target_link_libraries(kcm_kopete_latex ${KDE4_KUTILS_LIBS} ${KDE4_KIO_LIBS})
+target_link_libraries(kcm_kopete_latex KF5::KIOCore)
install(TARGETS kcm_kopete_latex DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/latex/icons/CMakeLists.txt b/plugins/latex/icons/CMakeLists.txt
index 321add4..51bab59 100644
--- a/plugins/latex/icons/CMakeLists.txt
+++ b/plugins/latex/icons/CMakeLists.txt
@@ -1,3 +1,3 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/plugins/nowlistening/CMakeLists.txt b/plugins/nowlistening/CMakeLists.txt
index e8f33bd..4b5d024 100644
--- a/plugins/nowlistening/CMakeLists.txt
+++ b/plugins/nowlistening/CMakeLists.txt
@@ -21,12 +21,12 @@ set(kopete_nowlistening_PART_SRCS
nlmpris2.cpp
)
-kde4_add_kcfg_files(kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfgc )
-kde4_add_plugin(kopete_nowlistening ${kopete_nowlistening_PART_SRCS})
+add_library(kopete_nowlistening MODULE ${kopete_nowlistening_PART_SRCS})
-target_link_libraries(kopete_nowlistening ${KDE4_KIO_LIBS} kopete)
+target_link_libraries(kopete_nowlistening KF5::KIOCore kopete)
if(XMMS_FOUND)
target_link_libraries( kopete_nowlistening ${XMMS_LDFLAGS} )
@@ -39,15 +39,15 @@ install(TARGETS kopete_nowlistening DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_nowlistening_PART_SRCS nowlisteningpreferences.cpp )
-kde4_add_ui_files(kcm_kopete_nowlistening_PART_SRCS nowlisteningprefs.ui )
+ki18n_wrap_ui(kcm_kopete_nowlistening_PART_SRCS nowlisteningprefs.ui )
-kde4_add_kcfg_files(kcm_kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_nowlistening_PART_SRCS nowlisteningconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_nowlistening ${kcm_kopete_nowlistening_PART_SRCS})
+add_library(kcm_kopete_nowlistening MODULE ${kcm_kopete_nowlistening_PART_SRCS})
-target_link_libraries(kcm_kopete_nowlistening ${KDE4_KUTILS_LIBS})
+target_link_libraries(kcm_kopete_nowlistening )
install(TARGETS kcm_kopete_nowlistening DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/otr/CMakeLists.txt b/plugins/otr/CMakeLists.txt
index f291e55..393924e 100644
--- a/plugins/otr/CMakeLists.txt
+++ b/plugins/otr/CMakeLists.txt
@@ -6,11 +6,11 @@ include_directories(${LIBOTR_INCLUDE_DIR} ${KOPETE_INCLUDES})
set(kopete_otr_PART_SRCS otrguiclient.cpp otrplugin.cpp)
-kde4_add_kcfg_files(kopete_otr_PART_SRCS kopete_otr.kcfgc)
+kconfig_add_kcfg_files(kopete_otr_PART_SRCS kopete_otr.kcfgc)
-kde4_add_plugin(kopete_otr ${kopete_otr_PART_SRCS})
+add_library(kopete_otr MODULE ${kopete_otr_PART_SRCS})
-target_link_libraries(kopete_otr ${KDE4_KDEUI_LIBS} kopete kopete_otr_shared ${LIBOTR_LIBRARY})
+target_link_libraries(kopete_otr kopete kopete_otr_shared ${LIBOTR_LIBRARY})
install(TARGETS kopete_otr DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -18,13 +18,13 @@ install(TARGETS kopete_otr DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_otr_PART_SRCS otrpreferences.cpp)
-kde4_add_ui_files(kcm_kopete_otr_PART_SRCS otrprefs.ui)
+ki18n_wrap_ui(kcm_kopete_otr_PART_SRCS otrprefs.ui)
-kde4_add_kcfg_files(kcm_kopete_otr_PART_SRCS ${kotr_PART_SRCS} kopete_otr.kcfgc)
+kconfig_add_kcfg_files(kcm_kopete_otr_PART_SRCS ${kotr_PART_SRCS} kopete_otr.kcfgc)
-kde4_add_plugin(kcm_kopete_otr ${kcm_kopete_otr_PART_SRCS})
+add_library(kcm_kopete_otr MODULE ${kcm_kopete_otr_PART_SRCS})
-target_link_libraries(kcm_kopete_otr ${KDE4_KDEUI_LIBS} kopete kopete_otr_shared ${LIBOTR_LIBRARY})
+target_link_libraries(kcm_kopete_otr kopete kopete_otr_shared ${LIBOTR_LIBRARY})
install(TARGETS kcm_kopete_otr DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -36,11 +36,11 @@ set(kopete_otr_shared_LIB_SRCS
authenticationwizard.cpp
privkeypopup.cpp)
-kde4_add_ui_files(kopete_otr_shared_LIB_SRCS privkeypopup.ui)
+ki18n_wrap_ui(kopete_otr_shared_LIB_SRCS privkeypopup.ui)
-kde4_add_library(kopete_otr_shared SHARED ${kopete_otr_shared_LIB_SRCS})
+add_library(kopete_otr_shared SHARED ${kopete_otr_shared_LIB_SRCS})
-target_link_libraries(kopete_otr_shared kopete ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ${LIBOTR_LIBRARY})
+target_link_libraries(kopete_otr_shared kopete KF5::KIOCore ${LIBOTR_LIBRARY})
set_target_properties(kopete_otr_shared PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS kopete_otr_shared ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/plugins/otr/icons/CMakeLists.txt b/plugins/otr/icons/CMakeLists.txt
index 106884f..832a8e5 100644
--- a/plugins/otr/icons/CMakeLists.txt
+++ b/plugins/otr/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${ICON_INSTALL_DIR} )
+ecm_install_icons( ${ICON_INSTALL_DIR} )
diff --git a/plugins/pipes/CMakeLists.txt b/plugins/pipes/CMakeLists.txt
index a3ea9ba..c9db859 100644
--- a/plugins/pipes/CMakeLists.txt
+++ b/plugins/pipes/CMakeLists.txt
@@ -5,13 +5,15 @@ include_directories ( ${KOPETE_INCLUDES} )
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS KCMUtils )
+
set (kopete_pipes_PART_SRCS
pipesplugin.cpp
pipesconfig.cpp )
-kde4_add_plugin( kopete_pipes ${kopete_pipes_PART_SRCS})
+add_library(kopete_pipes MODULE ${kopete_pipes_PART_SRCS})
-target_link_libraries( kopete_pipes ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries( kopete_pipes KF5::KIOCore kopete )
install( TARGETS kopete_pipes DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -24,11 +26,15 @@ set ( kcm_kopete_pipes_PART_SRCS
pipesmodel.cpp
pipesconfig.cpp )
-kde4_add_ui_files( kcm_kopete_pipes_PART_SRCS pipesprefsbase.ui )
+ki18n_wrap_ui( kcm_kopete_pipes_PART_SRCS pipesprefsbase.ui )
-kde4_add_plugin( kcm_kopete_pipes ${kcm_kopete_pipes_PART_SRCS} )
+add_library(kcm_kopete_pipes MODULE ${kcm_kopete_pipes_PART_SRCS} )
-target_link_libraries( kcm_kopete_pipes ${KDE4_KUTILS_LIBS} ${KDE4_KIO_LIBS} kopete )
+target_link_libraries( kcm_kopete_pipes
+ KF5::KIOCore
+ KF5::KCMUtils
+ kopete
+)
install( TARGETS kcm_kopete_pipes DESTINATION ${PLUGIN_INSTALL_DIR} )
diff --git a/plugins/pipes/tests/CMakeLists.txt b/plugins/pipes/tests/CMakeLists.txt
index 1018c9d..e7281f5 100644
--- a/plugins/pipes/tests/CMakeLists.txt
+++ b/plugins/pipes/tests/CMakeLists.txt
@@ -5,6 +5,8 @@ set (kopete_pipes_test1_SRCS
main.cpp
test1.cpp )
-kde4_add_unit_test ( kopete_pipes_test1 ${kopete_pipes_test1_SRCS} )
+add_executable ( kopete_pipes_test1 ${kopete_pipes_test1_SRCS} )
+add_test(kopete_pipes_test1 kopete_pipes_test1)
+ecm_mark_as_test(kopete_pipes_test1)
-target_link_libraries ( kopete_pipes_test1 ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY} )
+target_link_libraries ( kopete_pipes_test1 Qt5::Core Qt5::Xml )
diff --git a/plugins/privacy/CMakeLists.txt b/plugins/privacy/CMakeLists.txt
index 2e3d59c..3ec6534 100644
--- a/plugins/privacy/CMakeLists.txt
+++ b/plugins/privacy/CMakeLists.txt
@@ -7,26 +7,26 @@ ${KOPETE_INCLUDES}
#common lib
set(kopete_privacy_LIB_SRCS privacymessagehandler.cpp privacyaccountlistmodel.cpp)
-kde4_add_kcfg_files(kopete_privacy_LIB_SRCS privacyconfig.kcfgc )
-kde4_add_library( kopeteprivacy SHARED ${kopete_privacy_LIB_SRCS})
-target_link_libraries( kopeteprivacy ${KDE4_KDEUI_LIBS} kopete )
+kconfig_add_kcfg_files(kopete_privacy_LIB_SRCS privacyconfig.kcfgc )
+add_library( kopeteprivacy SHARED ${kopete_privacy_LIB_SRCS})
+target_link_libraries( kopeteprivacy kopete )
set_target_properties( kopeteprivacy PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install( TARGETS kopeteprivacy ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
set(kopete_privacy_PART_SRCS privacyplugin.cpp privacyguiclient.cpp)
-kde4_add_plugin(kopete_privacy ${kopete_privacy_PART_SRCS})
-target_link_libraries(kopete_privacy ${KDE4_KDEUI_LIBS} kopete kopeteprivacy )
+add_library(kopete_privacy MODULE ${kopete_privacy_PART_SRCS})
+target_link_libraries(kopete_privacy kopete kopeteprivacy )
install(TARGETS kopete_privacy DESTINATION ${PLUGIN_INSTALL_DIR})
########### next target ###############
set(kcm_kopete_privacy_PART_SRCS privacypreferences.cpp contactselectorwidget.cpp )
-kde4_add_ui_files(kcm_kopete_privacy_PART_SRCS privacydialog.ui contactselectorwidget_base.ui )
-kde4_add_plugin(kcm_kopete_privacy ${kcm_kopete_privacy_PART_SRCS})
-target_link_libraries(kcm_kopete_privacy ${KDE4_KUTILS_LIBS} kopete kopeteprivacy )
+ki18n_wrap_ui(kcm_kopete_privacy_PART_SRCS privacydialog.ui contactselectorwidget_base.ui )
+add_library(kcm_kopete_privacy MODULE ${kcm_kopete_privacy_PART_SRCS})
+target_link_libraries(kcm_kopete_privacy kopete kopeteprivacy )
install(TARGETS kcm_kopete_privacy DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/statistics/CMakeLists.txt b/plugins/statistics/CMakeLists.txt
index a4bb8dc..65fa8da 100644
--- a/plugins/statistics/CMakeLists.txt
+++ b/plugins/statistics/CMakeLists.txt
@@ -9,15 +9,15 @@ set(kopete_statistics_PART_SRCS
statisticsdialog.cpp
statisticscontact.cpp )
-kde4_add_ui_files(kopete_statistics_PART_SRCS statisticswidgetbase.ui )
+ki18n_wrap_ui(kopete_statistics_PART_SRCS statisticswidgetbase.ui )
-qt4_add_dbus_adaptor(kopete_statistics_PART_SRCS org.kde.kopete.Statistics.xml
+qt5_add_dbus_adaptor(kopete_statistics_PART_SRCS org.kde.kopete.Statistics.xml
statisticsplugin.h StatisticsPlugin)
-kde4_add_plugin(kopete_statistics ${kopete_statistics_PART_SRCS})
+add_library(kopete_statistics MODULE ${kopete_statistics_PART_SRCS})
-target_link_libraries(kopete_statistics kopete ${QT_QTSQL_LIBRARY} ${KDE4_KHTML_LIBS} )
+target_link_libraries(kopete_statistics kopete Qt5::Sql KF5::KHtml )
install(TARGETS kopete_statistics DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/texteffect/CMakeLists.txt b/plugins/texteffect/CMakeLists.txt
index 73b424b..894ac6b 100644
--- a/plugins/texteffect/CMakeLists.txt
+++ b/plugins/texteffect/CMakeLists.txt
@@ -10,10 +10,10 @@ ${KOPETE_INCLUDES}
set(kopete_texteffect_PART_SRCS texteffectplugin.cpp texteffectconfig.cpp )
-kde4_add_plugin(kopete_texteffect ${kopete_texteffect_PART_SRCS})
+add_library(kopete_texteffect MODULE ${kopete_texteffect_PART_SRCS})
-target_link_libraries(kopete_texteffect ${KDE4_KDEUI_LIBS} kopete )
+target_link_libraries(kopete_texteffect kopete )
install(TARGETS kopete_texteffect DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -22,13 +22,13 @@ install(TARGETS kopete_texteffect DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_texteffect_PART_SRCS texteffectconfig.cpp texteffectpreferences.cpp )
-kde4_add_ui_files(kcm_kopete_texteffect_PART_SRCS texteffectprefs.ui )
+ki18n_wrap_ui(kcm_kopete_texteffect_PART_SRCS texteffectprefs.ui )
-kde4_add_plugin(kcm_kopete_texteffect ${kcm_kopete_texteffect_PART_SRCS})
+add_library(kcm_kopete_texteffect MODULE ${kcm_kopete_texteffect_PART_SRCS})
-target_link_libraries(kcm_kopete_texteffect ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_texteffect kopete )
install(TARGETS kcm_kopete_texteffect DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/texteffect/icons/CMakeLists.txt b/plugins/texteffect/icons/CMakeLists.txt
index 5e7073f..f9209c4 100644
--- a/plugins/texteffect/icons/CMakeLists.txt
+++ b/plugins/texteffect/icons/CMakeLists.txt
@@ -1,7 +1,7 @@
########### install files ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/plugins/translator/CMakeLists.txt b/plugins/translator/CMakeLists.txt
index 887e8a2..bade9af 100644
--- a/plugins/translator/CMakeLists.txt
+++ b/plugins/translator/CMakeLists.txt
@@ -12,13 +12,13 @@ set(kopete_translator_PART_SRCS
translatorguiclient.cpp
translatorlanguages.cpp )
-kde4_add_kcfg_files(kopete_translator_PART_SRCS translatorconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_translator_PART_SRCS translatorconfig.kcfgc )
-kde4_add_plugin(kopete_translator ${kopete_translator_PART_SRCS})
+add_library(kopete_translator MODULE ${kopete_translator_PART_SRCS})
-target_link_libraries(kopete_translator ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kopete_translator KF5::KIOCore kopete )
install(TARGETS kopete_translator DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -27,15 +27,15 @@ install(TARGETS kopete_translator DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_translator_PART_SRCS translatorpreferences.cpp translatorlanguages.cpp )
-kde4_add_ui_files(kcm_kopete_translator_PART_SRCS translatorprefsbase.ui )
+ki18n_wrap_ui(kcm_kopete_translator_PART_SRCS translatorprefsbase.ui )
-kde4_add_kcfg_files(kcm_kopete_translator_PART_SRCS translatorconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_translator_PART_SRCS translatorconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_translator ${kcm_kopete_translator_PART_SRCS})
+add_library(kcm_kopete_translator MODULE ${kcm_kopete_translator_PART_SRCS})
-target_link_libraries(kcm_kopete_translator ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_translator kopete )
install(TARGETS kcm_kopete_translator DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/plugins/urlpicpreview/CMakeLists.txt b/plugins/urlpicpreview/CMakeLists.txt
index a358f85..d576055 100644
--- a/plugins/urlpicpreview/CMakeLists.txt
+++ b/plugins/urlpicpreview/CMakeLists.txt
@@ -6,16 +6,18 @@ ${KOPETE_INCLUDES}
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS KCMUtils)
+
set(kopete_urlpicpreview_PART_SRCS
# linkpreview.cpp
urlpicpreviewplugin.cpp )
-kde4_add_kcfg_files(kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kcfgc )
-kde4_add_plugin(kopete_urlpicpreview ${kopete_urlpicpreview_PART_SRCS})
+add_library(kopete_urlpicpreview MODULE ${kopete_urlpicpreview_PART_SRCS})
-target_link_libraries(kopete_urlpicpreview ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kopete_urlpicpreview KF5::KDELibs4Support KF5::KIOCore KF5::KCMUtils kopete )
install(TARGETS kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -25,14 +27,14 @@ install(TARGETS kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_urlpicpreview_PART_SRCS
urlpicpreviewpreferences.cpp )
-kde4_add_ui_files(kcm_kopete_urlpicpreview_PART_SRCS urlpicpreviewprefsbase.ui )
+ki18n_wrap_ui(kcm_kopete_urlpicpreview_PART_SRCS urlpicpreviewprefsbase.ui )
-kde4_add_kcfg_files(kcm_kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_urlpicpreview_PART_SRCS urlpicpreviewconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_urlpicpreview ${kcm_kopete_urlpicpreview_PART_SRCS})
+add_library(kcm_kopete_urlpicpreview MODULE ${kcm_kopete_urlpicpreview_PART_SRCS})
-target_link_libraries(kcm_kopete_urlpicpreview ${KDE4_KIO_LIBS} ${KDE4_KUTILS_LIBS} kopete )
+target_link_libraries(kcm_kopete_urlpicpreview KF5::KIOCore kopete )
install(TARGETS kcm_kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -42,5 +44,5 @@ install(TARGETS kcm_kopete_urlpicpreview DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES urlpicpreview.kcfg DESTINATION ${KCFG_INSTALL_DIR})
install( FILES kopete_urlpicpreview.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES kopete_urlpicpreview_config.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog)
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/plugins/webpresence/CMakeLists.txt b/plugins/webpresence/CMakeLists.txt
index d5c0ebd..7d02f31 100644
--- a/plugins/webpresence/CMakeLists.txt
+++ b/plugins/webpresence/CMakeLists.txt
@@ -4,11 +4,11 @@ include_directories(${KOPETE_INCLUDES} ${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_
set(kopete_webpresence_PART_SRCS webpresenceplugin.cpp )
-kde4_add_kcfg_files(kopete_webpresence_PART_SRCS webpresenceconfig.kcfgc )
+kconfig_add_kcfg_files(kopete_webpresence_PART_SRCS webpresenceconfig.kcfgc )
-kde4_add_plugin(kopete_webpresence ${kopete_webpresence_PART_SRCS})
+add_library(kopete_webpresence MODULE ${kopete_webpresence_PART_SRCS})
-target_link_libraries(kopete_webpresence ${KDE4_KIO_LIBS} kopete ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${QT_QTXML_LIBRARY})
+target_link_libraries(kopete_webpresence KF5::KIOCore kopete ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} Qt5::Xml)
install(TARGETS kopete_webpresence DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -17,13 +17,13 @@ install(TARGETS kopete_webpresence DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_webpresence_PART_SRCS webpresencepreferences.cpp )
-kde4_add_ui_files(kcm_kopete_webpresence_PART_SRCS webpresenceprefs.ui )
+ki18n_wrap_ui(kcm_kopete_webpresence_PART_SRCS webpresenceprefs.ui )
-kde4_add_kcfg_files(kcm_kopete_webpresence_PART_SRCS webpresenceconfig.kcfgc )
+kconfig_add_kcfg_files(kcm_kopete_webpresence_PART_SRCS webpresenceconfig.kcfgc )
-kde4_add_plugin(kcm_kopete_webpresence ${kcm_kopete_webpresence_PART_SRCS})
+add_library(kcm_kopete_webpresence MODULE ${kcm_kopete_webpresence_PART_SRCS})
-target_link_libraries(kcm_kopete_webpresence ${KDE4_KUTILS_LIBS} ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kcm_kopete_webpresence KF5::KIOCore kopete )
install(TARGETS kcm_kopete_webpresence DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/bonjour/CMakeLists.txt b/protocols/bonjour/CMakeLists.txt
index c7acede..1253556 100644
--- a/protocols/bonjour/CMakeLists.txt
+++ b/protocols/bonjour/CMakeLists.txt
@@ -8,6 +8,8 @@ add_subdirectory( icons )
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS KIO DNSSD)
+
set(kopete_bonjour_PART_SRCS
bonjourprotocol.cpp
bonjourcontact.cpp
@@ -17,17 +19,17 @@ set(kopete_bonjour_PART_SRCS
bonjourcontactconnection.cpp
)
-kde4_add_ui_files(kopete_bonjour_PART_SRCS
+ki18n_wrap_ui(kopete_bonjour_PART_SRCS
bonjouraddui.ui
)
-kde4_add_ui_files(kopete_bonjour_PART_SRCS
+ki18n_wrap_ui(kopete_bonjour_PART_SRCS
bonjouraccountpreferences.ui
)
-kde4_add_plugin(kopete_bonjour ${kopete_bonjour_PART_SRCS})
+add_library(kopete_bonjour MODULE ${kopete_bonjour_PART_SRCS})
-target_link_libraries(kopete_bonjour ${KDE4_KIO_LIBS} ${KDEPIMLIBS_KPIMIDENTITIES_LIBS} ${KDE4_KDNSSD_LIBS} kopete)
+target_link_libraries(kopete_bonjour KF5::KIOCore KF5::PimIdentities KF5::DNSSD kopete)
if(NOT DISABLE_VIDEOSUPPORT)
target_link_libraries(kopete_bonjour kopete_videodevice)
endif(NOT DISABLE_VIDEOSUPPORT)
diff --git a/protocols/bonjour/icons/CMakeLists.txt b/protocols/bonjour/icons/CMakeLists.txt
index 5c80f46..f182ddc 100644
--- a/protocols/bonjour/icons/CMakeLists.txt
+++ b/protocols/bonjour/icons/CMakeLists.txt
@@ -1,5 +1,6 @@
########### install files ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+#ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons(${ICON_INSTALL_DIR})
diff --git a/protocols/gadu/CMakeLists.txt b/protocols/gadu/CMakeLists.txt
index b6da773..3065090 100644
--- a/protocols/gadu/CMakeLists.txt
+++ b/protocols/gadu/CMakeLists.txt
@@ -1,6 +1,5 @@
add_definitions(-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
-KDE4_NO_ENABLE_FINAL(kopete)
add_subdirectory( icons )
@@ -10,9 +9,12 @@ include_directories( ${KOPETE_INCLUDES} ${LIBGADU_INCLUDE_DIRS} }
########### next target ###############
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS KIO)
+find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Network)
+
set(kopete_gaduui_SRCS)
-kde4_add_ui_files(kopete_gaduui_SRCS
+ki18n_wrap_ui(kopete_gaduui_SRCS
ui/gadueditaccountui.ui
ui/gaduadd.ui
ui/gaduawayui.ui
@@ -40,10 +42,10 @@ set(kopete_gadu_PART_SRCS
gadudcc.cpp )
-kde4_add_plugin(kopete_gadu ${kopete_gadu_PART_SRCS})
+add_library(kopete_gadu MODULE ${kopete_gadu_PART_SRCS})
-target_link_libraries(kopete_gadu ${KDE4_KIO_LIBS} ${QT_QTNETWORK_LIBRARY} ${KDE4_KDE3SUPPORT_LIBS} ${LIBGADU_LIBRARIES} kopete )
+target_link_libraries(kopete_gadu KF5::KIOCore Qt5::Network ${KDE4_KDE3SUPPORT_LIBS} ${LIBGADU_LIBRARIES} kopete )
install(TARGETS kopete_gadu DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/gadu/icons/CMakeLists.txt b/protocols/gadu/icons/CMakeLists.txt
index 5a40212..b4156ab 100644
--- a/protocols/gadu/icons/CMakeLists.txt
+++ b/protocols/gadu/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/groupwise/CMakeLists.txt b/protocols/groupwise/CMakeLists.txt
index 936e9be..079c7d6 100644
--- a/protocols/groupwise/CMakeLists.txt
+++ b/protocols/groupwise/CMakeLists.txt
@@ -21,7 +21,7 @@ set( kopete_groupwise_ui_SRCS
ui/gwchatpropsdialog.cpp
)
-kde4_add_ui_files(kopete_groupwise_ui_SRCS
+ki18n_wrap_ui(kopete_groupwise_ui_SRCS
ui/gwaccountpreferences.ui
ui/gwaddui.ui
ui/gwchatprops.ui
@@ -52,11 +52,11 @@ set(kopete_groupwise_PART_SRCS
gwcontactlist.cpp
)
-kde4_add_plugin(kopete_groupwise ${kopete_groupwise_PART_SRCS})
+add_library(kopete_groupwise MODULE ${kopete_groupwise_PART_SRCS})
link_directories( ${CMAKE_CURRENT_BINARY_DIR}/libgroupwise )
-target_link_libraries(kopete_groupwise ${KDE4_KDECORE_LIBS} ${KDE4_KDE3SUPPORT_LIBS} qgroupwise kopete ${QCA2_LIBRARIES})
+target_link_libraries(kopete_groupwise KF5::KDELibs4Support ${KDE4_KDE3SUPPORT_LIBS} qgroupwise kopete ${QCA2_LIBRARIES})
install(TARGETS kopete_groupwise DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/groupwise/icons/CMakeLists.txt b/protocols/groupwise/icons/CMakeLists.txt
index 5a40212..b4156ab 100644
--- a/protocols/groupwise/icons/CMakeLists.txt
+++ b/protocols/groupwise/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/groupwise/libgroupwise/CMakeLists.txt b/protocols/groupwise/libgroupwise/CMakeLists.txt
index 45d0859..8c97e72 100644
--- a/protocols/groupwise/libgroupwise/CMakeLists.txt
+++ b/protocols/groupwise/libgroupwise/CMakeLists.txt
@@ -80,9 +80,9 @@ set( libqgroupwise_SRCS
)
-kde4_add_library( qgroupwise SHARED ${libqgroupwise_tasks_SRCS} ${libqgroupwise_SRCS} )
+add_library( qgroupwise SHARED ${libqgroupwise_tasks_SRCS} ${libqgroupwise_SRCS} )
-target_link_libraries( qgroupwise ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} ${QCA2_LIBRARIES} ${ZLIB_LIBRARIES} ${KDE4_KDECORE_LIBS})
+target_link_libraries( qgroupwise Qt5::Core Qt5::Gui Qt5::Network ${QT_QT3SUPPORT_LIBRARY} ${QCA2_LIBRARIES} ${ZLIB_LIBRARIES} KF5::KDELibs4Support)
########### install files ###############
diff --git a/protocols/groupwise/libgroupwise/tasks/tests/CMakeLists.txt b/protocols/groupwise/libgroupwise/tasks/tests/CMakeLists.txt
index 44be324..0025d56 100644
--- a/protocols/groupwise/libgroupwise/tasks/tests/CMakeLists.txt
+++ b/protocols/groupwise/libgroupwise/tasks/tests/CMakeLists.txt
@@ -6,9 +6,9 @@ include_directories( ${KOPETE_SOURCE_DIR}/protocols/groupwise/libgroupwise/qca/s
set(task_take_test_SRCS task_take_test.cpp )
-kde4_add_executable(task_take_test ${task_take_test_SRCS})
+add_executable(task_take_test ${task_take_test_SRCS})
-target_link_libraries(task_take_test ${KDE4_KDECORE_LIBS} qt-mt gwtest )
+target_link_libraries(task_take_test KF5::KDELibs4Support qt-mt gwtest )
########### install files ###############
diff --git a/protocols/groupwise/libgroupwise/tests/CMakeLists.txt b/protocols/groupwise/libgroupwise/tests/CMakeLists.txt
index a7272c4..80bacea 100644
--- a/protocols/groupwise/libgroupwise/tests/CMakeLists.txt
+++ b/protocols/groupwise/libgroupwise/tests/CMakeLists.txt
@@ -6,36 +6,36 @@ include_directories( ${KOPETE_SOURCE_DIR}/protocols/groupwise ${KOPETE_SOURCE_DI
set(clientstream_test_SRCS clientstream_test.cpp )
-kde4_add_executable(clientstream_test ${clientstream_test_SRCS})
+add_executable(clientstream_test ${clientstream_test_SRCS})
-target_link_libraries(clientstream_test ${KDE4_KDECORE_LIBS} qt-mt )
+target_link_libraries(clientstream_test KF5::KDELibs4Support qt-mt )
########### next target ###############
set(field_test_SRCS field_test.cpp )
-kde4_add_executable(field_test ${field_test_SRCS})
+add_executable(field_test ${field_test_SRCS})
-target_link_libraries(field_test ${KDE4_KDECORE_LIBS} gwtest qt-mt )
+target_link_libraries(field_test KF5::KDELibs4Support gwtest qt-mt )
########### next target ###############
set(coreprotocol_test_SRCS coreprotocol_test.cpp )
-kde4_add_executable(coreprotocol_test ${coreprotocol_test_SRCS})
+add_executable(coreprotocol_test ${coreprotocol_test_SRCS})
-target_link_libraries(coreprotocol_test ${KDE4_KDECORE_LIBS} gwtest qt-mt )
+target_link_libraries(coreprotocol_test KF5::KDELibs4Support gwtest qt-mt )
########### next target ###############
set(client_test_SRCS client_test.cpp )
-kde4_add_executable(client_test ${client_test_SRCS})
+add_executable(client_test ${client_test_SRCS})
-target_link_libraries(client_test ${KDE4_KDECORE_LIBS} gwtest qt-mt )
+target_link_libraries(client_test KF5::KDELibs4Support gwtest qt-mt )
########### install files ###############
diff --git a/protocols/irc/CMakeLists.txt b/protocols/irc/CMakeLists.txt
index 645a67a..a96135f 100644
--- a/protocols/irc/CMakeLists.txt
+++ b/protocols/irc/CMakeLists.txt
@@ -18,7 +18,7 @@ set(kopeteirc_ui_SRCS
ui/networkconfigwidget.cpp
)
-kde4_add_ui_files(kopeteirc_ui_SRCS
+ki18n_wrap_ui(kopeteirc_ui_SRCS
ui/ircadd.ui
ui/irceditaccount.ui
ui/networkconfig.ui
@@ -40,9 +40,9 @@ set(kopete_irc_SRCS
)
-kde4_add_plugin(kopete_irc ${kopete_irc_SRCS})
+add_library(kopete_irc MODULE ${kopete_irc_SRCS})
-target_link_libraries(kopete_irc ${KDE4_KIO_LIBS} ${QT_QT3SUPPORT_LIBRARY} kopete kirc_client kirc )
+target_link_libraries(kopete_irc KF5::KIOCore ${QT_QT3SUPPORT_LIBRARY} kopete kirc_client kirc )
install(TARGETS kopete_irc DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/irc/icons/CMakeLists.txt b/protocols/irc/icons/CMakeLists.txt
index 5a40212..b4156ab 100644
--- a/protocols/irc/icons/CMakeLists.txt
+++ b/protocols/irc/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/irc/libkirc/CMakeLists.txt b/protocols/irc/libkirc/CMakeLists.txt
index 6873880..6597e21 100644
--- a/protocols/irc/libkirc/CMakeLists.txt
+++ b/protocols/irc/libkirc/CMakeLists.txt
@@ -21,9 +21,9 @@ set(libkirc_SRCS
kernel/kircstdmessages.cpp
)
-kde4_add_library(kirc SHARED ${libkirc_SRCS})
+add_library(kirc SHARED ${libkirc_SRCS})
-target_link_libraries(kirc ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${KDE4_KDECORE_LIBS})
+target_link_libraries(kirc Qt5::Core Qt5::Network KF5::KDELibs4Support)
set_target_properties(kirc PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS kirc ${INSTALL_TARGETS_DEFAULT_ARGS})
@@ -40,9 +40,9 @@ set(libkirc_client_SRCS
client/kircclientsocket.cpp
)
-kde4_add_library(kirc_client SHARED ${libkirc_client_SRCS})
+add_library(kirc_client SHARED ${libkirc_client_SRCS})
-target_link_libraries(kirc_client kirc ${KDE4_KDECORE_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
+target_link_libraries(kirc_client kirc KF5::KDELibs4Support Qt5::Core Qt5::Network)
set_target_properties(kirc_client PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS kirc_client ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/protocols/irc/libkirc/client/CMakeLists.txt b/protocols/irc/libkirc/client/CMakeLists.txt
index 4dc9340..523e088 100644
--- a/protocols/irc/libkirc/client/CMakeLists.txt
+++ b/protocols/irc/libkirc/client/CMakeLists.txt
@@ -18,9 +18,9 @@ set(libkirc_client_SRCS
)
-kde4_add_library(kirc_client SHARED ${libkirc_client_SRCS})
+add_library(kirc_client SHARED ${libkirc_client_SRCS})
-target_link_libraries(kirc_client kirc ${KDE4_KDECORE_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
+target_link_libraries(kirc_client kirc KF5::KDELibs4Support Qt5::Core Qt5::Network)
set_target_properties(kirc_client PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS kirc_client ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/protocols/jabber/CMakeLists.txt b/protocols/jabber/CMakeLists.txt
index 2764ccb..fcd47f2 100644
--- a/protocols/jabber/CMakeLists.txt
+++ b/protocols/jabber/CMakeLists.txt
@@ -102,7 +102,7 @@ if(BUILD_JINGLE)
)
endif(BUILD_JINGLE)
-kde4_add_ui_files(kopete_jabber_ui_SRCS ${kopete_jabber_ui_files})
+ki18n_wrap_ui(kopete_jabber_ui_SRCS ${kopete_jabber_ui_files})
set(kopete_jabber_PART_SRCS
tasks/jt_getlastactivity.cpp
@@ -161,10 +161,10 @@ if(BUILD_JINGLE)
)
endif(BUILD_JINGLE)
-kde4_add_plugin(kopete_jabber ${kopete_jabber_PART_SRCS})
+add_library(kopete_jabber MODULE ${kopete_jabber_PART_SRCS})
-target_link_libraries(kopete_jabber ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${QCA2_LIBRARIES} ${QJSON_LIBRARIES} ${KDE4_SOLID_LIBS} kopete iris_kopete)
+target_link_libraries(kopete_jabber KF5::KIOCore ${QCA2_LIBRARIES} kopete iris_kopete)
if(BUILD_JINGLE)
target_link_libraries(kopete_jabber ${LIBORTP_LIBRARY} ${ASOUND_LIBRARY} ${SPEEX_LIBRARY})
endif(BUILD_JINGLE)
diff --git a/protocols/jabber/icons/CMakeLists.txt b/protocols/jabber/icons/CMakeLists.txt
index 321add4..51bab59 100644
--- a/protocols/jabber/icons/CMakeLists.txt
+++ b/protocols/jabber/icons/CMakeLists.txt
@@ -1,3 +1,3 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/jabber/kioslave/CMakeLists.txt b/protocols/jabber/kioslave/CMakeLists.txt
index a6155c3..cea1cd5 100644
--- a/protocols/jabber/kioslave/CMakeLists.txt
+++ b/protocols/jabber/kioslave/CMakeLists.txt
@@ -6,10 +6,10 @@
set(kio_jabberdisco_PART_SRCS jabberdisco.cpp )
-kde4_add_plugin(kio_jabberdisco ${kio_jabberdisco_PART_SRCS})
+add_library(kio_jabberdisco MODULE ${kio_jabberdisco_PART_SRCS})
-target_link_libraries(kio_jabberdisco ${KDE4_KIO_LIBS} jabberclient iris_local )
+target_link_libraries(kio_jabberdisco KF5::KIOCore jabberclient iris_local )
install(TARGETS kio_jabberdisco DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/jabber/libiris/CMakeLists.txt b/protocols/jabber/libiris/CMakeLists.txt
index 7ea3075..7c8f31c 100644
--- a/protocols/jabber/libiris/CMakeLists.txt
+++ b/protocols/jabber/libiris/CMakeLists.txt
@@ -231,9 +231,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90")
endif(CMAKE_COMPILER_IS_GNUCXX)
-kde4_add_library(iris_kopete STATIC ${libiris_SRCS})
+add_library(iris_kopete STATIC ${libiris_SRCS})
-set(iris_kopete_libs ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY}
+set(iris_kopete_libs Qt5::Core Qt5::Network Qt5::Xml
${IDN_LIBRARIES} ${QCA2_LIBRARIES} ${ZLIB_LIBRARIES} )
if(WIN32)
diff --git a/protocols/jabber/libiris/src/jdns/src/qjdns/CMakeLists.txt b/protocols/jabber/libiris/src/jdns/src/qjdns/CMakeLists.txt
index ef464bb..b1454aa 100644
--- a/protocols/jabber/libiris/src/jdns/src/qjdns/CMakeLists.txt
+++ b/protocols/jabber/libiris/src/jdns/src/qjdns/CMakeLists.txt
@@ -6,7 +6,7 @@ set(qjdns_MOC_HDRS
)
if(NOT Qt5Core_FOUND)
- qt4_wrap_cpp(qjdns_MOC_SRCS ${qjdns_MOC_HDRS})
+ qt5_wrap_cpp(qjdns_MOC_SRCS ${qjdns_MOC_HDRS})
endif()
set(qjdns_SRCS
diff --git a/protocols/jabber/libiris/src/jdns/tools/jdns/CMakeLists.txt b/protocols/jabber/libiris/src/jdns/tools/jdns/CMakeLists.txt
index 89cadbc..8ba0bb9 100644
--- a/protocols/jabber/libiris/src/jdns/tools/jdns/CMakeLists.txt
+++ b/protocols/jabber/libiris/src/jdns/tools/jdns/CMakeLists.txt
@@ -3,7 +3,7 @@ set(jdns_tool_MOC_HDRS
)
if(NOT Qt5Core_FOUND)
- qt4_wrap_cpp(jdns_tool_MOC_SRCS ${jdns_tool_MOC_HDRS})
+ qt5_wrap_cpp(jdns_tool_MOC_SRCS ${jdns_tool_MOC_HDRS})
endif()
set(jdns_tool_SRCS
diff --git a/protocols/meanwhile/CMakeLists.txt b/protocols/meanwhile/CMakeLists.txt
index 365eb44..13358a9 100644
--- a/protocols/meanwhile/CMakeLists.txt
+++ b/protocols/meanwhile/CMakeLists.txt
@@ -15,16 +15,16 @@ set(kopete_meanwhile_PART_SRCS
meanwhileeditaccountwidget.cpp
meanwhilesession.cpp )
-kde4_add_ui_files(kopete_meanwhile_PART_SRCS
+ki18n_wrap_ui(kopete_meanwhile_PART_SRCS
ui/meanwhileaddcontact.ui
ui/meanwhileeditaccount.ui
)
-kde4_add_plugin(kopete_meanwhile ${kopete_meanwhile_PART_SRCS})
+add_library(kopete_meanwhile MODULE ${kopete_meanwhile_PART_SRCS})
target_link_libraries(kopete_meanwhile
- ${KDE4_KDECORE_LIBS} ${GLIB2_LIBRARIES} ${LIBMEANWHILE_LIBRARY}
- ${KDE4_KDEUI_LIBS} ${QT_QTNETWORK_LIBRARY}
+ KF5::KDELibs4Support ${GLIB2_LIBRARIES} ${LIBMEANWHILE_LIBRARY}
+ Qt5::Network
kopete)
install(TARGETS kopete_meanwhile DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/meanwhile/icons/CMakeLists.txt b/protocols/meanwhile/icons/CMakeLists.txt
index 5a40212..b4156ab 100644
--- a/protocols/meanwhile/icons/CMakeLists.txt
+++ b/protocols/meanwhile/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/oscar/CMakeLists.txt b/protocols/oscar/CMakeLists.txt
index e75b15b..4d33cb1 100644
--- a/protocols/oscar/CMakeLists.txt
+++ b/protocols/oscar/CMakeLists.txt
@@ -30,14 +30,14 @@ set(kopete_oscar_LIB_SRCS
oscarstatusmanager.cpp
nscainfoevent.cpp)
-kde4_add_ui_files(kopete_oscar_LIB_SRCS
+ki18n_wrap_ui(kopete_oscar_LIB_SRCS
oscarencodingselectionbase.ui
oscarlistcontactsbase.ui
)
-kde4_add_library(kopete_oscar SHARED ${kopete_oscar_LIB_SRCS})
+add_library(kopete_oscar SHARED ${kopete_oscar_LIB_SRCS})
-target_link_libraries(kopete_oscar ${KDE4_KIO_LIBS} kopete oscar)
+target_link_libraries(kopete_oscar KF5::KIOCore kopete oscar)
set_target_properties(kopete_oscar PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS kopete_oscar ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/protocols/oscar/aim/CMakeLists.txt b/protocols/oscar/aim/CMakeLists.txt
index 4828fac..ee99dcc 100644
--- a/protocols/oscar/aim/CMakeLists.txt
+++ b/protocols/oscar/aim/CMakeLists.txt
@@ -16,7 +16,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/../liboscar/tasks
set(kopete_aim_ui_SRCS ui/aimaddcontactpage.cpp ui/aimeditaccountwidget.cpp)
-kde4_add_ui_files(kopete_aim_ui_SRCS
+ki18n_wrap_ui(kopete_aim_ui_SRCS
ui/aimaddcontactui.ui
ui/aiminfobase.ui
ui/aimjoinchatbase.ui
@@ -34,15 +34,15 @@ set(kopete_aim_PART_SRCS
aimjoinchat.cpp
aimchatsession.cpp )
-kde4_add_plugin(kopete_aim ${kopete_aim_PART_SRCS})
+add_library(kopete_aim MODULE ${kopete_aim_PART_SRCS})
target_link_libraries(kopete_aim
kopete_oscar
oscar
kopete
- ${KDE4_KDEUI_LIBS}
- ${QT_QTXML_LIBRARY}
+
+ Qt5::Xml
)
install(TARGETS kopete_aim DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/oscar/icons/CMakeLists.txt b/protocols/oscar/icons/CMakeLists.txt
index 5a40212..b4156ab 100644
--- a/protocols/oscar/icons/CMakeLists.txt
+++ b/protocols/oscar/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/oscar/icq/CMakeLists.txt b/protocols/oscar/icq/CMakeLists.txt
index c1702b2..00b0dd3 100644
--- a/protocols/oscar/icq/CMakeLists.txt
+++ b/protocols/oscar/icq/CMakeLists.txt
@@ -30,7 +30,7 @@ ui/iconcells.cpp
ui/infocombobox.cpp
)
-kde4_add_ui_files(kopete_icq_ui_SRCS
+ki18n_wrap_ui(kopete_icq_ui_SRCS
ui/icqadd.ui
ui/icqgeneralinfo.ui
ui/icqotherinfowidget.ui
@@ -57,15 +57,15 @@ set(kopete_icq_PART_SRCS
xtrazstatusmodel.cpp
xtrazstatusaction.cpp )
-kde4_add_plugin(kopete_icq ${kopete_icq_PART_SRCS})
+add_library(kopete_icq MODULE ${kopete_icq_PART_SRCS})
target_link_libraries(kopete_icq
kopete_oscar
oscar
kopete
- ${KDE4_KDEUI_LIBS}
- ${QT_QTNETWORK_LIBRARY}
+
+ Qt5::Network
)
install(TARGETS kopete_icq DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/oscar/liboscar/CMakeLists.txt b/protocols/oscar/liboscar/CMakeLists.txt
index 37107a9..853a9d7 100644
--- a/protocols/oscar/liboscar/CMakeLists.txt
+++ b/protocols/oscar/liboscar/CMakeLists.txt
@@ -89,9 +89,9 @@ set(liboscar_SRCS
utils/rtf.cc
)
-kde4_add_library( oscar SHARED ${liboscar_SRCS} )
+add_library( oscar SHARED ${liboscar_SRCS} )
-target_link_libraries( oscar ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY} )
+target_link_libraries( oscar KF5::KDELibs4Support Qt5::Gui Qt5::Network Qt5::Xml )
set_target_properties( oscar PROPERTIES VERSION 1.0.0 SOVERSION 1 )
diff --git a/protocols/oscar/liboscar/tests/CMakeLists.txt b/protocols/oscar/liboscar/tests/CMakeLists.txt
index c3a2737..63e7470 100644
--- a/protocols/oscar/liboscar/tests/CMakeLists.txt
+++ b/protocols/oscar/liboscar/tests/CMakeLists.txt
@@ -10,13 +10,15 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
link_directories( ${CMAKE_CURRENT_BINARY_DIR}/../ )
-set(LIBOSCAR_TEST_LIBRARIES ${KDE4_KDECORE_LIBS} oscar ${QT_QTTEST_LIBRARY})
+set(LIBOSCAR_TEST_LIBRARIES KF5::KDELibs4Support oscar Qt5::Test)
########### next target ###############
set(buffertest_SRCS buffertest.cpp )
-kde4_add_unit_test(buffertest ${buffertest_SRCS})
+add_executable(buffertest ${buffertest_SRCS})
+add_test(buffertest buffertest)
+ecm_mark_as_test(buffertest)
target_link_libraries(buffertest ${LIBOSCAR_TEST_LIBRARIES} )
@@ -27,7 +29,9 @@ target_link_libraries(buffertest ${LIBOSCAR_TEST_LIBRARIES} )
set(serverversionstest_SRCS serverversionstest.cpp oscartestbase.cpp )
-kde4_add_unit_test(serverversionstest ${serverversionstest_SRCS})
+add_executable(serverversionstest ${serverversionstest_SRCS})
+add_test(serverversionstest serverversionstest)
+ecm_mark_as_test(serverversionstest)
target_link_libraries(serverversionstest ${LIBOSCAR_TEST_LIBRARIES} )
@@ -38,7 +42,9 @@ target_link_libraries(serverversionstest ${LIBOSCAR_TEST_LIBRARIES} )
set(connectiontest_SRCS connectiontest.cpp oscartestbase.cpp )
-kde4_add_unit_test(connectiontest ${connectiontest_SRCS})
+add_executable(connectiontest ${connectiontest_SRCS})
+add_test(connectiontest connectiontest)
+ecm_mark_as_test(connectiontest)
target_link_libraries(connectiontest ${LIBOSCAR_TEST_LIBRARIES})
@@ -49,7 +55,9 @@ target_link_libraries(connectiontest ${LIBOSCAR_TEST_LIBRARIES})
set(rateinfotest_SRCS rateinfotest.cpp oscartestbase.cpp )
-kde4_add_unit_test(rateinfotest ${rateinfotest_SRCS})
+add_executable(rateinfotest ${rateinfotest_SRCS})
+add_test(rateinfotest rateinfotest)
+ecm_mark_as_test(rateinfotest)
target_link_libraries(rateinfotest ${LIBOSCAR_TEST_LIBRARIES})
@@ -60,7 +68,9 @@ target_link_libraries(rateinfotest ${LIBOSCAR_TEST_LIBRARIES})
set(filetransfertest_SRCS filetransfertest.cpp oscartestbase.cpp )
-kde4_add_unit_test(filetransfertest ${filetransfertest_SRCS})
+add_executable(filetransfertest ${filetransfertest_SRCS})
+add_test(filetransfertest filetransfertest)
+ecm_mark_as_test(filetransfertest)
target_link_libraries(filetransfertest ${LIBOSCAR_TEST_LIBRARIES} )
diff --git a/protocols/qq/CMakeLists.txt b/protocols/qq/CMakeLists.txt
index 00640b2..55fd681 100644
--- a/protocols/qq/CMakeLists.txt
+++ b/protocols/qq/CMakeLists.txt
@@ -16,7 +16,7 @@ set(kopete_qq_ui_SRCS
ui/dlgqqvcard.cpp
)
-kde4_add_ui_files(kopete_qq_ui_SRCS
+ki18n_wrap_ui(kopete_qq_ui_SRCS
ui/qqeditaccountui.ui
ui/qqaddui.ui
ui/qqvcard.ui
@@ -37,9 +37,9 @@ set(kopete_qq_PART_SRCS
)
-kde4_add_plugin(kopete_qq ${kopete_qq_PART_SRCS})
+add_library(kopete_qq MODULE ${kopete_qq_PART_SRCS})
-target_link_libraries(kopete_qq ${KDE4_KIO_LIBS} ${QT_QTNETWORK_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} kopete)
+target_link_libraries(kopete_qq KF5::KIOCore Qt5::Network ${QT_QT3SUPPORT_LIBRARY} kopete)
if(NOT DISABLE_VIDEOSUPPORT)
target_link_libraries(kopete_qq kopete_videodevice)
endif(NOT DISABLE_VIDEOSUPPORT)
diff --git a/protocols/qq/icons/CMakeLists.txt b/protocols/qq/icons/CMakeLists.txt
index 321add4..51bab59 100644
--- a/protocols/qq/icons/CMakeLists.txt
+++ b/protocols/qq/icons/CMakeLists.txt
@@ -1,3 +1,3 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/skype/CMakeLists.txt b/protocols/skype/CMakeLists.txt
index 5b72c63..83aec90 100644
--- a/protocols/skype/CMakeLists.txt
+++ b/protocols/skype/CMakeLists.txt
@@ -14,6 +14,8 @@ include_directories(
${CMAKE_CURRENT_BUILD_DIR}
)
+include(ECMOptionalAddSubdirectory)
+
add_definitions(-DSKYPE_DEBUG_GLOBAL=14311)
########### next target ###############
@@ -23,7 +25,7 @@ set(
libskype/skypedbus/skypeconnection.cpp
)
-QT4_ADD_DBUS_ADAPTOR(
+qt5_add_dbus_adaptor(
skypedbus_SRCS
libskype/skypedbus/com.Skype.API.Client.xml
libskype/skypedbus/skypeconnection.h
@@ -43,7 +45,7 @@ set(
kopete_skype_ui_SRCS
)
-kde4_add_ui_files(
+ki18n_wrap_ui(
kopete_skype_ui_SRCS
ui/skypeaddcontactbase.ui
ui/skypecalldialogbase.ui
@@ -67,22 +69,19 @@ set(
skypeprotocol.cpp
)
-kde4_add_plugin(
- kopete_skype
- ${kopete_skype_SRCS}
-)
+add_library( kopete_skype MODULE ${kopete_skype_SRCS} )
target_link_libraries(
kopete_skype
kopete
- ${KDE4_KDEUI_LIBS}
+
${X11_X11_LIB}
)
########### next target ###############
add_subdirectory( icons )
-macro_optional_add_subdirectory( skypebuttons )
+ecm_optional_add_subdirectory( skypebuttons )
########### install files ###############
diff --git a/protocols/skype/icons/CMakeLists.txt b/protocols/skype/icons/CMakeLists.txt
index ae0931e..c1a5544 100644
--- a/protocols/skype/icons/CMakeLists.txt
+++ b/protocols/skype/icons/CMakeLists.txt
@@ -1,5 +1,5 @@
########### next target ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
########### install files ###############
diff --git a/protocols/skype/skypebuttons/CMakeLists.txt b/protocols/skype/skypebuttons/CMakeLists.txt
index 3d4a170..e8ddd96 100644
--- a/protocols/skype/skypebuttons/CMakeLists.txt
+++ b/protocols/skype/skypebuttons/CMakeLists.txt
@@ -38,10 +38,10 @@ set( skypebuttons_SRCS
qtbrowserplugin/qtbrowserplugin_x11.cpp
)
-QT4_GENERATE_MOC( ${CMAKE_CURRENT_SOURCE_DIR}/skypebuttons.cpp ${CMAKE_CURRENT_BINARY_DIR}/skypebuttons.moc )
+qt5_generate_moc( ${CMAKE_CURRENT_SOURCE_DIR}/skypebuttons.cpp ${CMAKE_CURRENT_BINARY_DIR}/skypebuttons.moc )
-kde4_add_plugin( skypebuttons ${skypebuttons_SRCS} ${qtbrowserplugin_SRC} )
-target_link_libraries( skypebuttons ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} )
+add_library(skypebuttons MODULE ${skypebuttons_SRCS} ${qtbrowserplugin_SRC} )
+target_link_libraries( skypebuttons Qt5::Core Qt5::Gui )
########### install files ###############
diff --git a/protocols/sms/CMakeLists.txt b/protocols/sms/CMakeLists.txt
index b02eba5..37524dc 100644
--- a/protocols/sms/CMakeLists.txt
+++ b/protocols/sms/CMakeLists.txt
@@ -20,17 +20,17 @@ set(kopete_sms_PART_SRCS
services/smssend.cpp
services/smssendprovider.cpp )
-kde4_add_ui3_files( kopete_sms_PART_SRCS
- services/gsmlibprefs.ui
- services/smsclientprefs.ui
- services/smssendprefs.ui
- ui/smsactprefs.ui
- ui/smsuserprefs.ui
- ui/smsadd.ui )
+#kde4_add_ui3_files( kopete_sms_PART_SRCS
+# services/gsmlibprefs.ui
+# services/smsclientprefs.ui
+# services/smssendprefs.ui
+# ui/smsactprefs.ui
+# ui/smsuserprefs.ui
+# ui/smsadd.ui )
-kde4_add_plugin(kopete_sms ${kopete_sms_PART_SRCS})
+add_library(kopete_sms MODULE ${kopete_sms_PART_SRCS})
-target_link_libraries(kopete_sms ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS} kopete )
+target_link_libraries(kopete_sms KF5::KIOCore ${KDE4_KDE3SUPPORT_LIBS} kopete )
install(TARGETS kopete_sms DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES kopete_sms.desktop DESTINATION ${SERVICES_INSTALL_DIR})
diff --git a/protocols/sms/icons/CMakeLists.txt b/protocols/sms/icons/CMakeLists.txt
index 323c538..3fc6a17 100644
--- a/protocols/sms/icons/CMakeLists.txt
+++ b/protocols/sms/icons/CMakeLists.txt
@@ -1,2 +1,2 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/sms/services/CMakeLists.txt b/protocols/sms/services/CMakeLists.txt
index 4371ef2..0939f55 100644
--- a/protocols/sms/services/CMakeLists.txt
+++ b/protocols/sms/services/CMakeLists.txt
@@ -6,12 +6,12 @@ set( kopete_sms_services_SRCS
smsclient.cpp
smssend.cpp
smssendprovider.cpp )
-kde4_add_ui3_files( kopete_sms_services_SRCS
- gsmlibprefs.ui
- smsclientprefs.ui
- smssendprefs.ui )
-#kde4_add_library( kopetesmsservices SHARED ${kopete_sms_services_SRCS} )
-#target_link_libraries(kopetesmsservices ${KDE4_KIO_LIBS} kopete )
+#kde4_add_ui3_files( kopete_sms_services_SRCS
+# gsmlibprefs.ui
+# smsclientprefs.ui
+# smssendprefs.ui )
+#add_library( kopetesmsservices SHARED ${kopete_sms_services_SRCS} )
+#target_link_libraries(kopetesmsservices KF5::KIOCore kopete )
########### install files ###############
diff --git a/protocols/sms/ui/CMakeLists.txt b/protocols/sms/ui/CMakeLists.txt
index 08653cc..5930fa1 100644
--- a/protocols/sms/ui/CMakeLists.txt
+++ b/protocols/sms/ui/CMakeLists.txt
@@ -3,12 +3,12 @@
########### next target ###############
-kde4_add_ui3_files ( uiSrcs
- smsactprefs.ui
- smsuserprefs.ui
- smsadd.ui )
-kde4_add_library( kopetesmsui SHARED ${uiSrcs} )
-target_link_libraries(kopetesmsui ${KDE4_KIO_LIBS} )
+#kde4_add_ui3_files ( uiSrcs
+# smsactprefs.ui
+# smsuserprefs.ui
+# smsadd.ui )
+add_library( kopetesmsui SHARED ${uiSrcs} )
+target_link_libraries(kopetesmsui KF5::KIOCore )
########### install files ###############
install(TARGETS kopetesmsui DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/testbed/CMakeLists.txt b/protocols/testbed/CMakeLists.txt
index 274e3c2..b8d9974 100644
--- a/protocols/testbed/CMakeLists.txt
+++ b/protocols/testbed/CMakeLists.txt
@@ -7,7 +7,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/ui/
########### next target ###############
-
+find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS KIO)
set(kopete_testbed_PART_SRCS
testbedprotocol.cpp
testbedcontact.cpp
@@ -19,18 +19,18 @@ set(kopete_testbed_PART_SRCS
ui/testbedwebcamdialog.cpp
)
-kde4_add_ui_files(kopete_testbed_PART_SRCS
+ki18n_wrap_ui(kopete_testbed_PART_SRCS
testbedaddui.ui
)
-kde4_add_ui_files(kopete_testbed_PART_SRCS
+ki18n_wrap_ui(kopete_testbed_PART_SRCS
testbedaccountpreferences.ui
)
-kde4_add_plugin(kopete_testbed ${kopete_testbed_PART_SRCS})
+add_library(kopete_testbed MODULE ${kopete_testbed_PART_SRCS})
-target_link_libraries(kopete_testbed ${KDE4_KIO_LIBS} kopete)
+target_link_libraries(kopete_testbed KF5::KIOCore kopete)
if(NOT DISABLE_VIDEOSUPPORT)
target_link_libraries(kopete_testbed kopete_videodevice)
endif(NOT DISABLE_VIDEOSUPPORT)
diff --git a/protocols/testbed/icons/CMakeLists.txt b/protocols/testbed/icons/CMakeLists.txt
index 6ab5790..3d06168 100644
--- a/protocols/testbed/icons/CMakeLists.txt
+++ b/protocols/testbed/icons/CMakeLists.txt
@@ -4,7 +4,8 @@
########### install files ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+#ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons(${ICON_INSTALL_DIR})
diff --git a/protocols/winpopup/CMakeLists.txt b/protocols/winpopup/CMakeLists.txt
index 1f1f18d..e5cb9c9 100644
--- a/protocols/winpopup/CMakeLists.txt
+++ b/protocols/winpopup/CMakeLists.txt
@@ -12,7 +12,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/libwinpopup/
set(kopete_wp_ui_SRCS)
-kde4_add_ui_files(kopete_wp_ui_SRCS
+ki18n_wrap_ui(kopete_wp_ui_SRCS
ui/wpaddcontactbase.ui
ui/wpuserinfowidget.ui
ui/wpeditaccountbase.ui
@@ -33,10 +33,10 @@ set(kopete_wp_PART_SRCS
wpuserinfo.cpp )
-kde4_add_plugin(kopete_wp ${kopete_wp_PART_SRCS})
+add_library(kopete_wp MODULE ${kopete_wp_PART_SRCS})
-target_link_libraries(kopete_wp ${KDE4_KIO_LIBS} kopete )
+target_link_libraries(kopete_wp KF5::KIOCore kopete )
install(TARGETS kopete_wp DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/protocols/winpopup/icons/CMakeLists.txt b/protocols/winpopup/icons/CMakeLists.txt
index 323c538..3fc6a17 100644
--- a/protocols/winpopup/icons/CMakeLists.txt
+++ b/protocols/winpopup/icons/CMakeLists.txt
@@ -1,2 +1,2 @@
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/wlm/CMakeLists.txt b/protocols/wlm/CMakeLists.txt
index 8a56933..226dadb 100644
--- a/protocols/wlm/CMakeLists.txt
+++ b/protocols/wlm/CMakeLists.txt
@@ -17,7 +17,7 @@ set(kopete_wlm_ui_SRCS
ui/wlmeditaccountwidget.cpp
)
-kde4_add_ui_files(kopete_wlm_ui_SRCS
+ki18n_wrap_ui(kopete_wlm_ui_SRCS
ui/wlmaddui.ui
ui/wlminfo.ui
ui/wlmaccountpreferences.ui
@@ -39,15 +39,15 @@ set(kopete_wlm_PART_SRCS
wlmtransfermanager.cpp
)
-kde4_add_plugin(kopete_wlm ${kopete_wlm_PART_SRCS})
+add_library(kopete_wlm MODULE ${kopete_wlm_PART_SRCS})
set(kopete_wlm_link_LIBS
- ${KDE4_KDEUI_LIBS}
- ${KDE4_KUTILS_LIBS}
- ${KDE4_KIO_LIBRARY}
+
+
+ KF5::KIOCore
${KDE4_KMIME_LIBS}
- ${QT_QTXML_LIBRARY}
- ${QT_QTNETWORK_LIBRARY}
+ Qt5::Xml
+ Qt5::Network
kopete
${LIBMSN_LIBRARIES}
)
diff --git a/protocols/wlm/icons/CMakeLists.txt b/protocols/wlm/icons/CMakeLists.txt
index fa795ac..742229f 100644
--- a/protocols/wlm/icons/CMakeLists.txt
+++ b/protocols/wlm/icons/CMakeLists.txt
@@ -1 +1 @@
-kde4_install_icons(${DATA_INSTALL_DIR}/kopete/icons)
+ecm_install_icons(${DATA_INSTALL_DIR}/kopete/icons)
diff --git a/protocols/yahoo/CMakeLists.txt b/protocols/yahoo/CMakeLists.txt
index d607eaa..8d7f30e 100644
--- a/protocols/yahoo/CMakeLists.txt
+++ b/protocols/yahoo/CMakeLists.txt
@@ -21,7 +21,7 @@ ui/yahoouserinfodialog.cpp
ui/yahoochatselectordialog.cpp
)
-kde4_add_ui_files(kopete_yahoo_ui_SRCS
+ki18n_wrap_ui(kopete_yahoo_ui_SRCS
ui/yahooadd.ui
ui/yahooinvitelistbase.ui
ui/yahooverifyaccountbase.ui
@@ -47,9 +47,9 @@ set(kopete_yahoo_PART_SRCS
yahoowebcam.cpp )
-kde4_add_plugin(kopete_yahoo ${kopete_yahoo_PART_SRCS})
+add_library(kopete_yahoo MODULE ${kopete_yahoo_PART_SRCS})
-target_link_libraries(kopete_yahoo ${KDE4_KIO_LIBS} kopete kyahoo ${QT_QT3SUPPORT_LIBS} ${JASPER_LIBRARIES})
+target_link_libraries(kopete_yahoo KF5::KIOCore kopete kyahoo ${QT_QT3SUPPORT_LIBS} ${JASPER_LIBRARIES})
if(NOT DISABLE_VIDEOSUPPORT)
target_link_libraries(kopete_yahoo kopete_videodevice)
endif(NOT DISABLE_VIDEOSUPPORT)
diff --git a/protocols/yahoo/icons/CMakeLists.txt b/protocols/yahoo/icons/CMakeLists.txt
index 6ab5790..a46cc44 100644
--- a/protocols/yahoo/icons/CMakeLists.txt
+++ b/protocols/yahoo/icons/CMakeLists.txt
@@ -4,7 +4,7 @@
########### install files ###############
-kde4_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
+ecm_install_icons( ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/protocols/yahoo/libkyahoo/CMakeLists.txt b/protocols/yahoo/libkyahoo/CMakeLists.txt
index 9a08ed6..e5ff4ad 100644
--- a/protocols/yahoo/libkyahoo/CMakeLists.txt
+++ b/protocols/yahoo/libkyahoo/CMakeLists.txt
@@ -74,9 +74,9 @@ if(MINGW)
set_source_files_properties(yahoo_fn.c PROPERTIES COMPILE_FLAGS "--std=c99")
endif(MINGW)
-kde4_add_library( kyahoo SHARED ${libkyahoo_SRCS} )
+add_library( kyahoo SHARED ${libkyahoo_SRCS} )
-target_link_libraries( kyahoo ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${JASPER_LIBRARIES} )
+target_link_libraries( kyahoo KF5::KIOCore Qt5::Xml Qt5::Network ${JASPER_LIBRARIES} )
set_target_properties( kyahoo PROPERTIES VERSION 1.0.0 SOVERSION 1 )
diff --git a/protocols/yahoo/libkyahoo/tests/CMakeLists.txt b/protocols/yahoo/libkyahoo/tests/CMakeLists.txt
index 77c4bbd..d216286 100644
--- a/protocols/yahoo/libkyahoo/tests/CMakeLists.txt
+++ b/protocols/yahoo/libkyahoo/tests/CMakeLists.txt
@@ -9,6 +9,7 @@ link_directories( ${KOPETE_BINARY_DIR}/protocols/yahoo/libkyahoo )
set(clientstream_test_SRCS clientstream_test.cpp )
-kde4_add_executable(clientstream_test TEST ${clientstream_test_SRCS})
+add_executable(clientstream_test ${clientstream_test_SRCS})
+ecm_mark_as_test(clientstream_test)
-target_link_libraries(clientstream_test ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kyahoo )
+target_link_libraries(clientstream_test Qt5::Gui KF5::KDELibs4Support kyahoo )