summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/spellcatalog
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-02-14 15:44:24 +0100
committergregory guy <g-gregory@gmx.fr>2019-02-14 15:44:24 +0100
commit7a10077e8260148faa37d5a91e76135e1341e4c1 (patch)
tree6bfabbcd9017c63c91a5ee7e2434e917906b3f55 /katapult/plugins/catalogs/spellcatalog
parentd165ef2d365fc582b966fbcb0bbac5223c7b02cc (diff)
downloadkatapult-7a10077e8260148faa37d5a91e76135e1341e4c1.tar.gz
katapult-7a10077e8260148faa37d5a91e76135e1341e4c1.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'katapult/plugins/catalogs/spellcatalog')
-rw-r--r--katapult/plugins/catalogs/spellcatalog/CMakeLists.txt45
-rw-r--r--katapult/plugins/catalogs/spellcatalog/actioncopyspelling.cpp2
-rw-r--r--katapult/plugins/catalogs/spellcatalog/actioncopyspelling.h2
-rw-r--r--katapult/plugins/catalogs/spellcatalog/spellcatalog.cpp4
-rw-r--r--katapult/plugins/catalogs/spellcatalog/spellcatalog.h2
5 files changed, 50 insertions, 5 deletions
diff --git a/katapult/plugins/catalogs/spellcatalog/CMakeLists.txt b/katapult/plugins/catalogs/spellcatalog/CMakeLists.txt
new file mode 100644
index 0000000..692fea9
--- /dev/null
+++ b/katapult/plugins/catalogs/spellcatalog/CMakeLists.txt
@@ -0,0 +1,45 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}/common
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### katapult_spellcatalog (kpart)
+
+tde_add_kpart( katapult_spellcatalog AUTOMOC
+
+ SOURCES
+ settings.ui
+ spellcatalog.cpp
+ spelling.cpp
+ actioncopyspelling.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ ${PROJECT_NAME}-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons
+
+tde_install_icons( )
+
+
+##### other data
+
+install(
+ FILES katapult_spellcatalog.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.cpp b/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.cpp
index 5b7c815..5dc5b0c 100644
--- a/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.cpp
+++ b/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.cpp
@@ -30,7 +30,7 @@
#include "spellcatalog.h"
#include "spelling.h"
-#include "katapultitem.h"
+#include <katapultitem.h>
#include "actioncopyspelling.h"
ActionCopySpelling::ActionCopySpelling()
diff --git a/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.h b/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.h
index 669ba49..ad35f06 100644
--- a/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.h
+++ b/katapult/plugins/catalogs/spellcatalog/actioncopyspelling.h
@@ -23,7 +23,7 @@
#ifndef ACTIONCOPYSPELLING_H
#define ACTIONCOPYSPELLING_H
-#include "katapultaction.h"
+#include <katapultaction.h>
class KatapultItem;
class Spelling;
diff --git a/katapult/plugins/catalogs/spellcatalog/spellcatalog.cpp b/katapult/plugins/catalogs/spellcatalog/spellcatalog.cpp
index 76dde5d..941781b 100644
--- a/katapult/plugins/catalogs/spellcatalog/spellcatalog.cpp
+++ b/katapult/plugins/catalogs/spellcatalog/spellcatalog.cpp
@@ -34,9 +34,9 @@
#include "settings.h"
#include "spellcatalog.h"
-#include "actionregistry.h"
+#include <actionregistry.h>
#include "actioncopyspelling.h"
-#include "status.h"
+#include <status.h>
K_EXPORT_COMPONENT_FACTORY( katapult_spellcatalog,
KGenericFactory<SpellCatalog>( "katapult_spellcatalog" ) )
diff --git a/katapult/plugins/catalogs/spellcatalog/spellcatalog.h b/katapult/plugins/catalogs/spellcatalog/spellcatalog.h
index 8dd9215..b4ed036 100644
--- a/katapult/plugins/catalogs/spellcatalog/spellcatalog.h
+++ b/katapult/plugins/catalogs/spellcatalog/spellcatalog.h
@@ -31,7 +31,7 @@
#include <tqstring.h>
#include "spelling.h"
-#include "katapultcatalog.h"
+#include <katapultcatalog.h>
class TQWidget;