Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Adapt CMakeLists.txt files for KF5 port

parent 642e5fd9
This diff is collapsed.
......@@ -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})
......
......@@ -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})
......
########### 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)
kde4_install_icons(${ICON_INSTALL_DIR})
ecm_install_icons(${ICON_INSTALL_DIR})
......@@ -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} )
......@@ -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})
......
......@@ -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})
......
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)
......@@ -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 ###############
......
......@@ -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})
......
......@@ -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})
......
......@@ -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})
......@@ -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})
......
......@@ -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})
......
......@@ -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})
......
......@@ -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})
......
......@@ -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)
......
......@@ -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})
......
......@@ -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})
......
......@@ -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}
)
......
......@@ -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} )
......
......@@ -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})
......
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)]]
......@@ -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})
......
......@@ -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})
......
......@@ -9,10 +9,10 @@ ${KOPETE_INCLUDES}