Subversion Repositories Scribus

Rev

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