Subversion Repositories Scribus

Rev

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