introtduction of the actionmanager
[silence:silence.git] / CMakeLists.txt
1 project( silence )
2 cmake_minimum_required( VERSION 2.6 )
3 set ( CMAKE_BUILD_TYPE Release )
4 add_definitions ( -Wall )
5 find_package ( Qt4 REQUIRED )
6 find_package ( KDE4 REQUIRED )
7 include_directories (
8         ${CMAKE_SOURCE_DIR}
9         ${CMAKE_CURRENT_BINARY_DIR}
10         ${KDE4_INCLUDES}
11         )
12 set ( silence_HDRS
13         src/controller.h
14         src/constants.h
15         src/data/node/nodeid.h
16         src/data/node/abstractnodecontent.h
17         src/data/node/abstractcontentchange.h
18         src/data/node/textcontentchange.h
19         src/data/node/rtfcontentchange.h
20         src/data/node/customnodecontent.h
21         src/data/node/customnodeitem.h
22         src/data/node/customnodetypedefinition.h
23         src/data/node/customcontentchange.h
24         src/data/label.h
25         src/data/aboutdata.h
26         src/data/model/simpletreemodel.h
27         src/gui/view/contentview.h
28         src/gui/widget/syntaxbox.h
29         src/commandline/cmdmain.h
30         src/commandline/cmdlineoptions.h
31         src/commandline/nodefilter.h
32         src/utils/listutils.h
33         src/persistence/xmldatastore.h
34         src/data/node/node.h
35         src/data/node/textnodecontent.h
36         src/data/node/richtextnodecontent.h
37         src/data/model/labelmodel.h
38         src/data/model/treemodel.h
39         src/data/model/listproxymodel.h
40         src/data/model/filtermodel.h
41         src/gui/mainwindow.h
42         src/gui/sistatusbar.h
43         src/gui/actionmanager.h
44         src/gui/menu/viewmenu.h
45         src/gui/dialog/newnodedialog.h
46         src/gui/dialog/newlinkdialog.h
47         src/gui/dialog/labelmanagementdialog.h
48         src/gui/sidebar/treeview.h
49         src/gui/sidebar/infosidebar.h
50         src/gui/sidebar/searchnodesidebar.h
51         src/gui/sidebar/nodepropertywidget.h
52         src/gui/sidebar/navigationsidebar.h
53         src/gui/view/abstractcontentview.h
54         src/gui/view/textedit.h
55         src/gui/view/welcomeview.h
56         src/gui/view/richtextedit.h
57         src/gui/view/customcontentview.h
58         src/gui/widget/rtfedit.h
59         src/gui/widget/textfind.h
60         src/gui/widget/labelwidget.h
61         src/gui/widget/inputwidget.h
62         src/gui/widget/addimage.h
63         src/gui/widget/addtable.h
64         src/gui/widget/searchnodeoptions.h
65         src/gui/widget/labellist.h
66         src/gui/widget/notificationbox.h
67         src/gui/widget/nodetypemanager.h
68         src/gui/widget/nodetypebuilder.h
69         src/gui/widget/nodetypespanel.h
70         src/gui/widget/customnodeelement.h
71         src/gui/widget/customdatawidget.h
72         src/gui/widget/customstringdatawidget.h
73         src/gui/widget/customtextdatawidget.h
74         src/gui/widget/customintegerdatawidget.h
75         src/gui/widget/customnumberdatawidget.h
76         src/gui/widget/custombooleandatawidget.h
77         src/gui/widget/customimagedatawidget.h
78         )
79
80 set ( silence_SRCS
81         src/main.cpp
82         src/controller.cpp
83         src/persistence/xmldatastore.cpp
84         src/data/node/node.cpp
85         src/data/node/nodeid.cpp
86         src/data/node/textnodecontent.cpp
87         src/data/node/richtextnodecontent.cpp
88         src/data/node/textcontentchange.cpp
89         src/data/node/rtfcontentchange.cpp
90         src/data/node/customnodecontent.cpp
91         src/data/node/customnodeitem.cpp
92         src/data/node/customnodetypedefinition.cpp
93         src/data/node/customcontentchange.cpp
94         src/data/label.cpp
95         src/data/aboutdata.cpp
96         src/data/model/labelmodel.cpp
97         src/data/model/treemodel.cpp
98         src/data/model/simpletreemodel.cpp
99         src/data/model/filtermodel.cpp
100         src/data/model/listproxymodel.cpp
101         src/gui/mainwindow.cpp
102         src/gui/sistatusbar.cpp
103         src/gui/actionmanager.cpp
104         src/gui/menu/viewmenu.cpp
105         src/gui/dialog/newnodedialog.cpp
106         src/gui/dialog/newlinkdialog.cpp
107         src/gui/dialog/labelmanagementdialog.cpp
108         src/gui/sidebar/treeview.cpp
109         src/gui/sidebar/infosidebar.cpp
110         src/gui/sidebar/searchnodesidebar.cpp
111         src/gui/sidebar/nodepropertywidget.cpp
112         src/gui/sidebar/navigationsidebar.cpp
113         src/gui/view/textedit.cpp
114         src/gui/view/contentview.cpp
115         src/gui/view/welcomeview.cpp
116         src/gui/view/richtextedit.cpp
117         src/gui/view/customcontentview.cpp
118         src/gui/widget/rtfedit.cpp
119         src/gui/widget/textfind.cpp
120         src/gui/widget/labelwidget.cpp
121         src/gui/widget/syntaxbox.cpp
122         src/gui/widget/inputwidget.cpp
123         src/gui/widget/addimage.cpp
124         src/gui/widget/addtable.cpp
125         src/gui/widget/searchnodeoptions.cpp
126         src/gui/widget/labellist.cpp
127         src/gui/widget/notificationbox.cpp
128         src/gui/widget/nodetypemanager.cpp
129         src/gui/widget/nodetypebuilder.cpp
130         src/gui/widget/nodetypespanel.cpp
131         src/gui/widget/customnodeelement.cpp
132         src/gui/widget/customstringdatawidget.cpp
133         src/gui/widget/customtextdatawidget.cpp
134         src/gui/widget/customintegerdatawidget.cpp
135         src/gui/widget/customnumberdatawidget.cpp
136         src/gui/widget/custombooleandatawidget.cpp
137         src/gui/widget/customimagedatawidget.cpp
138         src/commandline/cmdmain.cpp
139         src/commandline/cmdlineoptions.cpp
140         src/commandline/nodefilter.cpp
141         src/utils/listutils.cpp
142         )
143
144 add_subdirectory( icons )
145 add_subdirectory( po )
146
147 set ( silence_RSCS
148         silence.qrc
149         )
150 QT4_ADD_RESOURCES(RSCS ${silence_RSCS})
151
152 set ( silence_MOCS
153         src/persistence/abstractdatastore.h
154         )
155 QT4_WRAP_CPP(MOCS ${silence_MOCS})
156
157 kde4_add_executable ( silence
158         ${silence_SRCS}
159         ${UIS}
160         ${RSCS}
161         ${TRS}
162         ${MOCS}
163 )
164 target_link_libraries ( silence
165         ${KDE4_KDEUI_LIBS}
166         ${KDE4_KIO_LIBS}
167         ${KDE4_KTEXTEDITOR_LIBS}
168 )
169
170 install(TARGETS silence  ${INSTALL_TARGETS_DEFAULT_ARGS} )
171 install(FILES Silence.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
172 install(FILES src/silenceui.rc  DESTINATION ${DATA_INSTALL_DIR}/silence)
173
174
175
176
177