summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/amarokcatalog
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/amarokcatalog
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/amarokcatalog')
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/CMakeLists.txt41
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/actionplaysong.h2
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp2
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/song.cpp2
4 files changed, 45 insertions, 2 deletions
diff --git a/katapult/plugins/catalogs/amarokcatalog/CMakeLists.txt b/katapult/plugins/catalogs/amarokcatalog/CMakeLists.txt
new file mode 100644
index 0000000..88333aa
--- /dev/null
+++ b/katapult/plugins/catalogs/amarokcatalog/CMakeLists.txt
@@ -0,0 +1,41 @@
+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_amarokcatalog (kpart)
+
+tde_add_kpart( katapult_amarokcatalog AUTOMOC
+
+ SOURCES
+ settings.ui
+ amarokcatalog.cpp
+ coverimage.cpp
+ song.cpp
+ actionplaysong.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ ${PROJECT_NAME}-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES katapult_amarokcatalog.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/katapult/plugins/catalogs/amarokcatalog/actionplaysong.h b/katapult/plugins/catalogs/amarokcatalog/actionplaysong.h
index 255d1b1..e7efffd 100644
--- a/katapult/plugins/catalogs/amarokcatalog/actionplaysong.h
+++ b/katapult/plugins/catalogs/amarokcatalog/actionplaysong.h
@@ -21,7 +21,7 @@
#ifndef ACTIONPLAYSONG_H
#define ACTIONPLAYSONG_H
-#include "katapultaction.h"
+#include <katapultaction.h>
class KatapultItem;
class TQPixmap;
diff --git a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
index ed4d4dd..071a265 100644
--- a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
+++ b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
@@ -340,3 +340,5 @@ void AmarokCatalog::writeSettings(TDEConfigBase *config)
{
config->writeEntry("MinQueryLen", _minQueryLen);
}
+
+#include "amarokcatalog.moc"
diff --git a/katapult/plugins/catalogs/amarokcatalog/song.cpp b/katapult/plugins/catalogs/amarokcatalog/song.cpp
index cd461ab..f53fdbb 100644
--- a/katapult/plugins/catalogs/amarokcatalog/song.cpp
+++ b/katapult/plugins/catalogs/amarokcatalog/song.cpp
@@ -24,7 +24,7 @@
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqstring.h>
-#include <amarokcatalog.h>
+#include "amarokcatalog.h"
#include "song.h"