summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-31 19:45:11 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-31 19:45:11 (GMT)
commitd4125576ef025af069ea703239606f45bf59c0f3 (patch)
treef9b336d402b9db462424d7304176b064aef9bdbc
parent4475a62794be62575f7ab21747d259af5632f43d (diff)
Clean up CMakeLists.txt
-rw-r--r--src/ksieveui/CMakeLists.txt59
-rw-r--r--src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.cpp6
-rw-r--r--src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.h16
-rw-r--r--src/ksieveui/managescriptsjob/renamescriptjob.cpp6
-rw-r--r--src/ksieveui/managescriptsjob/renamescriptjob.h16
5 files changed, 71 insertions, 32 deletions
diff --git a/src/ksieveui/CMakeLists.txt b/src/ksieveui/CMakeLists.txt
index 8400dda..4a97e1c 100644
--- a/src/ksieveui/CMakeLists.txt
+++ b/src/ksieveui/CMakeLists.txt
@@ -258,7 +258,6 @@ ecm_generate_headers(ksieveui_Camelcaseeditor_HEADERS
REQUIRED_HEADERS ksieveui_editor_HEADERS
PREFIX KSieveUi
RELATIVE editor
-
)
ecm_generate_headers(ksieveui_Camelcasevacation_HEADERS
@@ -267,7 +266,6 @@ ecm_generate_headers(ksieveui_Camelcasevacation_HEADERS
REQUIRED_HEADERS ksieveui_vacation_HEADERS
PREFIX KSieveUi
RELATIVE vacation
-
)
ecm_generate_headers(ksieveui_Camelcasedebug_HEADERS
@@ -276,7 +274,6 @@ ecm_generate_headers(ksieveui_Camelcasedebug_HEADERS
REQUIRED_HEADERS ksieveui_debug_HEADERS
PREFIX KSieveUi
RELATIVE debug
-
)
ecm_generate_headers(ksieveui_Camelcasewidgets_HEADERS
@@ -297,37 +294,35 @@ ecm_generate_pri_file(BASE_NAME KSieveUi
install(TARGETS KF5KSieveUi EXPORT KF5KSieveTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
-if(${CMAKE_SOURCE_DIR} STREQUAL ${libksieve_SOURCE_DIR})
-
-
- install(FILES
- ${ksieveui_Camelcasewidgets_HEADERS}
- ${ksieveui_Camelcasedebug_HEADERS}
- ${ksieveui_Camelcasevacation_HEADERS}
- ${ksieveui_CamelCase_HEADERS}
- ${ksieveui_Camelcaseeditor_HEADERS}
- ${ksieveui_Camelcaseutil_HEADERS}
- DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KSieveUi
- COMPONENT Devel
- )
+install(FILES
+ ${ksieveui_Camelcasewidgets_HEADERS}
+ ${ksieveui_Camelcasedebug_HEADERS}
+ ${ksieveui_Camelcasevacation_HEADERS}
+ ${ksieveui_CamelCase_HEADERS}
+ ${ksieveui_Camelcaseeditor_HEADERS}
+ ${ksieveui_Camelcaseutil_HEADERS}
+ ${ksieveui_Camelmanagescriptsjob_HEADERS}
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KSieveUi
+ COMPONENT Devel
+ )
- install(FILES
- ${CMAKE_CURRENT_BINARY_DIR}/ksieveui_export.h
- ${ksieveui_widgets_HEADERS}
- ${ksieveui_debug_HEADERS}
- ${ksieveui_vacation_HEADERS}
- ${ksieveui_HEADERS}
- ${ksieveui_editor_HEADERS}
- ${ksieveui_util_HEADERS}
- DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/ksieveui
- COMPONENT Devel
- )
- install(FILES
- ${PRI_FILENAME}
- DESTINATION ${ECM_MKSPECS_INSTALL_DIR}
- )
+install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/ksieveui_export.h
+ ${ksieveui_widgets_HEADERS}
+ ${ksieveui_debug_HEADERS}
+ ${ksieveui_vacation_HEADERS}
+ ${ksieveui_HEADERS}
+ ${ksieveui_editor_HEADERS}
+ ${ksieveui_util_HEADERS}
+ ${ksieveui_managescriptsjob_HEADERS}
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/ksieveui
+ COMPONENT Devel
+ )
+install(FILES
+ ${PRI_FILENAME}
+ DESTINATION ${ECM_MKSPECS_INSTALL_DIR}
+ )
-endif()
install(FILES data/ksieve_script.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
install(DIRECTORY data/scripts/ DESTINATION ${KDE_INSTALL_DATADIR}/sieve/scripts/ )
diff --git a/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.cpp b/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.cpp
new file mode 100644
index 0000000..bc1ab9e
--- /dev/null
+++ b/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.cpp
@@ -0,0 +1,6 @@
+#include "renamescriptjobtest.h"
+
+RenameScriptJobTest::RenameScriptJobTest(QObject *parent) : QObject(parent)
+{
+
+}
diff --git a/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.h b/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.h
new file mode 100644
index 0000000..9141d43
--- /dev/null
+++ b/src/ksieveui/managescriptsjob/autotests/renamescriptjobtest.h
@@ -0,0 +1,16 @@
+#ifndef RENAMESCRIPTJOBTEST_H
+#define RENAMESCRIPTJOBTEST_H
+
+
+class RenameScriptJobTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit RenameScriptJobTest(QObject *parent = 0);
+
+signals:
+
+public slots:
+};
+
+#endif // RENAMESCRIPTJOBTEST_H \ No newline at end of file
diff --git a/src/ksieveui/managescriptsjob/renamescriptjob.cpp b/src/ksieveui/managescriptsjob/renamescriptjob.cpp
new file mode 100644
index 0000000..e39fe58
--- /dev/null
+++ b/src/ksieveui/managescriptsjob/renamescriptjob.cpp
@@ -0,0 +1,6 @@
+#include "renamescriptjob.h"
+
+RenameScriptJob::RenameScriptJob(QObject *parent) : QObject(parent)
+{
+
+}
diff --git a/src/ksieveui/managescriptsjob/renamescriptjob.h b/src/ksieveui/managescriptsjob/renamescriptjob.h
new file mode 100644
index 0000000..c4d8ce2
--- /dev/null
+++ b/src/ksieveui/managescriptsjob/renamescriptjob.h
@@ -0,0 +1,16 @@
+#ifndef RENAMESCRIPTJOB_H
+#define RENAMESCRIPTJOB_H
+
+
+class RenameScriptJob : public QObject
+{
+ Q_OBJECT
+public:
+ explicit RenameScriptJob(QObject *parent = 0);
+
+signals:
+
+public slots:
+};
+
+#endif // RENAMESCRIPTJOB_H \ No newline at end of file