~ubuntu-branches/ubuntu/trusty/kdeplasma-addons/trusty

« back to all changes in this revision

Viewing changes to libs/lancelot/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mfrom: (1.1.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525095014-6mlrm9z9bkws0zkt
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Bump kde-sc-dev-latest build-dep version to 4.4.80
  - Refresh kubuntu_04_kimpanel_disable_scim.diff
  - Update various .install files
  - Drop liblancelot0a and liblancelot-dev packages; Upstream has broken ABI
    without an .so version bump, and after discussion with Debian it was
    decided it was not worth it to ship an unstable library.
  - Add liblancelot files to plasma-widget-lancelot, adding appropriate
    Replaces: entries
* Switch to source format 3.0 (quilt):
  - Bump debhelper build-depend version to 7.3.16 or greater

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(liblancelot)
 
2
 
 
3
find_package(KDE4 REQUIRED)
 
4
include (KDE4Defaults)
 
5
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
 
6
 
 
7
########### define variables ##########
 
8
 
 
9
set(LANCELOT_INCLUDE_DIR
 
10
        "${CMAKE_CURRENT_SOURCE_DIR}/.."
 
11
        "${CMAKE_CURRENT_SOURCE_DIR}/"
 
12
        CACHE STRING
 
13
        "Location of liblancelot headers"
 
14
        FORCE)
 
15
 
 
16
set(LANCELOT_LIBS
 
17
        "lancelot"
 
18
        CACHE STRING
 
19
        "Location of liblancelot binary"
 
20
        FORCE)
 
21
 
 
22
include_directories(
 
23
        ${CMAKE_SOURCE_DIR}
 
24
        ${CMAKE_BINARY_DIR}
 
25
        ${CMAKE_CURRENT_SOURCE_DIR}
 
26
        ${CMAKE_CURRENT_BINARY_DIR}
 
27
        ${KDE4_INCLUDES}
 
28
 
 
29
        ${LANCELOT_INCLUDE_DIR}
 
30
)
 
31
 
 
32
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
 
33
 
 
34
########### libLancelot ###############
 
35
 
 
36
set(lancelot_LIB_SRCS
 
37
        Global.cpp
 
38
 
 
39
        # Widgets
 
40
        widgets/Widget.cpp
 
41
        widgets/BasicWidget.cpp
 
42
        widgets/ExtenderButton.cpp
 
43
        widgets/Panel.cpp
 
44
        widgets/ResizeBordersPanel.cpp
 
45
        widgets/HoverIcon.cpp
 
46
        widgets/TabBar.cpp
 
47
 
 
48
        widgets/ScrollBar.cpp
 
49
        widgets/ScrollPane.cpp
 
50
 
 
51
        widgets/ActionListView.cpp
 
52
        widgets/PassagewayView.cpp
 
53
 
 
54
        widgets/CustomListView.cpp
 
55
 
 
56
        widgets/PopupList.cpp
 
57
        widgets/PopupMenu.cpp
 
58
 
 
59
        widgets/CustomItemBackground_p.cpp
 
60
 
 
61
        # Layouts
 
62
        layouts/FullBorderLayout.cpp
 
63
        layouts/NodeLayout.cpp
 
64
        layouts/CardLayout.cpp
 
65
        layouts/ColumnLayout.cpp
 
66
        layouts/FlipLayout.cpp
 
67
 
 
68
        # Models
 
69
        models/ActionListModel.cpp
 
70
        models/StandardActionListModel.cpp
 
71
        models/MergedActionListModel.cpp
 
72
 
 
73
        models/ActionTreeModel.cpp
 
74
        models/StandardActionTreeModel.cpp
 
75
        models/ActionTreeModelProxy.cpp
 
76
 
 
77
        models/PlasmaServiceListModel.cpp
 
78
 
 
79
        # models/ActionListViewModels.cpp
 
80
        # models/PassagewayViewModels.cpp
 
81
)
 
82
 
 
83
kde4_add_library(lancelot SHARED ${lancelot_LIB_SRCS})
 
84
 
 
85
target_link_libraries(
 
86
   lancelot
 
87
   ${KDE4_KIO_LIBS}
 
88
   ${KDE4_KFILE_LIBS}
 
89
   ${KDE4_PLASMA_LIBS}
 
90
)
 
91
 
 
92
set_target_properties(lancelot PROPERTIES VERSION 1.9.0 SOVERSION 0)
 
93
install(TARGETS lancelot ${INSTALL_TARGETS_DEFAULT_ARGS})
 
94
 
 
95
########### install files ###############
 
96
 
 
97
set(lancelot_LIB_INCLUDES
 
98
   lancelot.h
 
99
   lancelot_export.h
 
100
   Global.h
 
101
)
 
102
 
 
103
install(FILES
 
104
   ${lancelot_LIB_INCLUDES}
 
105
   DESTINATION ${INCLUDE_INSTALL_DIR}/lancelot COMPONENT Devel
 
106
)
 
107
 
 
108
install(FILES
 
109
   widgets/ActionListView.h
 
110
   widgets/BasicWidget.h
 
111
   #widgets/CustomListView.h
 
112
   widgets/ExtenderButton.h
 
113
   widgets/Panel.h
 
114
   widgets/PassagewayView.h
 
115
   widgets/ResizeBordersPanel.h
 
116
   widgets/Widget.h
 
117
   widgets/HoverIcon.h
 
118
   widgets/TabBar.h
 
119
   widgets/PopupList.h
 
120
   widgets/PopupMenu.h
 
121
   DESTINATION ${INCLUDE_INSTALL_DIR}/lancelot/widgets COMPONENT Devel)
 
122
 
 
123
install(FILES
 
124
   layouts/FullBorderLayout.h
 
125
   layouts/NodeLayout.h
 
126
   layouts/CardLayout.h
 
127
   layouts/ColumnLayout.h
 
128
   layouts/FlipLayout.h
 
129
   DESTINATION ${INCLUDE_INSTALL_DIR}/lancelot/layouts COMPONENT Devel)
 
130
 
 
131
install(FILES
 
132
   models/ActionListModel.h
 
133
   models/StandardActionListModel.h
 
134
   models/MergedActionListModel.h
 
135
 
 
136
   models/ActionTreeModel.h
 
137
   models/StandardActionTreeModel.h
 
138
   models/ActionTreeModelProxy.h
 
139
 
 
140
   models/PlasmaServiceListModel.h
 
141
 
 
142
   # models/ActionListViewModels.h
 
143
   # models/PassagewayViewModels.h
 
144
   DESTINATION ${INCLUDE_INSTALL_DIR}/lancelot/models COMPONENT Devel)
 
145
 
 
146
install(FILES
 
147
   Lancelot/ActionListModel
 
148
   Lancelot/ActionListView
 
149
   Lancelot/ActionTreeModel
 
150
   Lancelot/ActionTreeModelProxy
 
151
   Lancelot/BasicWidget
 
152
   Lancelot/CardLayout
 
153
   Lancelot/ColumnLayout
 
154
   Lancelot/CustomListView
 
155
   Lancelot/ExtenderButton
 
156
   Lancelot/FlipLayout
 
157
   Lancelot/FullBorderLayout
 
158
   Lancelot/Global
 
159
   Lancelot/HoverIcon
 
160
   Lancelot/Lancelot
 
161
   Lancelot/LancelotTestApplication
 
162
   Lancelot/LancelotTestWindow
 
163
   Lancelot/MergedActionListModel
 
164
   Lancelot/NodeLayout
 
165
   Lancelot/Panel
 
166
   Lancelot/PassagewayView
 
167
   Lancelot/PlasmaServiceListModel
 
168
   Lancelot/PopupList
 
169
   Lancelot/PopupMenu
 
170
   Lancelot/TabBar
 
171
   Lancelot/ResizeBordersPanel
 
172
   Lancelot/ScrollBar
 
173
   Lancelot/ScrollPane
 
174
   Lancelot/StandardActionListModel
 
175
   Lancelot/StandardActionTreeModel
 
176
   Lancelot/Widget
 
177
   DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Lancelot COMPONENT Devel)
 
178
 
 
179
# tests
 
180
# add_subdirectory(tests)