summaryrefslogtreecommitdiffstats
path: root/tdemid
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:59:04 +0200
commitefcdd889254fc98314dd48854d50e90aa21e53c0 (patch)
tree5dc7034c23a5a18ca31d90225137f5eeaec809c4 /tdemid
parent25709e498d5832125f5f584bd10e3c66d05ec5ee (diff)
downloadtdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.tar.gz
tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8b12682035e2ae92a29a9ce12abc5fbcf38b1192)
Diffstat (limited to 'tdemid')
-rw-r--r--tdemid/CMakeLists.txt93
-rw-r--r--tdemid/examples/CMakeLists.txt19
-rw-r--r--tdemid/maps/CMakeLists.txt19
-rw-r--r--tdemid/pics/CMakeLists.txt12
4 files changed, 143 insertions, 0 deletions
diff --git a/tdemid/CMakeLists.txt b/tdemid/CMakeLists.txt
new file mode 100644
index 00000000..dfab0c5b
--- /dev/null
+++ b/tdemid/CMakeLists.txt
@@ -0,0 +1,93 @@
+#################################################
+#
+# (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( examples )
+add_subdirectory( maps )
+add_subdirectory( pics )
+tde_install_icons( tdemid )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### tdemidlib (library) #######################
+
+tde_add_library( tdemidlib SHARED AUTOMOC
+ SOURCES
+ tdemidframe.cpp tdemidclient.cpp kdisptext.cpp
+ qslidertime.cpp klcdnumber.cpp ktrianglebutton.cpp
+ midicfgdlg.cpp collectdlg.cpp randomlist.cpp
+ channelview.cpp channel.cpp channel3d.cpp channel4d.cpp
+ channelcfgdlg.cpp instrname.cpp rhythmview.cpp
+ songlist.cpp slman.cpp tdemid_part.cpp tdemidIface.skel
+ VERSION 0.0.0
+ LINK
+ DCOP-shared tdecore-shared tdeparts-shared tdeio-shared tdeui-shared tdemid-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### libtdemidpart (module) ####################
+
+tde_add_kpart( libtdemidpart AUTOMOC
+ SOURCES
+ ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp
+ EMBED
+ tdemidlib-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp "" )
+
+
+##### tdemid (executable) #######################
+
+tde_add_executable( tdemid AUTOMOC
+ SOURCES
+ main.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared
+ tdemidlib-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### instrname.i18n (localization template) ####
+
+add_custom_target( instrname.i18n
+ COMMAND echo "/* This is an automatically generated file" > instrname.i18n
+ COMMAND echo " * DO NOT EDIT !!!" >> instrname.i18n
+ COMMAND echo " * To create this file run : make instrname.i18n " >> instrname.i18n
+ COMMAND echo " */" >> instrname.i18n
+ COMMAND echo "" >> instrname.i18n
+ COMMAND awk -f instrfilter.awk instrname.cpp >> instrname.i18n
+ DEPENDS instrname.cpp
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES tdemid.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES x-karaoke.desktop DESTINATION ${MIME_INSTALL_DIR}/audio )
+install( FILES tdemidui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid )
+install( FILES tdemid_partui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid )
+install( FILES audiomidi.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+install( FILES std.sb drums.sb std.o3 drums.o3 DESTINATION ${DATA_INSTALL_DIR}/tdemid/fm )
+install( FILES keyboard.xpm button1.xpm button2.xpm DESTINATION ${DATA_INSTALL_DIR}/tdemid/icons )
diff --git a/tdemid/examples/CMakeLists.txt b/tdemid/examples/CMakeLists.txt
new file mode 100644
index 00000000..128e334e
--- /dev/null
+++ b/tdemid/examples/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install(
+ FILES
+ OFortuna.kar
+ DiesIrae.kar
+ Guantanamera.kar
+ MariaDeLasMercedes.kar
+ DESTINATION ${DATA_INSTALL_DIR}/tdemid
+)
diff --git a/tdemid/maps/CMakeLists.txt b/tdemid/maps/CMakeLists.txt
new file mode 100644
index 00000000..345cb880
--- /dev/null
+++ b/tdemid/maps/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install(
+ FILES
+ gm.map
+ YamahaPSS790.map
+ YamahaPSR500.map
+ YamahaQY10.map
+ DESTINATION ${DATA_INSTALL_DIR}/tdemid/maps
+)
diff --git a/tdemid/pics/CMakeLists.txt b/tdemid/pics/CMakeLists.txt
new file mode 100644
index 00000000..05ca4344
--- /dev/null
+++ b/tdemid/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdemid/icons )