]> git.lyx.org Git - lyx.git/blob - development/cmake/src/CMakeLists.txt
Initial cmake support.
[lyx.git] / development / cmake / src / CMakeLists.txt
1 project(lyx-qt4)
2
3 include_directories(${TOP_SRC_DIR}/src)
4
5 add_subdirectory(frontends) 
6 add_subdirectory(graphics) 
7 add_subdirectory(insets) 
8 add_subdirectory(mathed) 
9 add_subdirectory(support) 
10 #add_subdirectory(tex2lyx) 
11
12
13 configure_file(version.C.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.C)
14
15 set(lyx_sources
16         Bidi.C
17         Bidi.h
18         BufferView.C
19         BufferView.h
20         BufferView_pimpl.C
21         BufferView_pimpl.h
22         Bullet.C
23         Bullet.h
24         BranchList.C
25         BranchList.h
26         Chktex.C
27         Chktex.h
28         Color.C
29         Color.h
30         CutAndPaste.C
31         CutAndPaste.h
32         DepTable.C
33         DepTable.h
34         FloatList.C
35         FloatList.h
36         Floating.C
37         Floating.h
38         FontIterator.C
39         FontIterator.h
40         FuncStatus.C
41         FuncStatus.h
42         InsetList.C
43         InsetList.h
44         LColor.C
45         LColor.h
46         LaTeX.C
47         LaTeX.h
48         LaTeXFeatures.C
49         LaTeXFeatures.h
50         LyXAction.C
51         LyXAction.h
52         MenuBackend.C
53         MenuBackend.h
54         ParagraphList.h
55         ParagraphList_fwd.h
56         ParagraphParameters.C
57         ParagraphParameters.h
58         PrinterParams.C
59         PrinterParams.h
60         RowList_fwd.h
61         Spacing.C
62         Spacing.h
63         Thesaurus.C
64         Thesaurus.h
65         ToolbarBackend.C
66         ToolbarBackend.h
67         WordLangTuple.h
68         author.C
69         author.h
70         boost.C
71         box.h
72         box.C
73         buffer.C
74         buffer.h
75         buffer_funcs.C
76         buffer_funcs.h
77         bufferlist.C
78         bufferlist.h
79         bufferparams.C
80         bufferparams.h
81         bufferview_funcs.C
82         bufferview_funcs.h
83         changes.C
84         changes.h
85         chset.C
86         chset.h
87         converter.C
88         converter.h
89         counters.C
90         counters.h
91         coordcache.C
92         coordcache.h
93         cursor.C
94         cursor.h
95         cursor_slice.C
96         cursor_slice.h
97         debug.C
98         debug.h
99         dimension.C
100         dimension.h
101         dociterator.C
102         dociterator.h
103         dispatchresult.h
104         encoding.C
105         encoding.h
106         errorlist.C
107         errorlist.h
108         exporter.C
109         exporter.h
110         gettext.C
111         gettext.h
112         factory.h
113         factory.C
114         format.C
115         format.h
116         funcrequest.h
117         funcrequest.C
118         graph.C
119         graph.h
120         importer.C
121         importer.h
122         intl.C
123         intl.h
124         insetiterator.C
125         insetiterator.h
126         kbmap.C
127         kbmap.h
128         kbsequence.C
129         kbsequence.h
130         language.C
131         language.h
132         session.C
133         session.h
134         layout.h
135         lengthcommon.C
136         lengthcommon.h
137         lfuns.h
138         lyx_cb.C
139         lyx_cb.h
140         lyx_main.C
141         lyx_main.h
142         lyx_sty.C
143         lyx_sty.h
144         lyxfont.C
145         lyxfont.h
146         lyxfind.C
147         lyxfind.h
148         lyxfunc.C
149         lyxfunc.h
150         lyxgluelength.C
151         lyxgluelength.h
152         lyxlayout.C
153         lyxlayout.h
154         lyxlayout_ptr_fwd.h
155         lyxlength.C
156         lyxlength.h
157         lyxlex.C
158         lyxlex.h
159         lyxlex_pimpl.C
160         lyxlex_pimpl.h
161         lyxrc.C
162         lyxrc.h
163         lyxrow.C
164         lyxrow.h
165         lyxrow_funcs.C
166         lyxrow_funcs.h
167         lyxserver.C
168         lyxserver.h
169         lyxsocket.C
170         lyxsocket.h
171         lyxtext.h
172         lyxtextclass.C
173         lyxtextclass.h
174         lyxtextclasslist.C
175         lyxtextclasslist.h
176         lyxvc.C
177         lyxvc.h
178         main.C
179         messages.C
180         messages.h
181         metricsinfo.C
182         metricsinfo.h
183         mover.C
184         mover.h
185         output.C
186         output.h
187         outputparams.C
188         outputparams.h
189         output_docbook.C
190         output_docbook.h
191         output_latex.C
192         output_latex.h
193         output_linuxdoc.C
194         output_linuxdoc.h
195         output_plaintext.C
196         output_plaintext.h
197         paper.h
198         paragraph.C
199         paragraph.h
200         paragraph_funcs.C
201         paragraph_funcs.h
202         paragraph_pimpl.C
203         paragraph_pimpl.h
204         pariterator.C
205         pariterator.h
206         #$(PSPELL) 
207         #$(ISPELL) 
208         SpellBase.C
209         SpellBase.h
210         rowpainter.C
211         rowpainter.h
212         sgml.C
213         sgml.h
214         tabular.C
215         tabular.h
216         tex-accent.C
217         tex-accent.h
218         tex-strings.C
219         tex-strings.h
220         texrow.C
221         texrow.h
222         text.C
223         text2.C
224         text3.C
225         TocBackend.C
226         TocBackend.h
227         toc.C
228         toc.h
229         trans.C
230         trans.h
231         trans_decl.h
232         trans_mgr.C
233         trans_mgr.h
234         undo.C
235         undo.h
236         vc-backend.C
237         vc-backend.h
238         version.h
239         vspace.C
240         vspace.h
241 )
242
243 if(ASPELL_FOUND)
244         include_directories(${ASPELL_INCLUDE_DIR})
245         set(lyx_sources ${lyx_sources} aspell.C)
246 endif(ASPELL_FOUND)
247
248
249 lyx_add_path(lyx_sources ${TOP_SRC_DIR}/src)
250
251 include_directories(${CMAKE_CURRENT_BINARY_DIR})
252
253 add_executable(lyx-qt4 ${lyx_sources} ${CMAKE_CURRENT_BINARY_DIR}/version.C)
254
255 target_link_libraries(lyx-qt4 
256         mathed
257         insets
258         frontends
259         frontend_qt4
260         graphics
261         support
262         intl
263         ${QT_QTMAIN_LIBRARY}
264         boost_iostreams
265 )
266
267 if(ASPELL_FOUND)
268         target_link_libraries(lyx-qt4 ${ASPELL_LIBRARIES})
269 endif(ASPELL_FOUND)