blob: 2c90de951b73184319649acc402b270367b37624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
#################################################
#
# (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}
)
configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake part_dummy.cpp COPYONLY )
##### 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 ################################
tde_create_translated_desktop(
SOURCE tdemid.desktop
PO_DIR tdemid-desktops
)
tde_create_translated_desktop(
SOURCE x-karaoke.desktop
DESTINATION ${MIME_INSTALL_DIR}/audio
PO_DIR tdemid-desktops
)
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 )
|