summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
commit8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch)
tree1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /tdefile-plugins
parent250d713ff809fa943f614459009d1160e269dcef (diff)
downloadtdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz
tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdefile-plugins')
-rw-r--r--tdefile-plugins/CMakeLists.txt22
-rw-r--r--tdefile-plugins/au/CMakeLists.txt38
-rw-r--r--tdefile-plugins/avi/CMakeLists.txt38
-rw-r--r--tdefile-plugins/flac/CMakeLists.txt39
-rw-r--r--tdefile-plugins/m3u/CMakeLists.txt38
-rw-r--r--tdefile-plugins/mp3/CMakeLists.txt39
-rw-r--r--tdefile-plugins/mpc/CMakeLists.txt39
-rw-r--r--tdefile-plugins/mpeg/CMakeLists.txt39
-rw-r--r--tdefile-plugins/ogg/CMakeLists.txt38
-rw-r--r--tdefile-plugins/sid/CMakeLists.txt38
-rw-r--r--tdefile-plugins/theora/CMakeLists.txt40
-rw-r--r--tdefile-plugins/theora/ConfigureChecks.cmake17
-rw-r--r--tdefile-plugins/wav/CMakeLists.txt39
13 files changed, 464 insertions, 0 deletions
diff --git a/tdefile-plugins/CMakeLists.txt b/tdefile-plugins/CMakeLists.txt
new file mode 100644
index 00000000..526e203e
--- /dev/null
+++ b/tdefile-plugins/CMakeLists.txt
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( au )
+add_subdirectory( avi )
+tde_conditional_add_subdirectory( WITH_TAGLIB flac )
+add_subdirectory( m3u )
+tde_conditional_add_subdirectory( WITH_TAGLIB mp3 )
+tde_conditional_add_subdirectory( HAVE_TAGLIB_MPC_H mpc )
+add_subdirectory( mpeg )
+tde_conditional_add_subdirectory( WITH_VORBIS ogg )
+add_subdirectory( sid )
+tde_conditional_add_subdirectory( WITH_THEORA theora )
+add_subdirectory( wav )
diff --git a/tdefile-plugins/au/CMakeLists.txt b/tdefile-plugins/au/CMakeLists.txt
new file mode 100644
index 00000000..669e348a
--- /dev/null
+++ b/tdefile-plugins/au/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_au (module) #######################
+
+tde_add_kpart( tdefile_au AUTOMOC
+ SOURCES
+ tdefile_au.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_au.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/avi/CMakeLists.txt b/tdefile-plugins/avi/CMakeLists.txt
new file mode 100644
index 00000000..9badedec
--- /dev/null
+++ b/tdefile-plugins/avi/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_avi (module) ######################
+
+tde_add_kpart( tdefile_avi AUTOMOC
+ SOURCES
+ tdefile_avi.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_avi.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/flac/CMakeLists.txt b/tdefile-plugins/flac/CMakeLists.txt
new file mode 100644
index 00000000..d668adf2
--- /dev/null
+++ b/tdefile-plugins/flac/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_flac (module) #####################
+
+tde_add_kpart( tdefile_flac AUTOMOC
+ SOURCES
+ tdefile_flac.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_flac.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/m3u/CMakeLists.txt b/tdefile-plugins/m3u/CMakeLists.txt
new file mode 100644
index 00000000..087194fa
--- /dev/null
+++ b/tdefile-plugins/m3u/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_m3u (module) ######################
+
+tde_add_kpart( tdefile_m3u AUTOMOC
+ SOURCES
+ tdefile_m3u.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_m3u.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/mp3/CMakeLists.txt b/tdefile-plugins/mp3/CMakeLists.txt
new file mode 100644
index 00000000..b75b7ccb
--- /dev/null
+++ b/tdefile-plugins/mp3/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_mp3 (module) ######################
+
+tde_add_kpart( tdefile_mp3 AUTOMOC
+ SOURCES
+ tdefile_mp3.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_mp3.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/mpc/CMakeLists.txt b/tdefile-plugins/mpc/CMakeLists.txt
new file mode 100644
index 00000000..b9f7d764
--- /dev/null
+++ b/tdefile-plugins/mpc/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_mpc (module) ######################
+
+tde_add_kpart( tdefile_mpc AUTOMOC
+ SOURCES
+ tdefile_mpc.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_mpc.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/mpeg/CMakeLists.txt b/tdefile-plugins/mpeg/CMakeLists.txt
new file mode 100644
index 00000000..45e73226
--- /dev/null
+++ b/tdefile-plugins/mpeg/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_mpeg (module) #####################
+
+tde_add_kpart( tdefile_mpeg AUTOMOC
+ SOURCES
+ tdefile_mpeg.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_mpeg.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/ogg/CMakeLists.txt b/tdefile-plugins/ogg/CMakeLists.txt
new file mode 100644
index 00000000..e00a3ad9
--- /dev/null
+++ b/tdefile-plugins/ogg/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_ogg (module) ######################
+
+tde_add_kpart( tdefile_ogg AUTOMOC
+ SOURCES
+ tdefile_ogg.cpp vcedit.c
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_ogg.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/sid/CMakeLists.txt b/tdefile-plugins/sid/CMakeLists.txt
new file mode 100644
index 00000000..5802a35a
--- /dev/null
+++ b/tdefile-plugins/sid/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_sid (module) ######################
+
+tde_add_kpart( tdefile_sid AUTOMOC
+ SOURCES
+ tdefile_sid.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_sid.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/theora/CMakeLists.txt b/tdefile-plugins/theora/CMakeLists.txt
new file mode 100644
index 00000000..ab088244
--- /dev/null
+++ b/tdefile-plugins/theora/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_theora (module) ###################
+
+tde_add_kpart( tdefile_theora AUTOMOC
+ SOURCES
+ tdefile_theora.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${THEORA_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_theora.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/tdefile-plugins/theora/ConfigureChecks.cmake b/tdefile-plugins/theora/ConfigureChecks.cmake
new file mode 100644
index 00000000..ee6af7e9
--- /dev/null
+++ b/tdefile-plugins/theora/ConfigureChecks.cmake
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( WITH_THEORA )
+ pkg_search_module( THEORA theora )
+ if( NOT THEORA_FOUND )
+ tde_message_fatal( "theora is requested, but not found on your system" )
+ endif( )
+endif( WITH_THEORA )
diff --git a/tdefile-plugins/wav/CMakeLists.txt b/tdefile-plugins/wav/CMakeLists.txt
new file mode 100644
index 00000000..30a95083
--- /dev/null
+++ b/tdefile-plugins/wav/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdefile_wav (module) ######################
+
+tde_add_kpart( tdefile_wav AUTOMOC
+ SOURCES
+ tdefile_wav.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
+ tdetexteditor-shared ${TAGLIB_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdefile_wav.desktop DESTINATION ${SERVICES_INSTALL_DIR} )