summaryrefslogtreecommitdiffstats
path: root/kaboodle/CMakeLists.txt
blob: 85cb017b77d9ab8ffdcb236b4d0a50db2692f7f3 (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
#################################################
#
#  (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( actions )
add_subdirectory( pics )

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

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${ARTS_LIBRARY_DIRS}
)


##### kaboodle (library) ########################

tde_add_library( kaboodle STATIC_PIC AUTOMOC
  SOURCES
    conf.cpp
    controls.cpp
    engine.cpp
    player.cpp
    view.cpp
    kaboodle_factory.cpp
)


##### libkaboodle (module) ######################

tde_add_kpart( libkaboodlepart AUTOMOC
  SOURCES
    ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
  EMBED
    kaboodle-static
  LINK
    tdeparts-shared
    DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared
    mcop qtmcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared tdemediaplayer-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)

file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" )


##### kaboodle (executable) #####################

tde_add_executable( kaboodle AUTOMOC
  SOURCES
    main.cpp
    kaboodleapp.cpp
    userinterface.cpp
  LINK
    kaboodle-static tdeparts-shared
    DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared
    mcop qtmcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared tdemediaplayer-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


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

tde_create_translated_desktop(
  SOURCE kaboodle.desktop
  PO_DIR kaboodle-desktops
)

install(
  FILES kaboodleui.rc kaboodlepartui.rc
  DESTINATION ${DATA_INSTALL_DIR}/kaboodle
)

tde_create_translated_desktop(
  SOURCE kaboodle_component.desktop kaboodleengine.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
  PO_DIR kaboodle-desktops
)