summaryrefslogtreecommitdiffstats
path: root/kmix/CMakeLists.txt
blob: f48d81324cbb50956acd0295c1db22503724a7dc (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
#################################################
#
#  (C) 2012 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( pics )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


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

install( FILES kmix.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kmix.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
install( FILES kmixui.rc DESTINATION ${DATA_INSTALL_DIR}/kmix )
install( FILES restore_kmix_volumes.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
install( FILES kmixapplet.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets )
install( FILES kmixctrl_restore.desktop DESTINATION ${SERVICES_INSTALL_DIR} )


##### kmix_panelapplet (module) #################

tde_add_kpart( kmix_panelapplet AUTOMOC
  SOURCES
    kmixapplet.cpp viewbase.cpp viewapplet.cpp mixdevicewidget.cpp
    mdwslider.cpp mixer.cpp mixset.cpp mixdevice.cpp
    mixer_backend.cpp ksmallslider.cpp volume.cpp kledbutton.cpp
    verticaltext.cpp mixerIface.skel colorwidget.ui
    dialogviewconfiguration.cpp kmixtoolbox.cpp mixertoolbox.cpp
    dialogselectmaster.cpp
  LINK tdeui-shared ${ALSA_LIBRARIES}
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kmix (tdeinit) ############################

tde_add_tdeinit_executable( kmix AUTOMOC
  SOURCES
    main.cpp kmix.cpp kmixdockwidget.cpp kmixprefdlg.cpp
    viewbase.cpp viewoutput.cpp viewinput.cpp viewswitches.cpp
    viewsurround.cpp viewdockareapopup.cpp viewsliders.cpp
    viewgrid.cpp mixdevicewidget.cpp mdwslider.cpp
    mdwswitch.cpp mdwenum.cpp kmixerwidget.cpp mixer.cpp
    mixset.cpp mixdevice.cpp mixer_backend.cpp ksmallslider.cpp
    volume.cpp kledbutton.cpp verticaltext.cpp mixerIface.skel
    kmixtoolbox.cpp mixertoolbox.cpp dialogviewconfiguration.cpp
    KMixApp.cpp dialogselectmaster.cpp kmixIface.skel
  LINK tdeui-shared ${ALSA_LIBRARIES}
)


##### kmixctrl (tdeinit) ########################

tde_add_tdeinit_executable( kmixctrl AUTOMOC
  SOURCES
    kmixctrl.cpp mixer.cpp mixset.cpp mixdevice.cpp
    volume.cpp mixerIface.skel mixertoolbox.cpp
    mixer_backend.cpp
  LINK tdecore-shared ${ALSA_LIBRARIES}
)