summaryrefslogtreecommitdiffstats
path: root/krec/CMakeLists.txt
blob: c5aadced8bcdf10f9bb562570711bc977373b3c7 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#################################################
#
#  (C) 2017 Slávek Banko
#  slavek (DOT) banko (AT) axis.cz
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

tde_conditional_add_subdirectory( WITH_LAME mp3_export )
tde_conditional_add_subdirectory( WITH_VORBIS ogg_export )
add_subdirectory( pics )
tde_install_icons( krec )

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}/arts/gui/common
  ${CMAKE_BINARY_DIR}/arts/midi
  ${CMAKE_BINARY_DIR}/arts/modules/common
  ${CMAKE_BINARY_DIR}/arts/modules/effects
  ${CMAKE_BINARY_DIR}/arts/modules/synth
  ${CMAKE_SOURCE_DIR}/arts/gui/kde
  ${CMAKE_SOURCE_DIR}/arts/tools
  ${ARTS_INCLUDE_DIRS}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${ARTSC_LIBRARY_DIRS}
)


##### krec_commont (library) ####################

tde_add_library( krec_common STATIC_PIC AUTOMOC
  SOURCES
    krecglobal.cpp
    krecexport_template.cpp
    krecconfig_fileswidget.cpp
)


##### krec (tdeinit) ############################

tde_add_tdeinit_executable( krec AUTOMOC
  SOURCES
    krecnewproperties.cpp
    krecfile.cpp
    krecfileview.cpp
    krecfileviewhelpers.cpp
    krecfilewidgets.cpp
    main.cpp
    krecord.cpp
  LINK
    DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
    tdeutils-shared tdetexteditor-shared
    mcop kmedia2_idl soundserver_idl artsflow_idl
    artsmoduleseffects-shared artscontrolsupport-shared artsgui_kde-shared
    krec_common-static ${DL_LIBRARIES} artskde-shared
    ${ARTSC_LIBRARIES} pthread
)


##### kcm_krec (module) #########################

tde_add_kpart( kcm_krec AUTOMOC
  SOURCES
    krecconfigure.cpp
  LINK
    DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
    tdeutils-shared tdetexteditor-shared
    mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared
    krec_common-static
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcm_krec_files (module) ###################

tde_add_kpart( kcm_krec_files AUTOMOC
  SOURCES
    krecconfig_files.cpp
  LINK
    DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
    tdeutils-shared tdetexteditor-shared
    mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared
    krec_common-static
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### libkrecexport_wave (module) ###############

tde_add_kpart( libkrecexport_wave AUTOMOC
  SOURCES
    krecexport_wave.cpp
  LINK
    DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared
    tdeutils-shared tdetexteditor-shared
    mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared
    krec_common-static
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### other data ################################

tde_create_translated_desktop(
  SOURCE krec.desktop
  PO_DIR krec-desktops
)

install( FILES krecui.rc DESTINATION ${DATA_INSTALL_DIR}/krec )

tde_create_translated_desktop(
  SOURCE kcm_krec.desktop kcm_krec_files.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
  PO_DIR krec-desktops
)

install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/krec )

tde_create_translated_desktop(
  SOURCE krec_exportitem.desktop
  DESTINATION ${SERVICETYPES_INSTALL_DIR}
  PO_DIR krec-desktops
)

tde_create_translated_desktop(
  SOURCE krec_exportwave.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
  PO_DIR krec-desktops
)