Commit 406b3190 authored by Laurent Montel's avatar Laurent Montel 😁

Move in src directory

parent 2c3a6dcf
......@@ -190,5 +190,5 @@ install(FILES data/kaddressbook_themes.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}
install(DIRECTORY printing/grantlee/themes/ DESTINATION ${KDE_INSTALL_DATADIR}/kaddressbook/printing/themes/ )
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
......@@ -26,67 +26,13 @@ endif()
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
set( sieveeditor_kcfg_SRCS settings/sieveeditorglobalconfig.kcfgc )
kconfig_add_kcfg_files(sieveeditor_kcfg_SRCS ${sieveeditor_kcfg_SRCS})
set(sieveeditor_SRCS
${sieveeditor_kcfg_SRCS}
main.cpp
sieveeditormainwindow.cpp
serversievesettingsdialog.cpp
serversievesettings.cpp
sieveeditormainwidget.cpp
sieveeditorscriptwidget.cpp
sieveeditorconfiguredialog.cpp
sieveeditorscriptmanagerwidget.cpp
sieveeditorutil.cpp
serversievelistwidget.cpp
sieveeditorconfigureserverwidget.cpp
sieveeditormanagesievewidget.cpp
sieveeditorpagewidget.cpp
sieveserversettings.cpp
sieveeditortabwidget.cpp
sieveeditorcentralwidget.cpp
sieveeditorconfigureserverpage.cpp
sieveeditorbookmarks.cpp
sieveeditoremptytabwidgetlabel.cpp
)
ki18n_wrap_ui(sieveeditor_SRCS
ui/serversievesettings.ui
ui/sieveeditorconfigureserverwidget.ui
)
qt5_add_resources(sieveeditor_SRCS sieveeditor.qrc)
ecm_qt_declare_logging_category(sieveeditor_SRCS HEADER sieveeditor_debug.h IDENTIFIER SIEVEEDITOR_LOG CATEGORY_NAME log_sieveeditor)
add_executable(sieveeditor ${sieveeditor_SRCS} )
target_link_libraries(sieveeditor
KF5::MailTransport
KF5::Bookmarks
KF5::DBusAddons
KF5::I18n
KF5::IconThemes
KF5::XmlGui
KF5::PimCommon
KF5::KSieveUi
KF5::KManageSieve
)
install(TARGETS sieveeditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.sieveeditor.desktop DESTINATION ${KDE_INSTALL_APPDIR})
add_subdirectory(kconf_update)
install(FILES settings/sieveeditorglobalconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
add_subdirectory(src)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
include_directories(${CMAKE_BINARY_DIR}/sieveeditor/)
set( sieveedit_serversievesettings_source serversievesettingstest.cpp ../serversievesettings.cpp ../sieveeditor_debug.cpp)
set( sieveedit_serversievesettings_source serversievesettingstest.cpp ../src/serversievesettings.cpp ../src/sieveeditor_debug.cpp)
ki18n_wrap_ui(sieveedit_serversievesettings_source
../ui/serversievesettings.ui
../src/ui/serversievesettings.ui
)
add_executable( serversievesettingstest ${sieveedit_serversievesettings_source})
......@@ -11,7 +11,7 @@ add_test(serversievesettingstest serversievesettingstest)
ecm_mark_as_test(serversievesettingstest)
target_link_libraries( serversievesettingstest Qt5::Test Qt5::Widgets KF5::MailTransport KF5::I18n KF5::ConfigGui)
set( sieveeditorutiltest_source sieveeditorutiltest.cpp ../sieveeditorutil.cpp ../sieveserversettings.cpp)
set( sieveeditorutiltest_source sieveeditorutiltest.cpp ../src/sieveeditorutil.cpp ../src/sieveserversettings.cpp)
add_executable( sieveeditorutiltest ${sieveeditorutiltest_source})
add_test(sieveeditorutiltest sieveeditorutiltest)
ecm_mark_as_test(sieveeditorutiltest)
......@@ -36,6 +36,6 @@ macro(add_sieveserver_unittest _source _additionalSource)
)
endmacro ()
add_sieveserver_unittest( sieveeditorconfigureserverpagetest.cpp "../sieveeditorconfigureserverpage.cpp")
add_sieveserver_unittest( sieveeditorconfigureserverpagetest.cpp "../src/sieveeditorconfigureserverpage.cpp")
#add_sieveserver_unittest( sieveeditorbookmarkstest.cpp "../sieveeditorbookmarks.cpp")
#add_sieveserver_unittest( sieveeditorbookmarkstest.cpp "../src/sieveeditorbookmarks.cpp")
......@@ -19,7 +19,7 @@
*/
#include "serversievesettingstest.h"
#include "../serversievesettings.h"
#include "../src/serversievesettings.h"
#include <qtest.h>
#include <QSignalSpy>
ServerSieveSettingsTest::ServerSieveSettingsTest(QObject *parent)
......
......@@ -16,7 +16,7 @@
*/
#include "sieveeditorconfigureserverpagetest.h"
#include "../sieveeditorconfigureserverpage.h"
#include "../src/sieveeditorconfigureserverpage.h"
#include <QPushButton>
#include <qtest.h>
#include <QSignalSpy>
......
......@@ -19,7 +19,7 @@
*/
#include "sieveeditorutiltest.h"
#include <qtest.h>
#include "../sieveeditorutil.h"
#include "../src/sieveeditorutil.h"
SieveEditorUtilTest::SieveEditorUtilTest(QObject *parent)
: QObject(parent)
......
set( sieveeditor_kcfg_SRCS settings/sieveeditorglobalconfig.kcfgc )
kconfig_add_kcfg_files(sieveeditor_kcfg_SRCS ${sieveeditor_kcfg_SRCS})
set(sieveeditor_SRCS
${sieveeditor_kcfg_SRCS}
main.cpp
sieveeditormainwindow.cpp
serversievesettingsdialog.cpp
serversievesettings.cpp
sieveeditormainwidget.cpp
sieveeditorscriptwidget.cpp
sieveeditorconfiguredialog.cpp
sieveeditorscriptmanagerwidget.cpp
sieveeditorutil.cpp
serversievelistwidget.cpp
sieveeditorconfigureserverwidget.cpp
sieveeditormanagesievewidget.cpp
sieveeditorpagewidget.cpp
sieveserversettings.cpp
sieveeditortabwidget.cpp
sieveeditorcentralwidget.cpp
sieveeditorconfigureserverpage.cpp
sieveeditorbookmarks.cpp
sieveeditoremptytabwidgetlabel.cpp
)
ki18n_wrap_ui(sieveeditor_SRCS
ui/serversievesettings.ui
ui/sieveeditorconfigureserverwidget.ui
)
qt5_add_resources(sieveeditor_SRCS sieveeditor.qrc)
ecm_qt_declare_logging_category(sieveeditor_SRCS HEADER sieveeditor_debug.h IDENTIFIER SIEVEEDITOR_LOG CATEGORY_NAME log_sieveeditor)
add_executable(sieveeditor ${sieveeditor_SRCS} )
target_link_libraries(sieveeditor
KF5::MailTransport
KF5::Bookmarks
KF5::DBusAddons
KF5::I18n
KF5::IconThemes
KF5::XmlGui
KF5::PimCommon
KF5::KSieveUi
KF5::KManageSieve
)
install(TARGETS sieveeditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.sieveeditor.desktop DESTINATION ${KDE_INSTALL_APPDIR})
add_subdirectory(kconf_update)
install(FILES settings/sieveeditorglobalconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
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