Commit 1219c69d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move in own directory

parent 98d3c0a9
set(libmailimporter_filters_SRCS
filters/filteroe.cpp
filters/filterpmail.cpp
filters/filterplain.cpp
filters/filtermbox.cpp
filters/filterevolution.cpp
filters/filtermailapp.cpp
filters/filterevolution_v2.cpp
filters/filterevolution_v3.cpp
filters/filteropera.cpp
filters/filterthunderbird.cpp
filters/filterkmail_maildir.cpp
filters/filtersylpheed.cpp
filters/filterclawsmail.cpp
filters/filterthebat.cpp
filters/filterlnotes.cpp
filters/filterkmailarchive.cpp
filters/filtermailmangzip.cpp
filters/filtericedove.cpp
filters/filterbalsa.cpp
)
set(libmailimporter_SRCS
importmailswidget.cpp
filterinfogui.cpp
filterinfo.cpp
filters.cpp
filteroe.cpp
filterpmail.cpp
filterplain.cpp
filtermbox.cpp
filterevolution.cpp
filtermailapp.cpp
filterevolution_v2.cpp
filterevolution_v3.cpp
filteropera.cpp
filterthunderbird.cpp
filterkmail_maildir.cpp
filtersylpheed.cpp
filterclawsmail.cpp
filterthebat.cpp
filterlnotes.cpp
filterkmailarchive.cpp
filtermailmangzip.cpp
filtericedove.cpp
filterbalsa.cpp
selectthunderbirdprofilewidget.cpp
othermailerutil.cpp
)
importmailswidget.cpp
filterinfogui.cpp
filterinfo.cpp
filters.cpp
othermailerutil.cpp
selectthunderbirdprofilewidget.cpp
)
ki18n_wrap_ui(libmailimporter_SRCS ui/importmailswidget.ui ui/selectthunderbirdprofilewidget.ui)
ecm_qt_declare_logging_category(libmailimporter_SRCS HEADER mailimporter_debug.h IDENTIFIER MAILIMPORTER_LOG CATEGORY_NAME org.kde.pim.mailimporter)
add_library(KF5MailImporter ${libmailimporter_SRCS})
add_library(KF5MailImporter
${libmailimporter_SRCS}
${libmailimporter_filters_SRCS}
)
generate_export_header( KF5MailImporter BASE_NAME mailimporter)
......@@ -41,78 +47,89 @@ target_include_directories(KF5MailImporter PUBLIC "$<BUILD_INTERFACE:${MailImpor
target_link_libraries(KF5MailImporter
PUBLIC
KF5::Mime
PRIVATE
KF5::AkonadiCore
KF5::AkonadiMime
KF5::Libkdepim
KF5::Archive
KF5::I18n
KF5::ConfigCore
Qt5::Xml
Qt5::Widgets
)
PUBLIC
KF5::Mime
PRIVATE
KF5::AkonadiCore
KF5::AkonadiMime
KF5::Libkdepim
KF5::Archive
KF5::I18n
KF5::ConfigCore
Qt5::Xml
Qt5::Widgets
)
set_target_properties(KF5MailImporter PROPERTIES
VERSION ${MAILIMPORTER_VERSION_STRING}
SOVERSION ${MAILIMPORTER_SOVERSION}
EXPORT_NAME MailImporter
)
)
install(TARGETS
KF5MailImporter
EXPORT KF5MailImporterTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK}
)
)
ecm_generate_headers(MailImporter_CamelCase_HEADERS
HEADER_NAMES
FilterClawsMail
FilterBalsa
FilterSylpheed
FilterTheBat
FilterEvolution
FilterInfoGui
FilterThunderbird
FilterEvolution_v2
FilterEvolution_v3
FilterMailApp
FilterMailmanGzip
FilterPlain
FilterPMail
FilterMBox
FilterOpera
FilterLNotes
FilterOE
FilterKMail_maildir
FilterKMailArchive
FilterIcedove
OtherMailerUtil
ImportMailsWidget
MailImporter_Utils
Filters
FilterInfo
REQUIRED_HEADERS MailImporter_HEADERS
PREFIX MailImporter
)
HEADER_NAMES
FilterInfoGui
OtherMailerUtil
ImportMailsWidget
MailImporter_Utils
Filters
FilterInfo
REQUIRED_HEADERS MailImporter_HEADERS
PREFIX MailImporter
)
ecm_generate_headers(MailImporter_FiltersCamelCase_HEADERS
HEADER_NAMES
FilterClawsMail
FilterBalsa
FilterSylpheed
FilterTheBat
FilterEvolution
FilterThunderbird
FilterEvolution_v2
FilterEvolution_v3
FilterMailApp
FilterMailmanGzip
FilterPlain
FilterPMail
FilterMBox
FilterOpera
FilterLNotes
FilterOE
FilterKMail_maildir
FilterKMailArchive
FilterIcedove
REQUIRED_HEADERS MailImporter_Filters_HEADERS
PREFIX MailImporter
RELATIVE filters
)
ecm_generate_pri_file(BASE_NAME MailImporter
LIB_NAME KF5MailImpoter
DEPS "Mime" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/MailImporter
)
)
install(FILES
${MailImporter_CamelCase_HEADERS}
${MailImporter_FiltersCamelCase_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/MailImporter
COMPONENT Devel
)
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/mailimporter_export.h
${MailImporter_HEADERS}
${MailImporter_Filters_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/mailimporter
COMPONENT Devel
)
)
install(FILES
${PRI_FILENAME}
DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment