Commit ab1d3a89 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use more kmailprivate

parent df28d333
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set( kmail_incorrectidentityfolderwarningtest_SRCS incorrectidentityfolderwarningtest.cpp ../incorrectidentityfolderwarning.cpp )
set( kmail_incorrectidentityfolderwarningtest_SRCS incorrectidentityfolderwarningtest.cpp )
add_executable( kmail_incorrectidentityfolderwarningtest ${kmail_incorrectidentityfolderwarningtest_SRCS})
add_test(NAME kmail_incorrectidentityfolderwarningtest COMMAND kmail_incorrectidentityfolderwarningtest)
ecm_mark_as_test(kmail_incorrectidentityfolderwarningtest)
target_link_libraries( kmail_incorrectidentityfolderwarningtest Qt5::Test KF5::PimCommon KF5::I18n)
target_link_libraries( kmail_incorrectidentityfolderwarningtest Qt5::Test KF5::PimCommon KF5::I18n kmailprivate)
set( kmail_externaleditorwarningtest_SRCS externaleditorwarningtest.cpp ../externaleditorwarning.cpp )
set( kmail_externaleditorwarningtest_SRCS externaleditorwarningtest.cpp)
add_executable( kmail_externaleditorwarningtest ${kmail_externaleditorwarningtest_SRCS})
add_test(NAME kmail_externaleditorwarningtest COMMAND kmail_externaleditorwarningtest)
ecm_mark_as_test(kmail_externaleditorwarningtest)
target_link_libraries( kmail_externaleditorwarningtest Qt5::Test KF5::PimCommon KF5::I18n)
target_link_libraries( kmail_externaleditorwarningtest Qt5::Test KF5::PimCommon KF5::I18n kmailprivate)
......@@ -21,8 +21,8 @@
#define EXTERNALEDITORWARNING_H
#include <KMessageWidget>
class ExternalEditorWarning : public KMessageWidget
#include "kmail_private_export.h"
class KMAILTESTS_TESTS_EXPORT ExternalEditorWarning : public KMessageWidget
{
Q_OBJECT
public:
......
......@@ -21,8 +21,9 @@
#define INCORRECTIDENTITYFOLDERWARNING_H
#include <KMessageWidget>
#include "kmail_private_export.h"
class IncorrectIdentityFolderWarning : public KMessageWidget
class KMAILTESTS_TESTS_EXPORT IncorrectIdentityFolderWarning : public KMessageWidget
{
Q_OBJECT
public:
......
# Convenience macro to add unit tests.
macro( folderarchive_kmail _source )
set( _test ${_source} ../folderarchiveaccountinfo.cpp )
set( _test ${_source} )
get_filename_component( _name ${_source} NAME_WE )
add_executable( ${_name} ${_test} )
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(folderararchive-${_name})
target_link_libraries( ${_name} Qt5::Test Qt5::Core KF5::AkonadiCore KF5::ConfigCore)
target_link_libraries( ${_name} Qt5::Test Qt5::Core KF5::AkonadiCore KF5::ConfigCore kmailprivate)
endmacro()
folderarchive_kmail(folderarchiveaccountinfotest.cpp)
......@@ -19,10 +19,11 @@
#ifndef FOLDERARCHIVEACCOUNTINFO_H
#define FOLDERARCHIVEACCOUNTINFO_H
#include "kmail_private_export.h"
#include <KConfigGroup>
#include <AkonadiCore/Collection>
class FolderArchiveAccountInfo
class KMAILTESTS_TESTS_EXPORT FolderArchiveAccountInfo
{
public:
FolderArchiveAccountInfo();
......
......@@ -21,8 +21,8 @@
#define KMAILSIEVEIMAPINSTANCEINTERFACE_H
#include <KSieveUi/SieveImapInstanceInterface>
class KMailSieveImapInstanceInterface : public KSieveUi::SieveImapInstanceInterface
#include "kmail_private_export.h"
class KMAILTESTS_TESTS_EXPORT KMailSieveImapInstanceInterface : public KSieveUi::SieveImapInstanceInterface
{
public:
KMailSieveImapInstanceInterface();
......
......@@ -19,12 +19,12 @@
#ifndef KMSIEVEIMAPPASSWORDPROVIDER_H
#define KMSIEVEIMAPPASSWORDPROVIDER_H
#include "kmail_private_export.h"
#include <KSieveUi/SieveImapPasswordProvider>
#include <QWidget> // for WId
class KMSieveImapPasswordProvider : public KSieveUi::SieveImapPasswordProvider
class KMAILTESTS_TESTS_EXPORT KMSieveImapPasswordProvider : public KSieveUi::SieveImapPasswordProvider
{
public:
KMSieveImapPasswordProvider(WId wid);
......
add_executable(sievedebugdialog sievedebugdialog.cpp ../../../sieveimapinterface/kmailsieveimapinstanceinterface.cpp ../../../sieveimapinterface/kmsieveimappasswordprovider.cpp)
add_executable(sievedebugdialog sievedebugdialog.cpp)
target_link_libraries(sievedebugdialog
KF5::KSieve
......@@ -6,4 +6,5 @@ target_link_libraries(sievedebugdialog
KF5::AkonadiCore
KF5::SyntaxHighlighting
KF5::Wallet
kmailprivate
)
add_executable(sievemanagerdialog sievemanagerdialog.cpp ../../../sieveimapinterface/kmailsieveimapinstanceinterface.cpp ../../../sieveimapinterface/kmsieveimappasswordprovider.cpp)
add_executable(sievemanagerdialog sievemanagerdialog.cpp )
target_link_libraries(sievemanagerdialog
KF5::KSieve
KF5::KSieveUi
KF5::AkonadiCore
KF5::Wallet
kmailprivate
)
set(vacation_multi_server_SRCS
main.cpp
../../../sieveimapinterface/kmailsieveimapinstanceinterface.cpp
../../../sieveimapinterface/kmsieveimappasswordprovider.cpp
)
add_executable(vacationmultiservertest ${vacation_multi_server_SRCS} )
target_link_libraries(vacationmultiservertest KF5::KSieveUi KF5::KSieve KF5::I18n KF5::AkonadiCore KF5::Wallet)
target_link_libraries(vacationmultiservertest KF5::KSieveUi KF5::KSieve KF5::I18n KF5::AkonadiCore KF5::Wallet kmailprivate)
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