Subversion Repositories Scribus

Rev

Rev 23020 | Rev 23280 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19821 craig 1
#For those that want it, show the SVN version in the About dialog
21543 craig 2
if (WANT_SVNVERSION)
3
	add_definitions(-DHAVE_SVNVERSION)
4
	message(STATUS "SVN Version requested in About dialog")
19226 craig 5
	# a custom target that is always built
19176 craig 6
 
21543 craig 7
	if (NOT CMAKE_VERSION VERSION_LESS "3.2.0")
23017 craig 8
		add_custom_target(svnheader ALL COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_MODULE_PATH}/getsvn.cmake BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h)
21543 craig 9
	else ()
23017 craig 10
		add_custom_target(svnheader ALL DEPENDS svn_header ) # svn_header is nothing more than a unique string
11
		# creates svnheader.h using cmake script
12
		add_custom_command(OUTPUT svn_header ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h
20019 avox 13
		COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_MODULE_PATH}/getsvn.cmake)
23017 craig 14
		set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/svnversion.h
15
			PROPERTIES GENERATED TRUE
16
			HEADER_FILE_ONLY TRUE)
21543 craig 17
	endif ()
18
endif ()
19176 craig 19
 
21543 craig 20
if(WIN32)
21
	add_definitions(-DQT_DLL)
22
endif()
10778 craig 23
 
21543 craig 24
add_subdirectory(dtd)
25
add_subdirectory(colormgmt)
26
add_subdirectory(desaxe)
27
add_subdirectory(fonts)
28
add_subdirectory(styles)
29
add_subdirectory(text)
30
add_subdirectory(ui/qml)
31
if(WITH_TESTS)
32
	add_subdirectory(tests)
33
endif()
34
if (WANT_DESIGNER)
35
	add_subdirectory(designer)
36
endif ()
37
add_subdirectory(third_party)
5142 cbradney 38
 
21543 craig 39
if(HAVE_OSG)
40
	set(SCRIBUS_OSG_UI_SRC
19821 craig 41
		ui/osgeditor.ui
19079 craig 42
	)
21543 craig 43
	set(SCRIBUS_OSG_CLASS
19821 craig 44
		ui/AdapterWidget.h
45
		ui/osgeditor.h
46
		pageitem_osgframe.h
19079 craig 47
	)
21543 craig 48
	set(SCRIBUS_OSG_SRC
19821 craig 49
		ui/AdapterWidget.cpp
50
		ui/osgeditor.cpp
51
		pageitem_osgframe.cpp
19079 craig 52
	)
21543 craig 53
endif ()
13962 herm 54
 
21543 craig 55
if (GMAGICK_FOUND)
56
	set(SCRIBUS_GMAGICK_SRC imagedataloaders/scimgdataloader_gmagick.cpp)
57
else()
58
	set(SCRIBUS_GMAGICK_SRC)
59
endif()
13962 herm 60
 
13808 pierre 61
# We setup something like a group to gather setter related stuff
19821 craig 62
# because it could expand into a huge amount of files at some point.
21543 craig 63
set(SCRIBUS_ITEMSETTERS_UI_SRC
19821 craig 64
	ui/positionsetter.ui
65
	ui/rotationsetter.ui
13808 pierre 66
)
19821 craig 67
 
21543 craig 68
set(SCRIBUS_ITEMSETTERS_CLASS
14509 cbradney 69
	openpalettemanager.h
70
	openpalettemodel.h
71
	pageitemsettersmanager.h
72
	ui/openpalette.h
73
	ui/openpaletteview.h
74
	ui/pageitempositionsetter.h
75
	ui/pageitemrotationsetter.h
13808 pierre 76
)
19821 craig 77
 
21543 craig 78
set(SCRIBUS_ITEMSETTERS_SRC
14509 cbradney 79
	openpalettemanager.cpp
80
	openpalettemodel.cpp
81
	pageitemsettersmanager.cpp
82
	ui/openpalette.cpp
83
	ui/openpaletteview.cpp
84
	ui/pageitemsetterbase.cpp
85
	ui/pageitempositionsetter.cpp
86
	ui/pageitemrotationsetter.cpp
13808 pierre 87
)
88
 
21543 craig 89
set(SCRIBUS_UI_SRC
19079 craig 90
	ui/aboutplugins.ui
23088 jghali 91
	ui/actionsearchdialog.ui
19079 craig 92
	ui/aligndistribute.ui
20235 jghali 93
	ui/annot.ui
19079 craig 94
	ui/arcvectorbase.ui
95
	ui/arcwidgetbase.ui
96
	ui/charselect.ui
97
	ui/charselectenhanced.ui
98
	ui/cmsprefsbase.ui
20155 jghali 99
	ui/cmykfwbase.ui
19079 craig 100
	ui/colorpalette.ui
21926 craig 101
	ui/colorsandfillsbase.ui
22444 jghali 102
	ui/cxfimportdialogbase.ui
19783 craig 103
	ui/downloadspalettebase.ui
19079 craig 104
	ui/gradientaddedit.ui
105
	ui/gradienteditor.ui
106
	ui/gradientvectorbase.ui
107
	ui/gtfiledialog.ui
108
	ui/guidemanager.ui
109
	ui/insertaframe.ui
110
	ui/inserttablecolumnsdialog.ui
111
	ui/inserttablerowsdialog.ui
112
	ui/latexeditor.ui
113
	ui/newmarginwidgetbase.ui
114
	ui/mark2item.ui
115
	ui/mark2mark.ui
116
	ui/markanchor.ui
117
	ui/marknote.ui
118
	ui/marksmanager.ui
119
	ui/markvariabletext.ui
120
	ui/measurementsbase.ui
121
	ui/multipleduplicate.ui
122
	ui/multiprogressdialog.ui
123
	ui/nftdialog.ui
124
	ui/nftwidget.ui
125
	ui/notesstyleseditor.ui
126
	ui/pageitemattributes.ui
127
	ui/pagepalette_pagesbase.ui
128
	ui/pagepalette_masterpagesbase.ui
129
	ui/picsearch.ui
130
	ui/picsearchoptions.ui
131
	ui/picstatus.ui
132
	ui/polygonwidgetbase.ui
133
	ui/preferencesdialogbase.ui
134
	ui/prefs_colormanagementbase.ui
135
	ui/prefs_displaybase.ui
136
	ui/prefs_documentinformationbase.ui
137
	ui/prefs_documentsectionsbase.ui
138
	ui/prefs_documentsetupbase.ui
139
	ui/prefs_externaltoolsbase.ui
140
	ui/prefs_fontsbase.ui
141
	ui/prefs_guidesbase.ui
142
	ui/prefs_hyphenatorbase.ui
143
	ui/prefs_imagecachebase.ui
144
	ui/prefs_keyboardshortcutsbase.ui
145
	ui/prefs_miscellaneousbase.ui
146
	ui/prefs_pathsbase.ui
147
	ui/prefs_pagesizesbase.ui
148
	ui/prefs_pluginsbase.ui
149
	ui/prefs_preflightverifierbase.ui
150
	ui/prefs_printerbase.ui
151
	ui/prefs_scrapbookbase.ui
152
	ui/prefs_spellingbase.ui
153
	ui/prefs_typographybase.ui
154
	ui/prefs_userinterfacebase.ui
155
	ui/prefs_itemtoolsbase.ui
156
	ui/prefs_operatortoolsbase.ui
157
	ui/prefs_pdfexportbase.ui
158
	ui/prefs_tableofcontentsbase.ui
159
	ui/prefs_documentitemattributesbase.ui
160
	ui/printdialogbase.ui
161
	ui/propertiespalette_groupbase.ui
162
	ui/propertiespalette_imagebase.ui
163
	ui/propertiespalette_linebase.ui
164
	ui/propertiespalette_shapebase.ui
165
	ui/propertiespalette_tablebase.ui
166
	ui/propertiespalette_textbase.ui
167
	ui/propertiespalette_xyzbase.ui
168
	ui/propertywidget_advancedbase.ui
169
	ui/propertywidget_distancebase.ui
170
	ui/propertywidget_pareffectbase.ui
171
	ui/propertywidget_flopbase.ui
21563 jghali 172
	ui/propertywidget_fontfeaturesbase.ui
173
	ui/propertywidget_hyphenationbase.ui
19079 craig 174
	ui/propertywidget_optmarginsbase.ui
175
	ui/propertywidget_orphansbase.ui
176
	ui/propertywidget_pathtextbase.ui
177
	ui/propertywidget_textcolorbase.ui
21098 fschmid 178
	ui/recoverdialog.ui
19079 craig 179
	ui/replacecolors.ui
180
	ui/replaceonecolor.ui
19821 craig 181
	ui/resourcemanagerbase.ui
20410 craig 182
	ui/resourcemanagerlicensebase.ui
19079 craig 183
	ui/selectobjects.ui
184
	ui/shortcutwidget.ui
185
	ui/smcellstylewidget.ui
186
	ui/smcstylewidget.ui
21563 jghali 187
	ui/smfontfeaturesbase.ui
19079 craig 188
	ui/smlinestylewidget.ui
189
	ui/smtablestylewidget.ui
190
	ui/smpstylewidget.ui
191
	ui/smreplacedia.ui
192
	ui/smstyleimport.ui
193
	ui/spiralvectorbase.ui
194
	ui/spiralwidgetbase.ui
195
	ui/stylemanager.ui
196
	ui/tablecolumnwidthsdialog.ui
197
	ui/tablerowheightsdialog.ui
19861 jghali 198
	ui/tabpdfoptions.ui
19079 craig 199
	ui/transformdialogbase.ui
200
	ui/transparencypalette.ui
201
	ui/copypagetomasterpage.ui
202
	ui/createrange.ui
203
	ui/helpbrowser.ui
204
	ui/helpbrowsernavigation.ui
205
	ui/unicodesearch.ui
206
	ui/useprintermarginsdialog.ui
207
	ui/weldeditbase.ui
19821 craig 208
#	#{SCRIBUS_ITEMSETTERS_UI_SRC}
19079 craig 209
	${SCRIBUS_OSG_UI_SRC}
5142 cbradney 210
)
211
 
21543 craig 212
set(SCRIBUS_MOC_CLASSES
19079 craig 213
	actionmanager.h
214
	appmodehelper.h
215
	canvas.h
21951 craig 216
	canvasgesture.h
19079 craig 217
	canvasgesture_cellselect.h
218
	canvasgesture_columnresize.h
219
	canvasgesture_rowresize.h
220
	canvasgesture_rulermove.h
221
	canvasgesture_table.h
222
	canvasgesture_tableresize.h
223
	canvasmode.h
20282 craig 224
	canvasmode_create.h
19079 craig 225
	canvasmode_edit.h
226
	canvasmode_editarc.h
227
	canvasmode_editpolygon.h
228
	canvasmode_editspiral.h
229
	canvasmode_edittable.h
230
	canvasmode_editweldpoint.h
19634 jghali 231
	canvasmode_eyedropper.h
232
	canvasmode_framelinks.h
21946 craig 233
	canvasmode_imageimport.h
19079 craig 234
	canvasmode_measurements.h
235
	canvasmode_normal.h
21946 craig 236
	canvasmode_objimport.h
19079 craig 237
	chartablemodel.h
238
	chartableview.h
239
	collect4output.h
240
	colorblind.h
241
	commonstrings.h
242
	deferredtask.h
243
	docinfo.h
244
	downloadmanager/scdlmgr.h
245
	downloadmanager/scdlthread.h
246
	fileloader.h
247
	filesearch.h
248
	filewatcher.h
249
	fontlistmodel.h
250
	guidesdelegate.h
251
	guidesmodel.h
252
	guidesview.h
253
	hyphenator.h
20185 craig 254
	iconmanager.h
19079 craig 255
	latexhelpers.h
256
	loadsaveplugin.h
257
	menumanager.h
258
	navigator.h
259
	notesstyles.h
260
	observable.h
261
	pageitem.h
262
	pageitem_arc.h
263
	pageitem_group.h
264
	pageitem_imageframe.h
265
	pageitem_latexframe.h
266
	pageitem_line.h
267
	pageitem_pathtext.h
268
	pageitem_polygon.h
269
	pageitem_polyline.h
270
	pageitem_regularpolygon.h
271
	pageitem_spiral.h
272
	pageitem_symbol.h
273
	pageitem_table.h
274
	pageitem_textframe.h
275
	pageitem_noteframe.h
276
	pageitempointer.h
277
	pdf_analyzer.h
278
	pdflib.h
279
	pdflib_core.h
280
	pluginmanager.h
281
	pp_proxy.h
282
	prefsmanager.h
283
	pslib.h
284
	qtiocompressor.h
285
	sampleitem.h
286
	scgtplugin.h
287
	schelptreemodel.h
288
	scimagecachedir.h
289
	scimagecachefile.h
290
	scimagecachemanager.h
21944 craig 291
	scmimedata.h
19079 craig 292
	scplugin.h
293
	scprintengine.h
294
	scraction.h
295
	scribus.h
296
	scribusapp.h
297
	scribuscore.h
298
	scribusdoc.h
299
	scribusview.h
300
	scribuswin.h
301
	selection.h
302
	selectionrubberband.h
303
	styleitem.h
304
	tocgenerator.h
305
	undogui.h
306
	undomanager.h
307
	upgradechecker.h
308
	urllauncher.h
309
	ui/about.h
310
	ui/aboutplugins.h
23088 jghali 311
	ui/actionsearchdialog.h
19079 craig 312
	ui/adjustcmsdialog.h
313
	ui/aligndistribute.h
314
	ui/alignselect.h
21563 jghali 315
	ui/directionselect.h
19079 craig 316
	ui/annot.h
317
	ui/annota.h
318
	ui/applytemplatedialog.h
319
	ui/arcwidget.h
320
	ui/arcvectordialog.h
321
	ui/arrowchooser.h
322
	ui/autoform.h
323
	ui/autoformbuttongroup.h
324
	ui/basepointwidget.h
325
	ui/bookmarkpalette.h
326
	ui/bookmwin.h
327
	ui/buttonicon.h
328
	ui/charselect.h
329
	ui/charselectenhanced.h
330
	ui/charzoom.h
331
	ui/checkDocument.h
332
	ui/clockwidget.h
333
	ui/cmsprefs.h
334
	ui/cmykfw.h
335
	ui/collectforoutput_ui.h
336
	ui/colorchart.h
337
	ui/colorcombo.h
338
	ui/colorlistbox.h
21855 jghali 339
	ui/colorlistmodel.h
21926 craig 340
	ui/colorsandfills.h
19079 craig 341
	ui/contextmenu.h
342
	ui/cpalette.h
343
	ui/cupsoptions.h
344
	ui/curvewidget.h
345
	ui/customfdialog.h
22444 jghali 346
	ui/cxfimportdialog.h
19079 craig 347
	ui/dasheditor.h
348
	ui/dcolor.h
349
	ui/delpages.h
19783 craig 350
	ui/downloadspalette.h
19079 craig 351
	ui/editor.h
352
	ui/effectsdialog.h
353
	ui/extimageprops.h
19153 craig 354
	ui/filedialogeventcatcher.h
19079 craig 355
	ui/fontcombo.h
22218 jghali 356
	ui/fontembeddingcombo.h
357
	ui/fontembeddingmodel.h
19079 craig 358
	ui/fontlistview.h
359
	ui/fontreplacedialog.h
360
	ui/gradientaddedit.h
361
	ui/gradienteditor.h
362
	ui/gradientvectordialog.h
363
	ui/gradientpreview.h
364
	ui/gtdialogs.h
365
	ui/gtfiledialog.h
366
	ui/guidemanager.h
367
	ui/helpbrowser.h
21944 craig 368
	ui/helpnavigation.h
19079 craig 369
	ui/hruler.h
370
	ui/hyask.h
371
	ui/imageinfodialog.h
372
	ui/inlinepalette.h
373
	ui/insertTable.h
374
	ui/insertaframe.h
375
	ui/inserttablecolumnsdialog.h
376
	ui/inserttablerowsdialog.h
377
	ui/inspage.h
378
	ui/javadocs.h
379
	ui/latexeditor.h
380
	ui/layers.h
21944 craig 381
	ui/linecombo.h
382
	ui/linkbutton.h
19079 craig 383
	ui/loremipsum.h
384
	ui/markinsert.h
385
	ui/mark2item.h
386
	ui/mark2mark.h
387
	ui/markanchor.h
388
	ui/marknote.h
389
	ui/marksmanager.h
390
	ui/markvariabletext.h
391
	ui/marginpresetlayout.h
392
	ui/marginwidget.h
393
	ui/newmarginwidget.h
394
	ui/measurements.h
395
	ui/mergedoc.h
396
	ui/missing.h
397
	ui/movepage.h
398
	ui/multipleduplicate.h
399
	ui/multiprogressdialog.h
400
	ui/newfile.h
401
	ui/newtemp.h
402
	ui/nftdialog.h
403
	ui/nftwidget.h
404
	ui/nodeeditpalette.h
405
	ui/notesstyleseditor.h
22971 jghali 406
	ui/numformatcombo.h
19079 craig 407
	ui/oneclick.h
408
	ui/outlinepalette.h
409
	ui/pageitemattributes.h
410
	ui/pagelayout.h
411
	ui/pagepalette.h
412
	ui/pagepalette_pages.h
413
	ui/pagepalette_masterpages.h
414
	ui/pagepalette_widgets.h
21901 craig 415
	ui/pagepropertiesdialog.h
19079 craig 416
	ui/pageselector.h
417
	ui/patternpropsdialog.h
19966 craig 418
	ui/pdfexportdialog.h
22438 jghali 419
	ui/pdfversioncombo.h
420
	ui/pdfversionmodel.h
19079 craig 421
	ui/picsearch.h
422
	ui/picsearchoptions.h
423
	ui/picstatus.h
424
	ui/polygonwidget.h
425
	ui/polyprops.h
426
	ui/preferencesdialog.h
427
	ui/prefs_colormanagement.h
428
	ui/prefs_display.h
429
	ui/prefs_documentinformation.h
430
	ui/prefs_documentsections.h
431
	ui/prefs_documentsetup.h
432
	ui/prefs_externaltools.h
433
	ui/prefs_fonts.h
434
	ui/prefs_guides.h
435
	ui/prefs_hyphenator.h
436
	ui/prefs_imagecache.h
437
	ui/prefs_keyboardshortcuts.h
438
	ui/prefs_miscellaneous.h
439
	ui/prefs_pagesizes.h
440
	ui/prefs_paths.h
441
	ui/prefs_pane.h
442
	ui/prefs_plugins.h
443
	ui/prefs_preflightverifier.h
444
	ui/prefs_printer.h
445
	ui/prefs_scrapbook.h
446
	ui/prefs_spelling.h
447
	ui/prefs_typography.h
448
	ui/prefs_userinterface.h
449
	ui/prefs_itemtools.h
450
	ui/prefs_operatortools.h
451
	ui/prefs_pdfexport.h
452
	ui/prefs_tableofcontents.h
453
	ui/prefs_documentitemattributes.h
454
	ui/preview.h
455
	ui/printdialog.h
456
	ui/propertiespalette.h
457
	ui/propertiespalette_group.h
458
	ui/propertiespalette_image.h
459
	ui/propertiespalette_line.h
460
	ui/propertiespalette_shadow.h
461
	ui/propertiespalette_shape.h
462
	ui/propertiespalette_table.h
463
	ui/propertiespalette_text.h
464
	ui/propertiespalette_utils.h
465
	ui/propertiespalette_xyz.h
466
	ui/propertywidget_advanced.h
467
	ui/propertywidget_distance.h
468
	ui/propertywidget_pareffect.h
469
	ui/propertywidget_flop.h
21563 jghali 470
	ui/propertywidget_hyphenation.h
19079 craig 471
	ui/propertywidget_optmargins.h
472
	ui/propertywidget_orphans.h
473
	ui/propertywidget_pathtext.h
474
	ui/propertywidget_textcolor.h
21563 jghali 475
	ui/propertywidget_fontfeatures.h
19079 craig 476
	ui/proptree.h
477
	ui/query.h
21098 fschmid 478
	ui/recoverdialog.h
19079 craig 479
	ui/replacecolors.h
480
	ui/replaceonecolor.h
19821 craig 481
	ui/resourcemanager.h
20410 craig 482
	ui/resourcemanagerlicense.h
19079 craig 483
	ui/rulermover.h
21944 craig 484
	ui/sccolorslider.h
21946 craig 485
	ui/sccombobox.h
19079 craig 486
	ui/scdockpalette.h
487
	ui/scescapecatcher.h
488
	ui/scfilewidget.h
489
	ui/scinputdialog.h
490
	ui/sclistwidgetdelegate.h
491
	ui/scmenu.h
492
	ui/scmessagebox.h
493
	ui/scmwmenumanager.h
494
	ui/scrapbookpalette.h
495
	ui/scrpalettebase.h
496
	ui/scrspinbox.h
497
	ui/sctablewidget.h
498
	ui/sctextbrowser.h
499
	ui/sctoolbar.h
500
	ui/sctreewidget.h
501
	ui/search.h
502
	ui/selectobjects.h
503
	ui/selfield.h
504
	ui/shadebutton.h
505
	ui/shortcutwidget.h
506
	ui/smalignselect.h
507
	ui/smcellstylewidget.h
508
	ui/smcellstyle.h
509
	ui/smcheckbox.h
510
	ui/smcolorcombo.h
511
	ui/smcstylewidget.h
21563 jghali 512
	ui/smdirectionselect.h
513
	ui/smfontfeatures.h
19079 craig 514
	ui/smtablestylewidget.h
515
	ui/smfontcomboh.h
516
	ui/smlinestyle.h
517
	ui/smlinestylewidget.h
22971 jghali 518
	ui/smnumformatcombo.h
19079 craig 519
	ui/smpstylewidget.h
21944 craig 520
	ui/smradiobutton.h
19079 craig 521
	ui/smreplacedia.h
522
	ui/smsccombobox.h
523
	ui/smscrspinbox.h
524
	ui/smshadebutton.h
525
	ui/smspinbox.h
21563 jghali 526
	ui/smlineedit.h
19079 craig 527
	ui/smstyleimport.h
528
	ui/smstyleselect.h
529
	ui/smtablestyle.h
530
	ui/smtabruler.h
531
	ui/smtextstyles.h
532
	ui/spalette.h
533
	ui/spiralvectordialog.h
534
	ui/spiralwidget.h
21944 craig 535
	ui/splash.h
19079 craig 536
	ui/storyeditor.h
537
	ui/stylemanager.h
538
	ui/styleselect.h
539
	ui/styleview.h
540
	ui/swatchcombo.h
541
	ui/symbolpalette.h
542
	ui/tablecolumnwidthsdialog.h
543
	ui/tablesideselector.h
544
	ui/tablerowheightsdialog.h
545
	ui/tabmanager.h
546
	ui/tabpdfoptions.h
547
	ui/tabruler.h
21575 craig 548
	ui/textpalette.h
19079 craig 549
	ui/transformdialog.h
550
	ui/transparencypalette.h
551
	tt/simpletreemodel/treemodel.h
552
	ui/copypagetomasterpagedialog.h
553
	ui/createrange.h
554
	ui/edittoolbar.h
555
	ui/filetoolbar.h
556
	ui/modetoolbar.h
557
	ui/pdftoolbar.h
558
	ui/viewtoolbar.h
559
	ui/unicodesearch.h
560
	ui/useprintermarginsdialog.h
561
	ui/vruler.h
562
	ui/weldedit.h
19821 craig 563
#	#{SCRIBUS_ITEMSETTERS_CLASS}
19079 craig 564
	${SCRIBUS_OSG_CLASS}
5142 cbradney 565
)
566
 
21543 craig 567
set(SCRIBUS_SOURCES
19079 craig 568
	actionmanager.cpp
23088 jghali 569
	actionsearch.cpp
19079 craig 570
	appmodehelper.cpp
571
	canvas.cpp
572
	canvasgesture_cellselect.cpp
573
	canvasgesture_columnresize.cpp
574
	canvasgesture_linemove.cpp
575
	canvasgesture_pan.cpp
576
	canvasgesture_rectselect.cpp
577
	canvasgesture_resize.cpp
578
	canvasgesture_rowresize.cpp
579
	canvasgesture_rulermove.cpp
580
	canvasgesture_table.cpp
581
	canvasgesture_tableresize.cpp
582
	canvasmode.cpp
583
	canvasmode_copyproperties.cpp
584
	canvasmode_create.cpp
585
	canvasmode_drawbezier.cpp
586
	canvasmode_drawcalligraphic.cpp
587
	canvasmode_drawfreehand.cpp
588
	canvasmode_eyedropper.cpp
589
	canvasmode_framelinks.cpp
590
	canvasmode_imageimport.cpp
591
	canvasmode_edit.cpp
592
	canvasmode_editarc.cpp
593
	canvasmode_editgradient.cpp
594
	canvasmode_editmeshgradient.cpp
595
	canvasmode_editmeshpatch.cpp
596
	canvasmode_editpolygon.cpp
597
	canvasmode_editspiral.cpp
598
	canvasmode_edittable.cpp
599
	canvasmode_editweldpoint.cpp
600
	canvasmode_magnifier.cpp
601
	canvasmode_measurements.cpp
602
	canvasmode_nodeedit.cpp
603
	canvasmode_normal.cpp
604
	canvasmode_objimport.cpp
605
	canvasmode_panning.cpp
606
	canvasmode_rotate.cpp
607
	cellarea.cpp
608
	chartablemodel.cpp
609
	chartableview.cpp
610
	cmserrorhandling.cpp
611
	cmsettings.cpp
612
	collapsedtablepainter.cpp
20630 jghali 613
	collapsedtablepainterex.cpp
19079 craig 614
	collect4output.cpp
615
	colorblind.cpp
616
	colorsetmanager.cpp
617
	commonstrings.cpp
618
	deferredtask.cpp
619
	docinfo.cpp
620
	documentchecker.cpp
621
	documentinformation.cpp
622
	exif.cpp
623
	fileloader.cpp
624
	filesearch.cpp
625
	filewatcher.cpp
626
	fontlistmodel.cpp
627
	fpoint.cpp
628
	fpointarray.cpp
629
	gtaction.cpp
630
	gtfont.cpp
631
	gtframestyle.cpp
632
	gtgettext.cpp
633
	gtmeasure.cpp
634
	gtparagraphstyle.cpp
635
	gtstyle.cpp
636
	gtwriter.cpp
637
	guidemanagercore.cpp
638
	guidesdelegate.cpp
639
	guidesmodel.cpp
640
	guidesview.cpp
641
	hyphenator.cpp
20185 craig 642
	iconmanager.cpp
19079 craig 643
	ioapi.c
644
	KarbonCurveFit.cpp
645
	langdef.cpp
646
	langmgr.cpp
647
	latexhelpers.cpp
648
	loadsaveplugin.cpp
649
	localemgr.cpp
20528 craig 650
	marks.cpp
19079 craig 651
	menumanager.cpp
652
	mesh.cpp
653
	navigator.cpp
654
	numeration.cpp
655
	observable.cpp
656
	nftrcreader.cpp
657
	nftsettings.cpp
658
	nfttemplate.cpp
19946 craig 659
	nodeeditcontext.cpp
19079 craig 660
	notesstyles.cpp
661
	pageitem.cpp
662
	pageitem_arc.cpp
663
	pageitem_group.cpp
664
	pageitem_imageframe.cpp
665
	pageitem_latexframe.cpp
666
	pageitem_line.cpp
667
	pageitem_pathtext.cpp
668
	pageitem_polygon.cpp
669
	pageitem_polyline.cpp
670
	pageitem_regularpolygon.cpp
671
	pageitem_spiral.cpp
672
	pageitem_symbol.cpp
673
	pageitem_table.cpp
674
	pageitem_textframe.cpp
675
	pageitem_noteframe.cpp
22461 jghali 676
	pageitemiterator.cpp
19079 craig 677
	pageitempointer.cpp
678
	pagesize.cpp
679
	pdf_analyzer.cpp
680
	pdflib.cpp
681
	pdflib_core.cpp
682
	pdfoptions.cpp
683
	pdfoptionsio.cpp
20103 avox 684
	pdfwriter.cpp
19079 craig 685
	pluginmanager.cpp
686
	pp_proxy.cpp
687
	prefscontext.cpp
688
	prefsfile.cpp
689
	prefsmanager.cpp
690
	prefsreader.cpp
691
	prefstable.cpp
692
	pslib.cpp
693
	qtiocompressor.cpp
694
	rawimage.cpp
695
	rc4.c
696
	sampleitem.cpp
697
	scclocale.cpp
698
	sccolor.cpp
699
	sccolorengine.cpp
700
	sccolorshade.cpp
22614 jghali 701
	sccolorstructs.cpp
19079 craig 702
	scdocoutput.cpp
703
	scdocoutput_ps2.cpp
704
	scdomelement.cpp
705
	scfonts.cpp
706
	scgtplugin.cpp
707
	schelptreemodel.cpp
708
	scimage.cpp
709
	scimagecacheproxy.cpp
710
	scimagecachedir.cpp
711
	scimagecachefile.cpp
712
	scimagecachemanager.cpp
713
	scimagecachewriteaction.cpp
714
	scimagestructs.cpp
715
	sclayer.cpp
716
	sclockedfile.cpp
717
	scmimedata.cpp
718
	scpage.cpp
719
	scpageoutput.cpp
720
	scpageoutput_ps2.cpp
721
	scpainter.cpp
722
	scpainterex_ps2.cpp
723
	scpainterexbase.cpp
724
	scpaths.cpp
725
	scpattern.cpp
726
	scplugin.cpp
727
	scpreview.cpp
728
	scprintengine_ps.cpp
729
	scraction.cpp
730
	scribus.cpp
731
	scribusXml.cpp
732
	scribusapp.cpp
733
	scribuscore.cpp
734
	scribusdoc.cpp
735
	scribusview.cpp
736
	scribuswin.cpp
737
	scslainforeader.cpp
738
	scstreamfilter.cpp
739
	scstreamfilter_ascii85.cpp
740
	scstreamfilter_flate.cpp
741
	scstreamfilter_jpeg.cpp
742
	scstreamfilter_rc4.cpp
743
	sctextstream.cpp
744
	sctextstruct.cpp
745
	scxmlstreamreader.cpp
746
	selection.cpp
747
	selectionrubberband.cpp
748
	serializer.cpp
749
	styleitem.cpp
750
	tableborder.cpp
751
	tablecell.cpp
752
	tableutils.cpp
753
	textwriter.cpp
754
	tocgenerator.cpp
755
	transaction.cpp
756
	undogui.cpp
757
	undomanager.cpp
758
	undoobject.cpp
759
	undostack.cpp
760
	undostate.cpp
19416 jghali 761
	undotransaction.cpp
19079 craig 762
	units.cpp
763
	updatemanager.cpp
764
	upgradechecker.cpp
765
	urllauncher.cpp
766
	util.cpp
767
	util_color.cpp
19271 craig 768
	util_debug.cpp
19079 craig 769
	util_file.cpp
770
	util_formats.cpp
771
	util_ghostscript.cpp
772
	util_layer.cpp
773
	util_math.cpp
19405 craig 774
	util_os.cpp
19079 craig 775
	util_printer.cpp
776
	util_text.cpp
777
	vgradient.cpp
778
	vgradientex.cpp
22413 jghali 779
	downloadmanager/scdlmgr.cpp
780
	downloadmanager/scdlthread.cpp
781
	imagedataloaders/scimgdataloader.cpp
782
	imagedataloaders/scimgdataloader_gimp.cpp
783
	imagedataloaders/scimgdataloader_jpeg.cpp
784
	imagedataloaders/scimgdataloader_kra.cpp
785
	imagedataloaders/scimgdataloader_ora.cpp
786
	imagedataloaders/scimgdataloader_pdf.cpp
787
	imagedataloaders/scimgdataloader_pgf.cpp
788
	imagedataloaders/scimgdataloader_pict.cpp
789
	imagedataloaders/scimgdataloader_ps.cpp
790
	imagedataloaders/scimgdataloader_psd.cpp
791
	imagedataloaders/scimgdataloader_qt.cpp
792
	imagedataloaders/scimgdataloader_tiff.cpp
793
	imagedataloaders/scimgdataloader_wpg.cpp
22426 jghali 794
	palettes/cxfcolor.cpp
22423 jghali 795
	palettes/cxfcolorspecification.cpp
22426 jghali 796
	palettes/cxfdocument.cpp
22427 jghali 797
	palettes/cxfobject.cpp
22423 jghali 798
	palettes/cxfmeasurementspec.cpp
799
	palettes/cxftristimulusspec.cpp
800
	palettes/cxfutils.cpp
22413 jghali 801
	palettes/paletteloader.cpp
802
	palettes/paletteloader_adobe_acb.cpp
803
	palettes/paletteloader_adobe_aco.cpp
804
	palettes/paletteloader_adobe_ase.cpp
805
	palettes/paletteloader_autocad_acb.cpp
22427 jghali 806
	palettes/paletteloader_cxf.cpp
22413 jghali 807
	palettes/paletteloader_ps.cpp
808
	palettes/paletteloader_sk1.cpp
809
	palettes/paletteloader_swatchbook.cpp
810
	third_party/fparser/fpoptimizer.cc
811
	third_party/fparser/fparser.cc
19079 craig 812
	ui/about.cpp
813
	ui/aboutplugins.cpp
23088 jghali 814
	ui/actionsearchdialog.cpp
19079 craig 815
	ui/adjustcmsdialog.cpp
816
	ui/aligndistribute.cpp
817
	ui/alignselect.cpp
21563 jghali 818
	ui/directionselect.cpp
19079 craig 819
	ui/annot.cpp
820
	ui/annota.cpp
821
	ui/applytemplatedialog.cpp
822
	ui/arcwidget.cpp
823
	ui/arcvectordialog.cpp
824
	ui/arrowchooser.cpp
825
	ui/autoform.cpp
826
	ui/autoformbuttongroup.cpp
827
	ui/basepointwidget.cpp
828
	ui/bookmarkpalette.cpp
829
	ui/bookmwin.cpp
830
	ui/buttonicon.cpp
831
	ui/charselect.cpp
832
	ui/charselectenhanced.cpp
833
	ui/charzoom.cpp
834
	ui/checkDocument.cpp
835
	ui/clockwidget.cpp
836
	ui/cmsprefs.cpp
837
	ui/cmykfw.cpp
838
	ui/collectforoutput_ui.cpp
839
	ui/colorchart.cpp
840
	ui/colorcombo.cpp
841
	ui/colorlistbox.cpp
21855 jghali 842
	ui/colorlistmodel.cpp
21926 craig 843
	ui/colorsandfills.cpp
19079 craig 844
	ui/contextmenu.cpp
845
	ui/cpalette.cpp
846
	ui/cupsoptions.cpp
847
	ui/curvewidget.cpp
848
	ui/customfdialog.cpp
22444 jghali 849
	ui/cxfimportdialog.cpp
19079 craig 850
	ui/dasheditor.cpp
851
	ui/dcolor.cpp
852
	ui/delpages.cpp
19783 craig 853
	ui/downloadspalette.cpp
19079 craig 854
	ui/editor.cpp
855
	ui/effectsdialog.cpp
856
	ui/extimageprops.cpp
19153 craig 857
	ui/filedialogeventcatcher.cpp
20338 jghali 858
	ui/fontcombo.cpp
22218 jghali 859
	ui/fontembeddingcombo.cpp
860
	ui/fontembeddingmodel.cpp
19079 craig 861
	ui/fontlistview.cpp
862
	ui/fontreplacedialog.cpp
863
	ui/gradientaddedit.cpp
864
	ui/gradienteditor.cpp
865
	ui/gradientvectordialog.cpp
866
	ui/gradientpreview.cpp
867
	ui/gtdialogs.cpp
868
	ui/gtfiledialog.cpp
869
	ui/guidemanager.cpp
870
	ui/helpbrowser.cpp
871
	ui/hruler.cpp
872
	ui/hyask.cpp
873
	ui/imageinfodialog.cpp
874
	ui/inlinepalette.cpp
875
	ui/insertTable.cpp
876
	ui/insertaframe.cpp
877
	ui/inserttablecolumnsdialog.cpp
878
	ui/inserttablerowsdialog.cpp
879
	ui/inspage.cpp
880
	ui/javadocs.cpp
881
	ui/latexeditor.cpp
882
	ui/layers.cpp
883
	ui/linecombo.cpp
884
	ui/linkbutton.cpp
885
	ui/loremipsum.cpp
886
	ui/mark2item.cpp
887
	ui/mark2mark.cpp
888
	ui/markanchor.cpp
889
	ui/marknote.cpp
890
	ui/marksmanager.cpp
891
	ui/markvariabletext.cpp
892
	ui/marginpresetlayout.cpp
893
	ui/marginwidget.cpp
894
	ui/newmarginwidget.cpp
895
	ui/mergedoc.cpp
896
	ui/missing.cpp
897
	ui/movepage.cpp
898
	ui/multipleduplicate.cpp
899
	ui/multiprogressdialog.cpp
900
	ui/measurements.cpp
901
	ui/newfile.cpp
902
	ui/newtemp.cpp
903
	ui/nftdialog.cpp
904
	ui/nftwidget.cpp
905
	ui/nodeeditpalette.cpp
906
	ui/notesstyleseditor.cpp
22971 jghali 907
	ui/numformatcombo.cpp
19079 craig 908
	ui/oneclick.cpp
909
	ui/outlinepalette.cpp
910
	ui/pageitemattributes.cpp
911
	ui/pagelayout.cpp
912
	ui/pagepalette.cpp
913
	ui/pagepalette_pages.cpp
914
	ui/pagepalette_masterpages.cpp
915
	ui/pagepalette_widgets.cpp
21901 craig 916
	ui/pagepropertiesdialog.cpp
19079 craig 917
	ui/pageselector.cpp
918
	ui/patternpropsdialog.cpp
19966 craig 919
	ui/pdfexportdialog.cpp
22438 jghali 920
	ui/pdfversioncombo.cpp
921
	ui/pdfversionmodel.cpp
19079 craig 922
	ui/picsearch.cpp
923
	ui/picsearchoptions.cpp
924
	ui/picstatus.cpp
925
	ui/polygonwidget.cpp
926
	ui/polyprops.cpp
927
	ui/preferencesdialog.cpp
928
	ui/prefs_colormanagement.cpp
929
	ui/prefs_display.cpp
930
	ui/prefs_documentinformation.cpp
931
	ui/prefs_documentsections.cpp
932
	ui/prefs_documentsetup.cpp
933
	ui/prefs_externaltools.cpp
934
	ui/prefs_fonts.cpp
935
	ui/prefs_guides.cpp
936
	ui/prefs_hyphenator.cpp
937
	ui/prefs_imagecache.cpp
938
	ui/prefs_keyboardshortcuts.cpp
939
	ui/prefs_miscellaneous.cpp
940
	ui/prefs_pagesizes.cpp
941
	ui/prefs_paths.cpp
942
	ui/prefs_plugins.cpp
943
	ui/prefs_preflightverifier.cpp
944
	ui/prefs_printer.cpp
945
	ui/prefs_scrapbook.cpp
946
	ui/prefs_spelling.cpp
947
	ui/prefs_typography.cpp
948
	ui/prefs_userinterface.cpp
949
	ui/prefs_itemtools.cpp
950
	ui/prefs_operatortools.cpp
951
	ui/prefs_pdfexport.cpp
952
	ui/prefs_tableofcontents.cpp
953
	ui/prefs_documentitemattributes.cpp
954
	ui/preview.cpp
955
	ui/printdialog.cpp
956
	ui/propertiespalette.cpp
957
	ui/propertiespalette_image.cpp
958
	ui/propertiespalette_group.cpp
959
	ui/propertiespalette_line.cpp
960
	ui/propertiespalette_shadow.cpp
961
	ui/propertiespalette_shape.cpp
962
	ui/propertiespalette_table.cpp
963
	ui/propertiespalette_text.cpp
964
	ui/propertiespalette_utils.cpp
965
	ui/propertiespalette_xyz.cpp
966
	ui/propertywidget_advanced.cpp
967
	ui/propertywidget_distance.cpp
968
	ui/propertywidget_pareffect.cpp
969
	ui/propertywidget_flop.cpp
21563 jghali 970
	ui/propertywidget_hyphenation.cpp
19079 craig 971
	ui/propertywidget_optmargins.cpp
972
	ui/propertywidget_orphans.cpp
973
	ui/propertywidget_pathtext.cpp
974
	ui/propertywidget_textcolor.cpp
21563 jghali 975
	ui/propertywidget_fontfeatures.cpp
19079 craig 976
	ui/propertywidgetbase.cpp
977
	ui/proptree.cpp
978
	ui/query.cpp
21098 fschmid 979
	ui/recoverdialog.cpp
19079 craig 980
	ui/replacecolors.cpp
981
	ui/replaceonecolor.cpp
19821 craig 982
	ui/resourcemanager.cpp
20410 craig 983
	ui/resourcemanagerlicense.cpp
19079 craig 984
	ui/rulermover.cpp
20338 jghali 985
	ui/sccolorslider.cpp
19079 craig 986
	ui/sccombobox.cpp
987
	ui/scdockpalette.cpp
988
	ui/scescapecatcher.cpp
989
	ui/scfilewidget.cpp
990
	ui/scinputdialog.cpp
991
	ui/sclistwidgetdelegate.cpp
992
	ui/scmenu.cpp
993
	ui/scmessagebox.cpp
994
	ui/scmwmenumanager.cpp
995
	ui/scrapbookpalette.cpp
996
	ui/scresizecursor.cpp
997
	ui/scrpalettebase.cpp
998
	ui/scrspinbox.cpp
999
	ui/sctablewidget.cpp
1000
	ui/sctextbrowser.cpp
1001
	ui/sctoolbar.cpp
1002
	ui/sctreewidget.cpp
1003
	ui/search.cpp
1004
	ui/selectobjects.cpp
1005
	ui/selfield.cpp
1006
	ui/shadebutton.cpp
1007
	ui/shortcutwidget.cpp
1008
	ui/smalignselect.cpp
1009
	ui/smcellstylewidget.cpp
1010
	ui/smcellstyle.cpp
1011
	ui/smcheckbox.cpp
1012
	ui/smcolorcombo.cpp
1013
	ui/smcstylewidget.cpp
21563 jghali 1014
	ui/smdirectionselect.cpp
1015
	ui/smfontfeatures.cpp
19079 craig 1016
	ui/smfontcomboh.cpp
1017
	ui/smlinestyle.cpp
1018
	ui/smlinestylewidget.cpp
22971 jghali 1019
	ui/smnumformatcombo.cpp
19079 craig 1020
	ui/smpstylewidget.cpp
1021
	ui/smradiobutton.cpp
1022
	ui/smreplacedia.cpp
1023
	ui/smsccombobox.cpp
1024
	ui/smscrspinbox.cpp
1025
	ui/smshadebutton.cpp
1026
	ui/smspinbox.cpp
21563 jghali 1027
	ui/smlineedit.cpp
19079 craig 1028
	ui/smstyleimport.cpp
1029
	ui/smstyleselect.cpp
1030
	ui/smtablestylewidget.cpp
1031
	ui/smtablestyle.cpp
1032
	ui/smtabruler.cpp
1033
	ui/smtextstyles.cpp
1034
	ui/spalette.cpp
1035
	ui/spiralvectordialog.cpp
1036
	ui/spiralwidget.cpp
1037
	ui/splash.cpp
1038
	ui/storyeditor.cpp
1039
	ui/stylemanager.cpp
1040
	ui/styleselect.cpp
1041
	ui/styleview.cpp
1042
	ui/swatchcombo.cpp
1043
	ui/symbolpalette.cpp
1044
	ui/tablecolumnwidthsdialog.cpp
1045
	ui/tablerowheightsdialog.cpp
1046
	ui/tablesideselector.cpp
1047
	ui/tabmanager.cpp
1048
	ui/tabpdfoptions.cpp
1049
	ui/tabruler.cpp
21575 craig 1050
	ui/textpalette.cpp
19079 craig 1051
	ui/transformdialog.cpp
1052
	ui/transparencypalette.cpp
1053
	tt/simpletreemodel/treeitem.cpp
1054
	tt/simpletreemodel/treemodel.cpp
1055
	ui/copypagetomasterpagedialog.cpp
1056
	ui/createrange.cpp
1057
	ui/edittoolbar.cpp
1058
	ui/filetoolbar.cpp
1059
	ui/helpnavigation.cpp
1060
	ui/modetoolbar.cpp
1061
	ui/pdftoolbar.cpp
1062
	ui/viewtoolbar.cpp
1063
	ui/unicodesearch.cpp
1064
	ui/vruler.cpp
1065
	ui/useprintermarginsdialog.cpp
1066
	ui/weldedit.cpp
19821 craig 1067
#	#{SCRIBUS_ITEMSETTERS_SRC}
19079 craig 1068
	${SCRIBUS_OSG_SRC}
1069
	${SCRIBUS_GMAGICK_SRC}
5142 cbradney 1070
)
1071
 
21543 craig 1072
if(NOT HAVE_HYPHEN)
1073
	include_directories(third_party/hyphen)
1074
	set(SCRIBUS_SOURCES
19079 craig 1075
	${SCRIBUS_SOURCES}
19819 jghali 1076
	third_party/hyphen/hnjalloc.c
1077
	third_party/hyphen/hyphen.c
19079 craig 1078
	)
21543 craig 1079
endif()
16359 craig 1080
 
1081
 
1082
 
21543 craig 1083
if(WIN32)
1084
	set(SCRIBUS_MOC_WIN32_ONLY_CLASSES scprintengine_gdi.h)
1085
	set(SCRIBUS_WIN32_ONLY_SOURCES
19079 craig 1086
		scpainterex_cairo.cpp
1087
		scprintengine_gdi.cpp
1088
		)
21543 craig 1089
	set(SCRIBUS_MAIN_CPP main_win32.cpp)
1090
else()
1091
	set(SCRIBUS_MOC_WIN32_ONLY_CLASSES)
1092
	set(SCRIBUS_WIN32_ONLY_SOURCES)
1093
	set(SCRIBUS_MAIN_CPP main.cpp)
1094
endif()
10778 craig 1095
 
18194 fschmid 1096
QT5_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
1097
 
1098
QT5_WRAP_CPP(SCRIBUS_MOC_SOURCES
1099
	${SCRIBUS_MOC_CLASSES}
1100
	${SCRIBUS_MOC_WIN32_ONLY_CLASSES}
1101
	)
5142 cbradney 1102
 
21543 craig 1103
link_directories(
19079 craig 1104
	${CMAKE_CURRENT_BINARY_DIR}/colormgmt
1105
	${CMAKE_CURRENT_BINARY_DIR}/desaxe
1106
	${CMAKE_CURRENT_BINARY_DIR}/fonts
1107
	${CMAKE_CURRENT_BINARY_DIR}/styles
1108
	${CMAKE_CURRENT_BINARY_DIR}/text
1109
	${CMAKE_CURRENT_BINARY_DIR}/third_party/wpg
1110
	${CMAKE_CURRENT_BINARY_DIR}/third_party/pgf
20448 fschmid 1111
	${CMAKE_CURRENT_BINARY_DIR}/third_party/rtf-qt
19079 craig 1112
	${CMAKE_CURRENT_BINARY_DIR}/third_party/zip
21563 jghali 1113
	${HARFBUZZ_LIBRARY_DIRS}
1114
	${ICU_LIBRARY_DIRS}
5142 cbradney 1115
)
1116
 
21543 craig 1117
if(WITH_TESTS)
1118
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/tests )
1119
endif()
16605 avox 1120
 
21543 craig 1121
if(HAVE_OSG)
1122
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/third_party/prc )
1123
endif ()
13839 fschmid 1124
 
21543 craig 1125
if(HAVE_BOOST)
1126
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/third_party/lib2geom )
1127
endif ()
14937 fschmid 1128
 
21543 craig 1129
set(SCRIBUS_COLORMGMT_LIB "scribus_colormgmt_lib")
1130
set(SCRIBUS_TEXT_LIB "scribus_text_lib")
1131
if(WITH_TESTS)
1132
	set(SCRIBUS_TESTS_LIB "scribus_tests_lib")
1133
else()
1134
	set(SCRIBUS_TESTS_LIB "")
1135
endif()
1136
set(SCRIBUS_STYLES_LIB "scribus_styles_lib")
1137
set(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
1138
set(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
1139
if(HAVE_OSG)
1140
	set(SCRIBUS_PRC_LIB "scribus_prc_lib")
1141
endif ()
1142
if(HAVE_BOOST)
1143
	set(SCRIBUS_2GEOM_LIB "scribus_2geom_lib")
1144
endif ()
1145
set(SCRIBUS_WPG_LIB "scribus_wpg_lib")
1146
set(SCRIBUS_PGF_LIB "scribus_pgf_lib")
1147
set(SCRIBUS_ZIP_LIB "scribus_zip_lib")
1148
set(SCRIBUS_RTF_LIB "scribus_rtf_lib")
15796 fschmid 1149
 
21543 craig 1150
include_directories(
19079 craig 1151
	${CMAKE_SOURCE_DIR}
19175 craig 1152
	${CMAKE_CURRENT_BINARY_DIR}
19079 craig 1153
	${CMAKE_CURRENT_SOURCE_DIR}
1154
	${FREETYPE_INCLUDE_DIRS}
21563 jghali 1155
	${HARFBUZZ_INCLUDE_DIRS}
5142 cbradney 1156
)
1157
 
21543 craig 1158
if (GMAGICK_FOUND)
1159
	message(STATUS "GMAGICK: Libs: ${GMAGICK_LDFLAGS}, Inc: ${GMAGICK_INCLUDE_DIRS}, Ldflags: ${GMAGICK_LDFLAGS}")
1160
	include_directories(
19735 fschmid 1161
		BEFORE ${GMAGICK_INCLUDE_DIRS}
19079 craig 1162
	)
21543 craig 1163
	link_directories(
19911 craig 1164
		${GMAGICK_LIBRARY}
19079 craig 1165
	)
21543 craig 1166
endif()
13962 herm 1167
 
21543 craig 1168
if(HAVE_PODOFO)
21774 craig 1169
	if(OPENSSL_FOUND)
1170
		message(STATUS "Including OpenSSL files for PoDoFo >= 0.9.5")
1171
		include_directories(
1172
			${OPENSSL_INCLUDE_DIR}
1173
		)
21776 jghali 1174
	else()
21774 craig 1175
#		message(STATUS "Not including OpenSSL files because this system's PoDoFo does not require them")
21776 jghali 1176
	endif()
21543 craig 1177
	include_directories(
21774 craig 1178
		${LIBPODOFO_INCLUDE_DIR}
19079 craig 1179
	)
21774 craig 1180
 
21543 craig 1181
endif()
11956 avox 1182
 
21543 craig 1183
if(HAVE_HYPHEN)
1184
	target_link_libraries(${EXE_NAME}
19079 craig 1185
	${HYPHEN_LIBRARY}
1186
	)
21543 craig 1187
endif()
16359 craig 1188
 
1189
 
21543 craig 1190
if(GESTURE_FRAME_PREVIEW)
1191
	 message(STATUS "Enable gesture frame preview [experimental]")
1192
	 set(GESTURE_FRAME_PREVIEW_SOURCES	pageitempreview.cpp)
1193
	 add_definitions(-DGESTURE_FRAME_PREVIEW)
1194
endif()
11956 avox 1195
 
21543 craig 1196
if(APPLEBUNDLE)
23020 craig 1197
	set(EXE_NAME "Scribus${TAG_VERSION}" CACHE STRING "Scribus version")
21543 craig 1198
else()
23020 craig 1199
	set(EXE_NAME "scribus${TAG_VERSION}" CACHE STRING "Scribus version")
21543 craig 1200
endif()
5142 cbradney 1201
 
21543 craig 1202
if(COMMAND cmake_policy)
19079 craig 1203
	cmake_policy(SET CMP0003 OLD)
21543 craig 1204
endif()
12373 malex 1205
 
21543 craig 1206
if(HAVE_OSG)
1207
	add_executable(${EXE_NAME}
19821 craig 1208
		${SCRIBUS_MOC_SOURCES}
1209
		${SCRIBUS_SOURCES}
1210
		${SCRIBUS_MAIN_CPP}
1211
		${SCRIBUS_UI_SOURCES}
1212
		${SCRIBUS_TEXT_SOURCES}
1213
		${SCRIBUS_STYLES_SOURCES}
1214
		${SCRIBUS_COLORMGMT_SOURCES}
1215
		${SCRIBUS_FONTS_SOURCES}
1216
		${SCRIBUS_DESAXE_SOURCES}
1217
		${SCRIBUS_WIN32_ONLY_SOURCES}
1218
		${GESTURE_FRAME_PREVIEW_SOURCES}
1219
		${SCRIBUS_PRC_SOURCES}
1220
	)
21543 craig 1221
else()
1222
	add_executable(${EXE_NAME}
19821 craig 1223
		${SCRIBUS_MOC_SOURCES}
1224
		${SCRIBUS_SOURCES}
1225
		${SCRIBUS_MAIN_CPP}
1226
		${SCRIBUS_UI_SOURCES}
1227
		${SCRIBUS_TEXT_SOURCES}
1228
		${SCRIBUS_STYLES_SOURCES}
1229
		${SCRIBUS_COLORMGMT_SOURCES}
1230
		${SCRIBUS_FONTS_SOURCES}
1231
		${SCRIBUS_DESAXE_SOURCES}
1232
		${SCRIBUS_WIN32_ONLY_SOURCES}
1233
		${GESTURE_FRAME_PREVIEW_SOURCES}
1234
	)
21543 craig 1235
endif ()
5142 cbradney 1236
 
21543 craig 1237
if(WIN32)
1238
	set_target_properties(${EXE_NAME}
19821 craig 1239
		PROPERTIES
1240
		COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
1241
		ENABLE_EXPORTS TRUE
10778 craig 1242
	)
21543 craig 1243
	set(WIN32_ONLY_LIBS mscms.lib)
1244
else()
1245
	set(WIN32_ONLY_LIBS)
1246
endif()
10778 craig 1247
 
12176 cbradney 1248
##TEST FIX FOR 6897
21543 craig 1249
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
12176 cbradney 1250
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
1251
# binary are in the public symbol table for plugins. The symbols must also
1252
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
1253
# Should fix bug 6897 .
21543 craig 1254
	set_target_properties(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
1255
endif ()
1256
if (GCC AND NOT WIN32)
15437 craig 1257
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
1258
# binary are in the public symbol table for plugins. The symbols must also
1259
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
1260
# Should fix bug 6897 .
21543 craig 1261
	set_target_properties(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
1262
endif ()
12176 cbradney 1263
##
1264
 
1265
 
8729 cbradney 1266
#Set up libraries to link with all found packages
21543 craig 1267
include_directories(${CAIRO_INCLUDE_DIR})
1268
target_link_libraries(${EXE_NAME} ${CAIRO_LIBRARIES})
1269
link_directories(${PREFIX_CAIRO_LIB})
1270
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
8729 cbradney 1271
 
21543 craig 1272
message("RPATH: ${CMAKE_INSTALL_RPATH}")
8729 cbradney 1273
 
21543 craig 1274
target_link_libraries(${EXE_NAME}
19079 craig 1275
	${Qt5Core_LIBRARIES}
1276
	${Qt5Widgets_LIBRARIES}
1277
	${Qt5Gui_LIBRARIES}
1278
	${Qt5Xml_LIBRARIES}
1279
	${Qt5Network_LIBRARIES}
1280
	${Qt5OpenGL_LIBRARIES}
19542 jghali 1281
	${Qt5PrintSupport_LIBRARIES}
21752 jghali 1282
#	${Qt5Quick_LIBRARIES}
19079 craig 1283
	${CUPS_LIBRARIES}
1284
	${FREETYPE_LIBRARIES}
21563 jghali 1285
	${HARFBUZZ_LIBRARIES}
1286
	${ICU_LIBRARIES}
19079 craig 1287
	${FONTCONFIG_LIBRARIES}
1288
	${LIBXML2_LIBRARIES}
1289
	${PYTHON_LIBRARIES}
1290
	${TIFF_LIBRARIES}
1291
	${JPEG_LIBRARIES}
1292
	${ZLIB_LIBRARIES}
1293
	${WIN32_ONLY_LIBS}
1294
	${GMAGICK_LIBRARIES}
18194 fschmid 1295
)
8729 cbradney 1296
 
21543 craig 1297
if (NOT WIN32 AND NOT HAIKU)
1298
	target_link_libraries(${EXE_NAME}
19821 craig 1299
		${CUPS_LIBRARIES}
19079 craig 1300
	)
21543 craig 1301
endif ()
18186 craig 1302
 
15244 cbradney 1303
# required to resolve symbols from libdl when ld is called with --no-add-needed
15397 craig 1304
# #9310 for the OpenBSD addition
21543 craig 1305
if(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT HAIKU)
1306
	target_link_libraries(${EXE_NAME} dl)
1307
endif()
15244 cbradney 1308
 
15403 craig 1309
# #9311 for the OpenBSD addition
21543 craig 1310
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
1311
	target_link_libraries(${EXE_NAME} util execinfo)
1312
endif()
15403 craig 1313
 
21780 jghali 1314
if(HAIKU)
1315
	target_link_libraries(${EXE_NAME} execinfo)
1316
endif(HAIKU)
1317
 
21543 craig 1318
if(WIN32)
1319
	target_link_libraries(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
1320
endif()
8729 cbradney 1321
 
21543 craig 1322
if(APPLE)
1323
	target_link_libraries(${EXE_NAME}
19079 craig 1324
	"-undefined dynamic_lookup"
1325
	"-framework CoreFoundation" )
21543 craig 1326
endif()
8729 cbradney 1327
 
21543 craig 1328
if (WANT_SVNVERSION)
19782 craig 1329
	add_dependencies(${EXE_NAME} svnheader)
21543 craig 1330
endif ()
19175 craig 1331
 
21543 craig 1332
target_link_libraries(${EXE_NAME}
19079 craig 1333
	${SCRIBUS_COLORMGMT_LIB}
1334
	${SCRIBUS_DESAXE_LIB}
1335
	${SCRIBUS_TEXT_LIB}
1336
	${SCRIBUS_STYLES_LIB}
1337
	${SCRIBUS_FONTS_LIB}
1338
	${SCRIBUS_WPG_LIB}
1339
	${SCRIBUS_PGF_LIB}
1340
	${SCRIBUS_ZIP_LIB}
20448 fschmid 1341
	${SCRIBUS_RTF_LIB}
19079 craig 1342
	${LCMS2_LIBRARIES}
8917 avox 1343
)
1344
 
21543 craig 1345
if(WITH_TESTS)
1346
	target_link_libraries(${EXE_NAME}
19079 craig 1347
		${QT_QTTEST_LIBRARY}
19821 craig 1348
		${SCRIBUS_TESTS_LIB}
19079 craig 1349
	)
21543 craig 1350
endif()
16605 avox 1351
 
21543 craig 1352
if(HAVE_PODOFO)
1353
	target_link_libraries(${EXE_NAME}
19821 craig 1354
		${LIBPODOFO_LIBRARY}
19079 craig 1355
	)
21543 craig 1356
endif()
11956 avox 1357
 
21543 craig 1358
if(HAVE_OSG)
1359
	target_link_libraries(${EXE_NAME}
19821 craig 1360
		${OPENTHREADS_LIBRARY}
1361
		${OSG_LIBRARY}
1362
		${OSGGA_LIBRARY}
1363
		${OSGUTIL_LIBRARY}
1364
		${OSGDB_LIBRARY}
1365
		${OSGVIEWER_LIBRARY}
1366
		${OSGTEXT_LIBRARY}
1367
		${SCRIBUS_PRC_LIB}
19079 craig 1368
	)
21543 craig 1369
endif()
13839 fschmid 1370
 
21543 craig 1371
if (HAVE_BOOST)
1372
	target_link_libraries(${EXE_NAME}
19821 craig 1373
		${SCRIBUS_2GEOM_LIB}
19079 craig 1374
	)
21543 craig 1375
endif()
14937 fschmid 1376
 
10778 craig 1377
# Now build plugins
18446 craig 1378
 
21543 craig 1379
set(PLUGIN_LIBRARIES
19821 craig 1380
	${Qt5Core_LIBRARIES}
1381
	${Qt5Widgets_LIBRARIES}
1382
	${Qt5Gui_LIBRARIES}
1383
	${Qt5Xml_LIBRARIES}
1384
	${Qt5Network_LIBRARIES}
1385
	${Qt5OpenGL_LIBRARIES}
1386
	${LIBXML2_LIBRARIES}
1387
	${ZLIB_LIBRARIES}
1388
)
18446 craig 1389
 
21543 craig 1390
if(WIN32)
19079 craig 1391
	# IF your plugin needs more than this, please link them privately
1392
	# in the CMakeLists.txt for your plugin.
21543 craig 1393
	set(PLUGIN_LIBRARIES
19821 craig 1394
#		${QT_LIBRARIES} part of #7210
1395
		${PLUGIN_LIBRARIES}
1396
		${EXE_NAME}
19079 craig 1397
	)
21543 craig 1398
endif()
1399
if(APPLE)
1400
	set(PLUGIN_LIBRARIES
19821 craig 1401
		${PLUGIN_LIBRARIES}
1402
		"-undefined dynamic_lookup"
19079 craig 1403
	)
21543 craig 1404
endif()
1405
message(STATUS ${PLUGIN_LIBRARIES})
10778 craig 1406
 
21543 craig 1407
add_subdirectory(plugins)
10778 craig 1408
 
10311 cbradney 1409
#do we want a lib suffix on osx? doubt it
21543 craig 1410
if(APPLEBUNDLE)
1411
	install(DIRECTORY DESTINATION MacOS)
1412
	install(TARGETS ${EXE_NAME}
19079 craig 1413
	RUNTIME DESTINATION MacOS
1414
	LIBRARY DESTINATION lib
1415
	)
21543 craig 1416
#	add_custom_command(TARGET ${EXE_NAME} POST_BUILD
12457 avox 1417
#	COMMAND ${CMAKE_COMMAND} ARGS -Dinput_file=${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.app/Contents/MacOS/${EXE_NAME} -P ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake
19079 craig 1418
#	)
21543 craig 1419
#message(STATUS "Installing apple bundle")
12457 avox 1420
 
21543 craig 1421
#	set(APPS "${APPLE_APP_DIR}")
1422
#	set(DIRS ${QT_LIBRARY_DIRS})
1423
#	install(CODE "
19624 craig 1424
#		file(GLOB_RECURSE QTPLUGINS
1425
#		  \"\${CMAKE_INSTALL_PREFIX}/${LIBDIR}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
1426
#		include(BundleUtilities)
1427
#		fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
1428
#		" COMPONENT Runtime)
1429
 
1430
 
21543 craig 1431
else()
1432
	if(WIN32)
1433
		install(TARGETS ${EXE_NAME}
19821 craig 1434
			RUNTIME DESTINATION .
1435
			LIBRARY DESTINATION ${LIB_DIR_NAME}
19079 craig 1436
		)
21543 craig 1437
	else()
1438
		install(TARGETS ${EXE_NAME}
19821 craig 1439
			RUNTIME DESTINATION bin
1440
			LIBRARY DESTINATION ${LIB_DIR_NAME}
19079 craig 1441
		)
21543 craig 1442
	endif()
1443
endif()
5758 cbradney 1444
 
13794 cbradney 1445
#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
21543 craig 1446
if(WANT_HEADERINSTALL)
1447
	message(STATUS "Source header files will be installed")
1448
	install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR}
19821 craig 1449
		FILES_MATCHING
1450
		PATTERN "*.h"
1451
		PATTERN "dicts" EXCLUDE
1452
		PATTERN "doc" EXCLUDE
1453
		PATTERN "dtd" EXCLUDE
1454
		PATTERN "editorconfig" EXCLUDE
1455
		PATTERN "icon*" EXCLUDE
1456
		PATTERN "manpages" EXCLUDE
1457
		PATTERN "old" EXCLUDE
1458
		PATTERN ".svn" EXCLUDE
19079 craig 1459
	)
21543 craig 1460
else()
1461
	message(STATUS "No source header files will be installed")
1462
endif()
19956 craig 1463
 
1464
#Install our stylesheet
21543 craig 1465
install(FILES
19956 craig 1466
	scribus.css
1467
	DESTINATION ${LIBDIR}
1468
)