summaryrefslogtreecommitdiffstats
path: root/style/CMakeLists.txt
blob: 6dcc6cf666dc1c864306454809e6d058f6c33eef (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
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${X11_INCLUDE_DIR}
  ${X11_XTEST_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIBRARY_DIRS}
  ${X11_LIBRARY_DIRS}
  ${X11_XTEST_LIBRARY_DIRS}
)


##### pixmaps.h (header)

set( _pics ${CMAKE_SOURCE_DIR}/imagebase/brushed-gradient
           ${CMAKE_SOURCE_DIR}/imagebase/brushed-tile
           ${CMAKE_SOURCE_DIR}/imagebase/button-base
           ${CMAKE_SOURCE_DIR}/imagebase/button-milk
           ${CMAKE_SOURCE_DIR}/imagebase/button-glow
           ${CMAKE_SOURCE_DIR}/imagebase/button-jaguar
           ${CMAKE_SOURCE_DIR}/imagebase/button-shadow
           ${CMAKE_SOURCE_DIR}/imagebase/checkbox
           ${CMAKE_SOURCE_DIR}/imagebase/checkboxdown
           ${CMAKE_SOURCE_DIR}/imagebase/checkbox-milk
           ${CMAKE_SOURCE_DIR}/imagebase/checkboxdown-milk
           ${CMAKE_SOURCE_DIR}/imagebase/combo
           ${CMAKE_SOURCE_DIR}/imagebase/combo-milk
           ${CMAKE_SOURCE_DIR}/imagebase/combo-jaguar
           ${CMAKE_SOURCE_DIR}/imagebase/combo-shadow
           ${CMAKE_SOURCE_DIR}/imagebase/progress
           ${CMAKE_SOURCE_DIR}/imagebase/progress2
           ${CMAKE_SOURCE_DIR}/imagebase/radio
           ${CMAKE_SOURCE_DIR}/imagebase/radio_down
           ${CMAKE_SOURCE_DIR}/imagebase/radio-milk
           ${CMAKE_SOURCE_DIR}/imagebase/radio_down-milk
           ${CMAKE_SOURCE_DIR}/imagebase/rectbutton
           ${CMAKE_SOURCE_DIR}/imagebase/roundFrame
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_btm
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_mid
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_top
           ${CMAKE_SOURCE_DIR}/imagebase/sbIslider_mid
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_btm
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_btm_shd
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_mid
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_top
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_top_shd
           ${CMAKE_SOURCE_DIR}/imagebase/sb_subadd
           ${CMAKE_SOURCE_DIR}/imagebase/sliderarrow
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_btm-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_mid-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sbgroove_top-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_btm-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_mid-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sbslider_top-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sb_subadd-milk
           ${CMAKE_SOURCE_DIR}/imagebase/sliderarrow-milk
           ${CMAKE_SOURCE_DIR}/imagebase/tab
           ${CMAKE_SOURCE_DIR}/imagebase/tab-milk
           ${CMAKE_SOURCE_DIR}/imagebase/tab-jaguar
)

set( _header pixmaps.h )

add_custom_command(
    OUTPUT  ${_header}  
    COMMAND ${UIC_EXECUTABLE}
    ARGS -o ${_header} -embed baghira ${_pics}
    DEPENDS ${_pics}
)


##### baghira (kpart)

set_source_files_properties(
    baghira.cpp
    PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header}
)

tde_add_kpart( baghira AUTOMOC

  SOURCES
        baghira.cpp
        optionHandler.cpp
        polish.cpp utils.cpp
  LINK
     tdecore-shared
     tdeui-shared
     ${X11_XTEST_LIBRARIES}

  DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles
)


install(
    FILES baghira.themerc
    DESTINATION ${DATA_INSTALL_DIR}/tdestyle/themes
)