Commit 447b0fb9 authored by Laurent Montel's avatar Laurent Montel 😁

Move in own directory

parent ac36ded4
......@@ -7,8 +7,8 @@ set(kcm_akonadicontact_actions_SRCS
ki18n_wrap_ui(kcm_akonadicontact_actions_SRCS akonadicontactactions.ui)
configure_file( ${Akonadi-Contact_SOURCE_DIR}/src/actions/contactactionssettings.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/contactactionssettings.kcfg @ONLY)
kconfig_add_kcfg_files(kcm_akonadicontact_actions_SRCS ${Akonadi-Contact_SOURCE_DIR}/src/actions/contactactionssettings.kcfgc)
configure_file( ${Akonadi-Contact_SOURCE_DIR}/src/akonadi-contacts/actions/contactactionssettings.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/contactactionssettings.kcfg @ONLY)
kconfig_add_kcfg_files(kcm_akonadicontact_actions_SRCS ${Akonadi-Contact_SOURCE_DIR}/src/akonadi-contacts/actions/contactactionssettings.kcfgc)
add_library(kcm_akonadicontact_actions MODULE ${kcm_akonadicontact_actions_SRCS})
......
add_definitions(-DTRANSLATION_DOMAIN=\"akonadicontact5\")
set( AKONADI_PHONE_DIAL_DEFAULT "UseSkype" )
set( AKONADI_SEND_SMS_DEFAULT "UseSkypeSms" )
add_subdirectory(editor/im)
########### next target ###############
set(akonadicontact_actions_SRCS
actions/dialphonenumberaction.cpp
actions/showaddressaction.cpp
actions/qdialer.cpp
actions/qskypedialer.cpp
actions/sendsmsaction.cpp
actions/smsdialog.cpp
actions/qsflphonedialer.cpp
actions/qekigadialer.cpp
)
configure_file(config-akonadi-contact.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-akonadi-contact.h)
configure_file( actions/contactactionssettings.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/contactactionssettings.kcfg @ONLY)
kconfig_add_kcfg_files(akonadicontact_actions_SRCS actions/contactactionssettings.kcfgc)
set(akonadicontact_customfieldseditor_SRCS
editor/customfieldeditor/customfieldswidget.cpp
editor/customfieldeditor/customfieldeditorwidget.cpp
editor/customfieldeditor/customfieldslistwidget.cpp
editor/customfieldeditor/customfieldslistdelegate.cpp
editor/customfieldeditor/customfieldsmodel.cpp
)
set(akonadicontact_editor_utils_SRCS
editor/utils/utils.cpp
)
set(akonadicontact_editor_widgets_SRCS
editor/widgets/kwidgetlister.cpp
editor/widgets/akonadicontactcombobox.cpp
)
set(akonadicontact_editor_generalinfo_phone_SRCS
editor/generalinfoeditor/phone/phonewidgetlister.cpp
editor/generalinfoeditor/phone/phonewidget.cpp
editor/generalinfoeditor/phone/phonelistwidget.cpp
editor/generalinfoeditor/phone/phonecomboboxtype.cpp
editor/generalinfoeditor/phone/phonetypedialog.cpp
)
set(akonadicontact_editor_generalinfo_web_SRCS
editor/generalinfoeditor/web/webwidgetlister.cpp
editor/generalinfoeditor/web/weblistwidget.cpp
editor/generalinfoeditor/web/webwidget.cpp
)
set(akonadicontact_editor_generalinfo_mail_SRCS
editor/generalinfoeditor/mail/maillistwidget.cpp
editor/generalinfoeditor/mail/mailwidget.cpp
editor/generalinfoeditor/mail/mailwidgetlister.cpp
)
set(akonadicontact_editor_generalinfo_messaging_SRCS
editor/generalinfoeditor/messaging/messaginglistwidget.cpp
editor/generalinfoeditor/messaging/messagingwidget.cpp
editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
)
set(akonadicontact_editor_generalinfo_SRCS
editor/generalinfoeditor/generalinfowidget.cpp
editor/generalinfoeditor/namewidget.cpp
editor/generalinfoeditor/nicknamewidget.cpp
editor/generalinfoeditor/categorieseditwidget.cpp
editor/generalinfoeditor/nameeditdialog.cpp
editor/generalinfoeditor/displaynameeditwidget.cpp
editor/generalinfoeditor/akonadicontactselecttypecombobox.cpp
editor/generalinfoeditor/messageformattingwidget.cpp
${akonadicontact_editor_generalinfo_messaging_SRCS}
${akonadicontact_editor_generalinfo_phone_SRCS}
${akonadicontact_editor_generalinfo_web_SRCS}
${akonadicontact_editor_generalinfo_mail_SRCS}
)
set(akonadicontact_addresslocation_web_editor_SRCS
editor/addresseditor/webengine/addresseslocationengineviewer.cpp
editor/addresseditor/webengine/addresseslocationenginepage.cpp
)
set(akonadicontact_addresslocation_editor_SRCS
${akonadicontact_addresslocation_web_editor_SRCS}
editor/addresseditor/addresslocationwidget.cpp
editor/addresseditor/addresseslocationgrantleeformater.cpp
editor/addresseditor/addressgrantleeobject.cpp
editor/addresseditor/iconnamecache.cpp
editor/addresseditor/addresseslocationwidget.cpp
editor/addresseditor/selectaddresstypecombobox.cpp
editor/addresseditor/addresstypedialog.cpp
)
set(akonadicontact_personal_editor_SRCS
editor/personaleditor/personaleditorwidget.cpp
editor/personaleditor/dateeditwidget.cpp
editor/personaleditor/kdatepickerpopup.cpp
)
set(akonadicontact_business_editor_SRCS
editor/businesseditor/businesseditorwidget.cpp
editor/businesseditor/freebusyeditwidget.cpp
)
set(akonadicontact_editor_SRCS
${akonadicontact_personal_editor_SRCS}
${akonadicontact_editor_utils_SRCS}
${akonadicontact_business_editor_SRCS}
editor/contacteditorwidget.cpp
editor/im/imaddress.cpp
editor/im/improtocols.cpp
editor/widgets/imagewidget.cpp
editor/widgets/preferredlineeditwidget.cpp
)
set(akonadicontact_attributes_SRCS
attributes/contactmetadataattribute.cpp
attributes/attributeregistrar.cpp
)
set(akonadicontact_job_SRCS
job/contactgroupexpandjob.cpp
job/contactgroupsearchjob.cpp
job/contactsearchjob.cpp
)
set(akonadicontact_LIB_SRC
${akonadicontact_addresslocation_editor_SRCS}
${akonadicontact_editor_widgets_SRCS}
${akonadicontact_editor_generalinfo_SRCS}
${akonadicontact_customfieldseditor_SRCS}
${akonadicontact_attributes_SRCS}
${akonadicontact_job_SRCS}
abstractcontactformatter.cpp
abstractcontactgroupformatter.cpp
collectionfiltermodel.cpp
contactcompletionmodel.cpp
contactdefaultactions.cpp
contacteditor.cpp
contacteditordialog.cpp
contactgroupeditor.cpp
contactgroupeditordelegate.cpp
contactgroupeditordialog.cpp
contactgroupmodel.cpp
contactgroupviewer.cpp
contactgroupviewerdialog.cpp
contactmetadataakonadi.cpp
contactmetadatabase.cpp
contactparts.cpp
contactsfilterproxymodel.cpp
contactstreemodel.cpp
contactviewer.cpp
contactviewerdialog.cpp
customfields.cpp
customfieldmanager.cpp
emailaddressselection.cpp
emailaddressselectiondialog.cpp
emailaddressselectionproxymodel.cpp
emailaddressselectionwidget.cpp
emailaddressrequester.cpp
emailaddressselectionmodel.cpp
textbrowser.cpp
leafextensionproxymodel.cpp
standardcontactactionmanager.cpp
standardcontactformatter.cpp
standardcontactgroupformatter.cpp
waitingoverlay.cpp
selectaddressbookdialog.cpp
${akonadicontact_actions_SRCS}
)
ecm_qt_declare_logging_category(akonadicontact_LIB_SRC HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadicontact)
set(akonadicontact_LIB_SRC
${akonadicontact_LIB_SRC}
${akonadicontact_editor_SRCS}
)
ki18n_wrap_ui(akonadicontact_LIB_SRC contactgroupeditor.ui)
add_library(KF5AkonadiContact ${akonadicontact_LIB_SRC})
generate_export_header(KF5AkonadiContact BASE_NAME akonadi-contact)
add_library(KF5::AkonadiContact ALIAS KF5AkonadiContact)
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact;${KDE_INSTALL_INCLUDEDIR_KF5}>")
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/akonadi/contact>")
target_include_directories(KF5AkonadiContact PUBLIC "$<BUILD_INTERFACE:${Akonadi-Contact_SOURCE_DIR}/src;${Akonadi-Contact_BINARY_DIR}/src>")
target_link_libraries(KF5AkonadiContact
PUBLIC
KF5::AkonadiCore
KF5::Contacts
KF5::AkonadiWidgets
Qt5::Widgets
PRIVATE
KF5::Completion
KF5::ConfigCore
KF5::ConfigWidgets
KF5::IconThemes
KF5::KIOWidgets
KF5::Mime
KF5::Codecs
KF5::DBusAddons
KF5::I18n
KF5::Service
KF5::TextWidgets
KF5::WidgetsAddons
KF5::XmlGui
Grantlee5::Templates
Qt5::WebEngine
Qt5::WebEngineWidgets
)
if(KF5Prison_FOUND)
target_link_libraries(KF5AkonadiContact PRIVATE KF5::Prison)
endif()
set_target_properties(KF5AkonadiContact PROPERTIES
VERSION ${AKONADICONTACT_VERSION_STRING}
SOVERSION ${AKONADICONTACT_SOVERSION}
EXPORT_NAME AkonadiContact
)
install(TARGETS
KF5AkonadiContact
EXPORT KF5AkonadiContactTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}
)
install(FILES editor/pics/world.jpg DESTINATION ${KDE_INSTALL_DATADIR_KF5}/akonadi/contact/pics)
install(FILES editor/data/zone.tab DESTINATION ${KDE_INSTALL_DATADIR_KF5}/akonadi/contact/data)
ecm_generate_pri_file(BASE_NAME AkonadiContact
LIB_NAME KF5AkonadiContact
DEPS "AkonadiCore Contacts" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact
)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
ecm_generate_headers(AkonadiContactJob_CamelCase_HEADERS
HEADER_NAMES
ContactGroupExpandJob
ContactGroupSearchJob
ContactSearchJob
REQUIRED_HEADERS AkonadiContactJob_HEADERS
PREFIX Akonadi/Contact
RELATIVE job
)
ecm_generate_headers(AkonadiContact_CamelCase_HEADERS
HEADER_NAMES
AbstractContactFormatter
AbstractContactGroupFormatter
ContactDefaultActions
ContactEditor
ContactEditorDialog
ContactGroupEditor
ContactGroupEditorDialog
ContactGroupViewer
ContactGroupViewerDialog
ContactsFilterProxyModel
ContactsTreeModel
ContactEditorPagePlugin
ContactParts
ContactViewer
ContactViewerDialog
EmailAddressSelection
EmailAddressSelectionDialog
EmailAddressSelectionWidget
EmailAddressSelectionModel
EmailAddressRequester
StandardContactActionManager
StandardContactFormatter
StandardContactGroupFormatter
SelectAddressBookDialog
REQUIRED_HEADERS AkonadiContact_HEADERS
PREFIX Akonadi/Contact
)
install( FILES
${AkonadiContact_CamelCase_HEADERS}
${AkonadiContactJob_CamelCase_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact COMPONENT Devel
)
install( FILES
${AkonadiContact_HEADERS}
${AkonadiContactJob_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/akonadi-contact_export.h
editor/im/improtocols.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/akonadi/contact COMPONENT Devel
)
if (BUILD_TESTING)
add_subdirectory(editor/addresseditor/autotests/)
add_subdirectory(editor/addresseditor/tests)
add_subdirectory(editor/generalinfoeditor/autotests/)
add_subdirectory(editor/generalinfoeditor/tests)
add_subdirectory(editor/customfieldeditor/autotests/)
add_subdirectory(editor/customfieldeditor/tests)
add_subdirectory(editor/widgets/autotests/)
endif()
add_subdirectory(editor/addresseditor/html)
add_subdirectory(akonadi-contacts)
add_definitions(-DTRANSLATION_DOMAIN=\"akonadicontact5\")
set( AKONADI_PHONE_DIAL_DEFAULT "UseSkype" )
set( AKONADI_SEND_SMS_DEFAULT "UseSkypeSms" )
add_subdirectory(editor/im)
########### next target ###############
set(akonadicontact_actions_SRCS
actions/dialphonenumberaction.cpp
actions/showaddressaction.cpp
actions/qdialer.cpp
actions/qskypedialer.cpp
actions/sendsmsaction.cpp
actions/smsdialog.cpp
actions/qsflphonedialer.cpp
actions/qekigadialer.cpp
)
configure_file(config-akonadi-contact.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-akonadi-contact.h)
configure_file( actions/contactactionssettings.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/contactactionssettings.kcfg @ONLY)
kconfig_add_kcfg_files(akonadicontact_actions_SRCS actions/contactactionssettings.kcfgc)
set(akonadicontact_customfieldseditor_SRCS
editor/customfieldeditor/customfieldswidget.cpp
editor/customfieldeditor/customfieldeditorwidget.cpp
editor/customfieldeditor/customfieldslistwidget.cpp
editor/customfieldeditor/customfieldslistdelegate.cpp
editor/customfieldeditor/customfieldsmodel.cpp
)
set(akonadicontact_editor_utils_SRCS
editor/utils/utils.cpp
)
set(akonadicontact_editor_widgets_SRCS
editor/widgets/kwidgetlister.cpp
editor/widgets/akonadicontactcombobox.cpp
)
set(akonadicontact_editor_generalinfo_phone_SRCS
editor/generalinfoeditor/phone/phonewidgetlister.cpp
editor/generalinfoeditor/phone/phonewidget.cpp
editor/generalinfoeditor/phone/phonelistwidget.cpp
editor/generalinfoeditor/phone/phonecomboboxtype.cpp
editor/generalinfoeditor/phone/phonetypedialog.cpp
)
set(akonadicontact_editor_generalinfo_web_SRCS
editor/generalinfoeditor/web/webwidgetlister.cpp
editor/generalinfoeditor/web/weblistwidget.cpp
editor/generalinfoeditor/web/webwidget.cpp
)
set(akonadicontact_editor_generalinfo_mail_SRCS
editor/generalinfoeditor/mail/maillistwidget.cpp
editor/generalinfoeditor/mail/mailwidget.cpp
editor/generalinfoeditor/mail/mailwidgetlister.cpp
)
set(akonadicontact_editor_generalinfo_messaging_SRCS
editor/generalinfoeditor/messaging/messaginglistwidget.cpp
editor/generalinfoeditor/messaging/messagingwidget.cpp
editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
)
set(akonadicontact_editor_generalinfo_SRCS
editor/generalinfoeditor/generalinfowidget.cpp
editor/generalinfoeditor/namewidget.cpp
editor/generalinfoeditor/nicknamewidget.cpp
editor/generalinfoeditor/categorieseditwidget.cpp
editor/generalinfoeditor/nameeditdialog.cpp
editor/generalinfoeditor/displaynameeditwidget.cpp
editor/generalinfoeditor/akonadicontactselecttypecombobox.cpp
editor/generalinfoeditor/messageformattingwidget.cpp
${akonadicontact_editor_generalinfo_messaging_SRCS}
${akonadicontact_editor_generalinfo_phone_SRCS}
${akonadicontact_editor_generalinfo_web_SRCS}
${akonadicontact_editor_generalinfo_mail_SRCS}
)
set(akonadicontact_addresslocation_web_editor_SRCS
editor/addresseditor/webengine/addresseslocationengineviewer.cpp
editor/addresseditor/webengine/addresseslocationenginepage.cpp
)
set(akonadicontact_addresslocation_editor_SRCS
${akonadicontact_addresslocation_web_editor_SRCS}
editor/addresseditor/addresslocationwidget.cpp
editor/addresseditor/addresseslocationgrantleeformater.cpp
editor/addresseditor/addressgrantleeobject.cpp
editor/addresseditor/iconnamecache.cpp
editor/addresseditor/addresseslocationwidget.cpp
editor/addresseditor/selectaddresstypecombobox.cpp
editor/addresseditor/addresstypedialog.cpp
)
set(akonadicontact_personal_editor_SRCS
editor/personaleditor/personaleditorwidget.cpp
editor/personaleditor/dateeditwidget.cpp
editor/personaleditor/kdatepickerpopup.cpp
)
set(akonadicontact_business_editor_SRCS
editor/businesseditor/businesseditorwidget.cpp
editor/businesseditor/freebusyeditwidget.cpp
)
set(akonadicontact_editor_SRCS
${akonadicontact_personal_editor_SRCS}
${akonadicontact_editor_utils_SRCS}
${akonadicontact_business_editor_SRCS}
editor/contacteditorwidget.cpp
editor/im/imaddress.cpp
editor/im/improtocols.cpp
editor/widgets/imagewidget.cpp
editor/widgets/preferredlineeditwidget.cpp
)
set(akonadicontact_attributes_SRCS
attributes/contactmetadataattribute.cpp
attributes/attributeregistrar.cpp
)
set(akonadicontact_job_SRCS
job/contactgroupexpandjob.cpp
job/contactgroupsearchjob.cpp
job/contactsearchjob.cpp
)
set(akonadicontact_LIB_SRC
${akonadicontact_addresslocation_editor_SRCS}
${akonadicontact_editor_widgets_SRCS}
${akonadicontact_editor_generalinfo_SRCS}
${akonadicontact_customfieldseditor_SRCS}
${akonadicontact_attributes_SRCS}
${akonadicontact_job_SRCS}
abstractcontactformatter.cpp
abstractcontactgroupformatter.cpp
collectionfiltermodel.cpp
contactcompletionmodel.cpp
contactdefaultactions.cpp
contacteditor.cpp
contacteditordialog.cpp
contactgroupeditor.cpp
contactgroupeditordelegate.cpp
contactgroupeditordialog.cpp
contactgroupmodel.cpp
contactgroupviewer.cpp
contactgroupviewerdialog.cpp
contactmetadataakonadi.cpp
contactmetadatabase.cpp
contactparts.cpp
contactsfilterproxymodel.cpp
contactstreemodel.cpp
contactviewer.cpp
contactviewerdialog.cpp
customfields.cpp
customfieldmanager.cpp
emailaddressselection.cpp
emailaddressselectiondialog.cpp
emailaddressselectionproxymodel.cpp
emailaddressselectionwidget.cpp
emailaddressrequester.cpp
emailaddressselectionmodel.cpp
textbrowser.cpp
leafextensionproxymodel.cpp
standardcontactactionmanager.cpp
standardcontactformatter.cpp
standardcontactgroupformatter.cpp
waitingoverlay.cpp
selectaddressbookdialog.cpp
${akonadicontact_actions_SRCS}
)
ecm_qt_declare_logging_category(akonadicontact_LIB_SRC HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadicontact)
set(akonadicontact_LIB_SRC
${akonadicontact_LIB_SRC}
${akonadicontact_editor_SRCS}
)
ki18n_wrap_ui(akonadicontact_LIB_SRC contactgroupeditor.ui)
add_library(KF5AkonadiContact ${akonadicontact_LIB_SRC})
generate_export_header(KF5AkonadiContact BASE_NAME akonadi-contact)
add_library(KF5::AkonadiContact ALIAS KF5AkonadiContact)
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/Akonadi/Contact;${KDE_INSTALL_INCLUDEDIR_KF5}>")
target_include_directories(KF5AkonadiContact INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/akonadi/contact>")
target_include_directories(KF5AkonadiContact PUBLIC "$<BUILD_INTERFACE:${Akonadi-Contact_SOURCE_DIR}/src;${Akonadi-Contact_BINARY_DIR}/src>")
target_link_libraries(KF5AkonadiContact
PUBLIC
KF5::AkonadiCore
KF5::Contacts
KF5::AkonadiWidgets
Qt5::Widgets
PRIVATE
KF5::Completion
KF5::ConfigCore
KF5::ConfigWidgets
KF5::IconThemes
KF5::KIOWidgets
KF5::Mime
KF5::Codecs
KF5::DBusAddons
KF5::I18n