Subversion Repositories Scribus

Rev

Rev 24236 | 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
 
24251 craig 33
include(text/CMakeLists.txt)
34
 
21543 craig 35
add_subdirectory(dtd)
36
add_subdirectory(colormgmt)
37
add_subdirectory(desaxe)
38
add_subdirectory(fonts)
39
add_subdirectory(styles)
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}
24251 craig 585
	${SCRIBUS_TEXT_MOC_CLASSES}
5142 cbradney 586
)
587
 
21543 craig 588
set(SCRIBUS_SOURCES
19079 craig 589
	actionmanager.cpp
23088 jghali 590
	actionsearch.cpp
19079 craig 591
	appmodehelper.cpp
592
	canvas.cpp
593
	canvasgesture_cellselect.cpp
594
	canvasgesture_columnresize.cpp
595
	canvasgesture_linemove.cpp
596
	canvasgesture_pan.cpp
597
	canvasgesture_rectselect.cpp
598
	canvasgesture_resize.cpp
599
	canvasgesture_rowresize.cpp
600
	canvasgesture_rulermove.cpp
601
	canvasgesture_table.cpp
602
	canvasgesture_tableresize.cpp
603
	canvasmode.cpp
604
	canvasmode_copyproperties.cpp
605
	canvasmode_create.cpp
606
	canvasmode_drawbezier.cpp
607
	canvasmode_drawcalligraphic.cpp
608
	canvasmode_drawfreehand.cpp
609
	canvasmode_eyedropper.cpp
610
	canvasmode_framelinks.cpp
611
	canvasmode_imageimport.cpp
612
	canvasmode_edit.cpp
613
	canvasmode_editarc.cpp
614
	canvasmode_editgradient.cpp
615
	canvasmode_editmeshgradient.cpp
616
	canvasmode_editmeshpatch.cpp
617
	canvasmode_editpolygon.cpp
618
	canvasmode_editspiral.cpp
619
	canvasmode_edittable.cpp
620
	canvasmode_editweldpoint.cpp
621
	canvasmode_magnifier.cpp
622
	canvasmode_measurements.cpp
623
	canvasmode_nodeedit.cpp
624
	canvasmode_normal.cpp
625
	canvasmode_objimport.cpp
626
	canvasmode_panning.cpp
627
	canvasmode_rotate.cpp
628
	cellarea.cpp
629
	chartablemodel.cpp
630
	chartableview.cpp
631
	cmserrorhandling.cpp
632
	cmsettings.cpp
633
	collapsedtablepainter.cpp
20630 jghali 634
	collapsedtablepainterex.cpp
19079 craig 635
	collect4output.cpp
636
	colorblind.cpp
637
	colorsetmanager.cpp
638
	commonstrings.cpp
639
	deferredtask.cpp
640
	docinfo.cpp
641
	documentchecker.cpp
642
	documentinformation.cpp
643
	exif.cpp
644
	fileloader.cpp
645
	filesearch.cpp
646
	filewatcher.cpp
647
	fontlistmodel.cpp
648
	fpoint.cpp
649
	fpointarray.cpp
650
	gtaction.cpp
651
	gtfont.cpp
652
	gtframestyle.cpp
653
	gtgettext.cpp
654
	gtmeasure.cpp
655
	gtparagraphstyle.cpp
656
	gtstyle.cpp
657
	gtwriter.cpp
658
	guidemanagercore.cpp
659
	guidesdelegate.cpp
660
	guidesmodel.cpp
661
	guidesview.cpp
662
	hyphenator.cpp
20185 craig 663
	iconmanager.cpp
19079 craig 664
	ioapi.c
665
	KarbonCurveFit.cpp
666
	langdef.cpp
667
	langmgr.cpp
668
	latexhelpers.cpp
669
	loadsaveplugin.cpp
670
	localemgr.cpp
20528 craig 671
	marks.cpp
19079 craig 672
	menumanager.cpp
673
	mesh.cpp
674
	navigator.cpp
675
	numeration.cpp
676
	observable.cpp
677
	nftrcreader.cpp
678
	nftsettings.cpp
679
	nfttemplate.cpp
19946 craig 680
	nodeeditcontext.cpp
19079 craig 681
	notesstyles.cpp
682
	pageitem.cpp
683
	pageitem_arc.cpp
684
	pageitem_group.cpp
685
	pageitem_imageframe.cpp
686
	pageitem_latexframe.cpp
687
	pageitem_line.cpp
688
	pageitem_pathtext.cpp
689
	pageitem_polygon.cpp
690
	pageitem_polyline.cpp
691
	pageitem_regularpolygon.cpp
692
	pageitem_spiral.cpp
693
	pageitem_symbol.cpp
694
	pageitem_table.cpp
695
	pageitem_textframe.cpp
696
	pageitem_noteframe.cpp
22461 jghali 697
	pageitemiterator.cpp
19079 craig 698
	pageitempointer.cpp
699
	pagesize.cpp
700
	pdf_analyzer.cpp
701
	pdflib.cpp
702
	pdflib_core.cpp
703
	pdfoptions.cpp
704
	pdfoptionsio.cpp
23548 jghali 705
	pdfversion.cpp
20103 avox 706
	pdfwriter.cpp
19079 craig 707
	pluginmanager.cpp
708
	pp_proxy.cpp
709
	prefscontext.cpp
710
	prefsfile.cpp
711
	prefsmanager.cpp
712
	prefsreader.cpp
713
	prefstable.cpp
24010 jghali 714
	printpreviewcreator.cpp
715
	printpreviewcreator_pdf.cpp
716
	printpreviewcreator_ps.cpp
717
	printpreviewcreatorfactory.cpp
19079 craig 718
	pslib.cpp
719
	qtiocompressor.cpp
720
	rawimage.cpp
721
	rc4.c
722
	sampleitem.cpp
723
	scclocale.cpp
724
	sccolor.cpp
725
	sccolorengine.cpp
726
	sccolorshade.cpp
22614 jghali 727
	sccolorstructs.cpp
19079 craig 728
	scdocoutput.cpp
729
	scdocoutput_ps2.cpp
730
	scdomelement.cpp
731
	scfonts.cpp
732
	scgtplugin.cpp
733
	schelptreemodel.cpp
734
	scimage.cpp
735
	scimagecacheproxy.cpp
736
	scimagecachedir.cpp
737
	scimagecachefile.cpp
738
	scimagecachemanager.cpp
739
	scimagecachewriteaction.cpp
740
	scimagestructs.cpp
741
	sclayer.cpp
742
	sclockedfile.cpp
743
	scmimedata.cpp
744
	scpage.cpp
745
	scpageoutput.cpp
746
	scpageoutput_ps2.cpp
747
	scpainter.cpp
748
	scpainterex_ps2.cpp
749
	scpainterexbase.cpp
750
	scpaths.cpp
751
	scpattern.cpp
752
	scplugin.cpp
753
	scpreview.cpp
23874 jghali 754
	scprintengine_pdf.cpp
19079 craig 755
	scprintengine_ps.cpp
756
	scraction.cpp
757
	scribus.cpp
758
	scribusXml.cpp
759
	scribusapp.cpp
760
	scribuscore.cpp
761
	scribusdoc.cpp
762
	scribusview.cpp
763
	scribuswin.cpp
764
	scslainforeader.cpp
765
	scstreamfilter.cpp
766
	scstreamfilter_ascii85.cpp
767
	scstreamfilter_flate.cpp
768
	scstreamfilter_jpeg.cpp
769
	scstreamfilter_rc4.cpp
770
	sctextstream.cpp
771
	sctextstruct.cpp
772
	scxmlstreamreader.cpp
773
	selection.cpp
774
	selectionrubberband.cpp
775
	serializer.cpp
776
	styleitem.cpp
777
	tableborder.cpp
778
	tablecell.cpp
779
	tableutils.cpp
780
	textwriter.cpp
781
	tocgenerator.cpp
782
	transaction.cpp
783
	undogui.cpp
784
	undomanager.cpp
785
	undoobject.cpp
786
	undostack.cpp
787
	undostate.cpp
19416 jghali 788
	undotransaction.cpp
19079 craig 789
	units.cpp
790
	updatemanager.cpp
791
	upgradechecker.cpp
792
	urllauncher.cpp
793
	util.cpp
794
	util_color.cpp
19271 craig 795
	util_debug.cpp
19079 craig 796
	util_file.cpp
797
	util_formats.cpp
798
	util_ghostscript.cpp
799
	util_layer.cpp
800
	util_math.cpp
19405 craig 801
	util_os.cpp
19079 craig 802
	util_printer.cpp
803
	util_text.cpp
804
	vgradient.cpp
805
	vgradientex.cpp
22413 jghali 806
	downloadmanager/scdlmgr.cpp
807
	downloadmanager/scdlthread.cpp
808
	imagedataloaders/scimgdataloader.cpp
809
	imagedataloaders/scimgdataloader_gimp.cpp
810
	imagedataloaders/scimgdataloader_jpeg.cpp
811
	imagedataloaders/scimgdataloader_kra.cpp
812
	imagedataloaders/scimgdataloader_ora.cpp
813
	imagedataloaders/scimgdataloader_pdf.cpp
814
	imagedataloaders/scimgdataloader_pgf.cpp
815
	imagedataloaders/scimgdataloader_pict.cpp
23489 jghali 816
	imagedataloaders/scimgdataloader_png.cpp
22413 jghali 817
	imagedataloaders/scimgdataloader_ps.cpp
818
	imagedataloaders/scimgdataloader_psd.cpp
819
	imagedataloaders/scimgdataloader_qt.cpp
820
	imagedataloaders/scimgdataloader_tiff.cpp
821
	imagedataloaders/scimgdataloader_wpg.cpp
22426 jghali 822
	palettes/cxfcolor.cpp
22423 jghali 823
	palettes/cxfcolorspecification.cpp
22426 jghali 824
	palettes/cxfdocument.cpp
22427 jghali 825
	palettes/cxfobject.cpp
22423 jghali 826
	palettes/cxfmeasurementspec.cpp
827
	palettes/cxftristimulusspec.cpp
828
	palettes/cxfutils.cpp
22413 jghali 829
	palettes/paletteloader.cpp
830
	palettes/paletteloader_adobe_acb.cpp
831
	palettes/paletteloader_adobe_aco.cpp
832
	palettes/paletteloader_adobe_ase.cpp
833
	palettes/paletteloader_autocad_acb.cpp
22427 jghali 834
	palettes/paletteloader_cxf.cpp
22413 jghali 835
	palettes/paletteloader_ps.cpp
836
	palettes/paletteloader_sk1.cpp
837
	palettes/paletteloader_swatchbook.cpp
838
	third_party/fparser/fpoptimizer.cc
839
	third_party/fparser/fparser.cc
19079 craig 840
	ui/about.cpp
841
	ui/aboutplugins.cpp
23088 jghali 842
	ui/actionsearchdialog.cpp
19079 craig 843
	ui/adjustcmsdialog.cpp
844
	ui/aligndistribute.cpp
845
	ui/alignselect.cpp
21563 jghali 846
	ui/directionselect.cpp
19079 craig 847
	ui/annot.cpp
848
	ui/annota.cpp
849
	ui/applytemplatedialog.cpp
850
	ui/arcwidget.cpp
851
	ui/arcvectordialog.cpp
852
	ui/arrowchooser.cpp
853
	ui/autoform.cpp
854
	ui/autoformbuttongroup.cpp
855
	ui/basepointwidget.cpp
856
	ui/bookmarkpalette.cpp
857
	ui/bookmwin.cpp
858
	ui/buttonicon.cpp
859
	ui/charselect.cpp
860
	ui/charselectenhanced.cpp
861
	ui/charzoom.cpp
862
	ui/checkDocument.cpp
863
	ui/clockwidget.cpp
864
	ui/cmsprefs.cpp
865
	ui/cmykfw.cpp
866
	ui/collectforoutput_ui.cpp
867
	ui/colorchart.cpp
868
	ui/colorcombo.cpp
869
	ui/colorlistbox.cpp
21855 jghali 870
	ui/colorlistmodel.cpp
21926 craig 871
	ui/colorsandfills.cpp
23282 craig 872
	ui/contentpalette.cpp
23346 jghali 873
	ui/contentpalette_default.cpp
874
	ui/contentpalette_page.cpp
19079 craig 875
	ui/contextmenu.cpp
876
	ui/cpalette.cpp
877
	ui/cupsoptions.cpp
878
	ui/curvewidget.cpp
879
	ui/customfdialog.cpp
22444 jghali 880
	ui/cxfimportdialog.cpp
19079 craig 881
	ui/dasheditor.cpp
882
	ui/dcolor.cpp
883
	ui/delpages.cpp
19783 craig 884
	ui/downloadspalette.cpp
19079 craig 885
	ui/editor.cpp
886
	ui/effectsdialog.cpp
887
	ui/extimageprops.cpp
19153 craig 888
	ui/filedialogeventcatcher.cpp
20338 jghali 889
	ui/fontcombo.cpp
22218 jghali 890
	ui/fontembeddingcombo.cpp
891
	ui/fontembeddingmodel.cpp
19079 craig 892
	ui/fontlistview.cpp
893
	ui/fontreplacedialog.cpp
894
	ui/gradientaddedit.cpp
895
	ui/gradienteditor.cpp
896
	ui/gradientvectordialog.cpp
897
	ui/gradientpreview.cpp
898
	ui/gtdialogs.cpp
899
	ui/gtfiledialog.cpp
900
	ui/guidemanager.cpp
901
	ui/helpbrowser.cpp
902
	ui/hruler.cpp
903
	ui/hyask.cpp
904
	ui/imageinfodialog.cpp
905
	ui/inlinepalette.cpp
906
	ui/insertTable.cpp
907
	ui/insertaframe.cpp
908
	ui/inserttablecolumnsdialog.cpp
909
	ui/inserttablerowsdialog.cpp
910
	ui/inspage.cpp
911
	ui/javadocs.cpp
912
	ui/latexeditor.cpp
913
	ui/layers.cpp
914
	ui/linecombo.cpp
915
	ui/linkbutton.cpp
916
	ui/loremipsum.cpp
917
	ui/mark2item.cpp
918
	ui/mark2mark.cpp
919
	ui/markanchor.cpp
920
	ui/marknote.cpp
921
	ui/marksmanager.cpp
922
	ui/markvariabletext.cpp
923
	ui/marginpresetlayout.cpp
924
	ui/marginwidget.cpp
925
	ui/newmarginwidget.cpp
926
	ui/mergedoc.cpp
927
	ui/missing.cpp
928
	ui/movepage.cpp
929
	ui/multipleduplicate.cpp
930
	ui/multiprogressdialog.cpp
931
	ui/measurements.cpp
23361 jghali 932
	ui/newdocdialog.cpp
19079 craig 933
	ui/newtemp.cpp
934
	ui/nftdialog.cpp
935
	ui/nftwidget.cpp
936
	ui/nodeeditpalette.cpp
937
	ui/notesstyleseditor.cpp
22971 jghali 938
	ui/numformatcombo.cpp
19079 craig 939
	ui/outlinepalette.cpp
23829 jghali 940
	ui/outputpreview_pdf.cpp
23847 jghali 941
	ui/outputpreview_ps.cpp
23829 jghali 942
	ui/outputpreviewbase.cpp
19079 craig 943
	ui/pageitemattributes.cpp
944
	ui/pagelayout.cpp
945
	ui/pagepalette.cpp
946
	ui/pagepalette_pages.cpp
947
	ui/pagepalette_masterpages.cpp
948
	ui/pagepalette_widgets.cpp
21901 craig 949
	ui/pagepropertiesdialog.cpp
19079 craig 950
	ui/pageselector.cpp
951
	ui/patternpropsdialog.cpp
19966 craig 952
	ui/pdfexportdialog.cpp
22438 jghali 953
	ui/pdfversioncombo.cpp
954
	ui/pdfversionmodel.cpp
19079 craig 955
	ui/picsearch.cpp
956
	ui/picsearchoptions.cpp
957
	ui/picstatus.cpp
958
	ui/polygonwidget.cpp
959
	ui/polyprops.cpp
960
	ui/preferencesdialog.cpp
961
	ui/prefs_colormanagement.cpp
962
	ui/prefs_display.cpp
963
	ui/prefs_documentinformation.cpp
964
	ui/prefs_documentsections.cpp
965
	ui/prefs_documentsetup.cpp
966
	ui/prefs_externaltools.cpp
967
	ui/prefs_fonts.cpp
968
	ui/prefs_guides.cpp
969
	ui/prefs_hyphenator.cpp
970
	ui/prefs_imagecache.cpp
971
	ui/prefs_keyboardshortcuts.cpp
972
	ui/prefs_miscellaneous.cpp
973
	ui/prefs_pagesizes.cpp
974
	ui/prefs_paths.cpp
975
	ui/prefs_plugins.cpp
976
	ui/prefs_preflightverifier.cpp
977
	ui/prefs_printer.cpp
978
	ui/prefs_scrapbook.cpp
979
	ui/prefs_spelling.cpp
980
	ui/prefs_typography.cpp
981
	ui/prefs_userinterface.cpp
982
	ui/prefs_itemtools.cpp
983
	ui/prefs_operatortools.cpp
984
	ui/prefs_pdfexport.cpp
985
	ui/prefs_tableofcontents.cpp
986
	ui/prefs_documentitemattributes.cpp
987
	ui/printdialog.cpp
24049 jghali 988
	ui/printlanguagecombo.cpp
23791 jghali 989
	ui/printpreview.cpp
19079 craig 990
	ui/propertiespalette.cpp
991
	ui/propertiespalette_image.cpp
992
	ui/propertiespalette_group.cpp
993
	ui/propertiespalette_line.cpp
994
	ui/propertiespalette_shadow.cpp
995
	ui/propertiespalette_shape.cpp
996
	ui/propertiespalette_table.cpp
997
	ui/propertiespalette_text.cpp
998
	ui/propertiespalette_utils.cpp
999
	ui/propertiespalette_xyz.cpp
1000
	ui/propertywidget_advanced.cpp
1001
	ui/propertywidget_distance.cpp
1002
	ui/propertywidget_pareffect.cpp
1003
	ui/propertywidget_flop.cpp
21563 jghali 1004
	ui/propertywidget_hyphenation.cpp
19079 craig 1005
	ui/propertywidget_optmargins.cpp
1006
	ui/propertywidget_orphans.cpp
1007
	ui/propertywidget_pathtext.cpp
1008
	ui/propertywidget_textcolor.cpp
21563 jghali 1009
	ui/propertywidget_fontfeatures.cpp
19079 craig 1010
	ui/propertywidgetbase.cpp
1011
	ui/proptree.cpp
1012
	ui/query.cpp
21098 fschmid 1013
	ui/recoverdialog.cpp
19079 craig 1014
	ui/replacecolors.cpp
1015
	ui/replaceonecolor.cpp
19821 craig 1016
	ui/resourcemanager.cpp
20410 craig 1017
	ui/resourcemanagerlicense.cpp
19079 craig 1018
	ui/rulermover.cpp
20338 jghali 1019
	ui/sccolorslider.cpp
19079 craig 1020
	ui/scdockpalette.cpp
1021
	ui/scescapecatcher.cpp
1022
	ui/scfilewidget.cpp
1023
	ui/scinputdialog.cpp
1024
	ui/sclistwidgetdelegate.cpp
1025
	ui/scmenu.cpp
1026
	ui/scmessagebox.cpp
1027
	ui/scmwmenumanager.cpp
1028
	ui/scrapbookpalette.cpp
1029
	ui/scresizecursor.cpp
1030
	ui/scrpalettebase.cpp
1031
	ui/scrspinbox.cpp
1032
	ui/sctablewidget.cpp
1033
	ui/sctextbrowser.cpp
1034
	ui/sctoolbar.cpp
1035
	ui/sctreewidget.cpp
1036
	ui/search.cpp
1037
	ui/selectobjects.cpp
1038
	ui/selfield.cpp
1039
	ui/shadebutton.cpp
1040
	ui/shortcutwidget.cpp
1041
	ui/smalignselect.cpp
1042
	ui/smcellstylewidget.cpp
1043
	ui/smcellstyle.cpp
1044
	ui/smcheckbox.cpp
1045
	ui/smcolorcombo.cpp
1046
	ui/smcstylewidget.cpp
21563 jghali 1047
	ui/smdirectionselect.cpp
1048
	ui/smfontfeatures.cpp
19079 craig 1049
	ui/smfontcomboh.cpp
1050
	ui/smlinestyle.cpp
1051
	ui/smlinestylewidget.cpp
22971 jghali 1052
	ui/smnumformatcombo.cpp
19079 craig 1053
	ui/smpstylewidget.cpp
1054
	ui/smradiobutton.cpp
1055
	ui/smreplacedia.cpp
1056
	ui/smsccombobox.cpp
1057
	ui/smscrspinbox.cpp
1058
	ui/smshadebutton.cpp
1059
	ui/smspinbox.cpp
21563 jghali 1060
	ui/smlineedit.cpp
19079 craig 1061
	ui/smstyleimport.cpp
1062
	ui/smstyleselect.cpp
1063
	ui/smtablestylewidget.cpp
1064
	ui/smtablestyle.cpp
1065
	ui/smtabruler.cpp
1066
	ui/smtextstyles.cpp
1067
	ui/spiralvectordialog.cpp
1068
	ui/spiralwidget.cpp
1069
	ui/splash.cpp
1070
	ui/storyeditor.cpp
23621 jghali 1071
	ui/stylecombos.cpp
19079 craig 1072
	ui/stylemanager.cpp
1073
	ui/styleselect.cpp
1074
	ui/styleview.cpp
1075
	ui/swatchcombo.cpp
1076
	ui/symbolpalette.cpp
1077
	ui/tablecolumnwidthsdialog.cpp
1078
	ui/tablerowheightsdialog.cpp
1079
	ui/tablesideselector.cpp
1080
	ui/tabmanager.cpp
1081
	ui/tabpdfoptions.cpp
1082
	ui/tabruler.cpp
1083
	ui/transformdialog.cpp
1084
	ui/transparencypalette.cpp
1085
	tt/simpletreemodel/treeitem.cpp
1086
	tt/simpletreemodel/treemodel.cpp
1087
	ui/copypagetomasterpagedialog.cpp
1088
	ui/createrange.cpp
1089
	ui/edittoolbar.cpp
1090
	ui/filetoolbar.cpp
1091
	ui/helpnavigation.cpp
1092
	ui/modetoolbar.cpp
1093
	ui/pdftoolbar.cpp
1094
	ui/viewtoolbar.cpp
1095
	ui/unicodesearch.cpp
1096
	ui/vruler.cpp
1097
	ui/useprintermarginsdialog.cpp
1098
	ui/weldedit.cpp
19821 craig 1099
#	#{SCRIBUS_ITEMSETTERS_SRC}
19079 craig 1100
	${SCRIBUS_OSG_SRC}
1101
	${SCRIBUS_GMAGICK_SRC}
24251 craig 1102
	${SCRIBUS_TEXT_LIB_SOURCES}
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}/colormgmt
1139
	${CMAKE_CURRENT_BINARY_DIR}/desaxe
1140
	${CMAKE_CURRENT_BINARY_DIR}/fonts
1141
	${CMAKE_CURRENT_BINARY_DIR}/styles
1142
	${CMAKE_CURRENT_BINARY_DIR}/third_party/wpg
1143
	${CMAKE_CURRENT_BINARY_DIR}/third_party/pgf
20448 fschmid 1144
	${CMAKE_CURRENT_BINARY_DIR}/third_party/rtf-qt
19079 craig 1145
	${CMAKE_CURRENT_BINARY_DIR}/third_party/zip
21563 jghali 1146
	${HARFBUZZ_LIBRARY_DIRS}
1147
	${ICU_LIBRARY_DIRS}
5142 cbradney 1148
)
1149
 
21543 craig 1150
if(WITH_TESTS)
1151
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/tests )
1152
endif()
16605 avox 1153
 
21543 craig 1154
if(HAVE_OSG)
1155
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/third_party/prc )
1156
endif ()
13839 fschmid 1157
 
21543 craig 1158
if(HAVE_BOOST)
1159
	link_directories( ${CMAKE_CURRENT_BINARY_DIR}/third_party/lib2geom )
1160
endif ()
14937 fschmid 1161
 
21543 craig 1162
set(SCRIBUS_COLORMGMT_LIB "scribus_colormgmt_lib")
24251 craig 1163
 
21543 craig 1164
if(WITH_TESTS)
1165
	set(SCRIBUS_TESTS_LIB "scribus_tests_lib")
1166
else()
1167
	set(SCRIBUS_TESTS_LIB "")
1168
endif()
1169
set(SCRIBUS_STYLES_LIB "scribus_styles_lib")
1170
set(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
1171
set(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
1172
if(HAVE_OSG)
1173
	set(SCRIBUS_PRC_LIB "scribus_prc_lib")
1174
endif ()
1175
if(HAVE_BOOST)
1176
	set(SCRIBUS_2GEOM_LIB "scribus_2geom_lib")
1177
endif ()
1178
set(SCRIBUS_WPG_LIB "scribus_wpg_lib")
1179
set(SCRIBUS_PGF_LIB "scribus_pgf_lib")
1180
set(SCRIBUS_ZIP_LIB "scribus_zip_lib")
1181
set(SCRIBUS_RTF_LIB "scribus_rtf_lib")
15796 fschmid 1182
 
21543 craig 1183
if (GMAGICK_FOUND)
1184
	message(STATUS "GMAGICK: Libs: ${GMAGICK_LDFLAGS}, Inc: ${GMAGICK_INCLUDE_DIRS}, Ldflags: ${GMAGICK_LDFLAGS}")
1185
	include_directories(
19735 fschmid 1186
		BEFORE ${GMAGICK_INCLUDE_DIRS}
19079 craig 1187
	)
21543 craig 1188
	link_directories(
19911 craig 1189
		${GMAGICK_LIBRARY}
19079 craig 1190
	)
21543 craig 1191
endif()
13962 herm 1192
 
21543 craig 1193
if(HAVE_PODOFO)
21774 craig 1194
	if(OPENSSL_FOUND)
1195
		message(STATUS "Including OpenSSL files for PoDoFo >= 0.9.5")
1196
		include_directories(
1197
			${OPENSSL_INCLUDE_DIR}
1198
		)
21776 jghali 1199
	else()
21774 craig 1200
#		message(STATUS "Not including OpenSSL files because this system's PoDoFo does not require them")
21776 jghali 1201
	endif()
21543 craig 1202
	include_directories(
21774 craig 1203
		${LIBPODOFO_INCLUDE_DIR}
19079 craig 1204
	)
21774 craig 1205
 
21543 craig 1206
endif()
11956 avox 1207
 
21543 craig 1208
if(HAVE_HYPHEN)
1209
	target_link_libraries(${EXE_NAME}
19079 craig 1210
	${HYPHEN_LIBRARY}
1211
	)
21543 craig 1212
endif()
16359 craig 1213
 
1214
 
21543 craig 1215
if(GESTURE_FRAME_PREVIEW)
1216
	 message(STATUS "Enable gesture frame preview [experimental]")
1217
	 set(GESTURE_FRAME_PREVIEW_SOURCES	pageitempreview.cpp)
1218
	 add_definitions(-DGESTURE_FRAME_PREVIEW)
1219
endif()
11956 avox 1220
 
21543 craig 1221
if(APPLEBUNDLE)
23020 craig 1222
	set(EXE_NAME "Scribus${TAG_VERSION}" CACHE STRING "Scribus version")
21543 craig 1223
else()
23020 craig 1224
	set(EXE_NAME "scribus${TAG_VERSION}" CACHE STRING "Scribus version")
21543 craig 1225
endif()
5142 cbradney 1226
 
21543 craig 1227
if(COMMAND cmake_policy)
19079 craig 1228
	cmake_policy(SET CMP0003 OLD)
21543 craig 1229
endif()
12373 malex 1230
 
21543 craig 1231
if(HAVE_OSG)
1232
	add_executable(${EXE_NAME}
19821 craig 1233
		${SCRIBUS_MOC_SOURCES}
1234
		${SCRIBUS_SOURCES}
1235
		${SCRIBUS_MAIN_CPP}
1236
		${SCRIBUS_UI_SOURCES}
1237
		${SCRIBUS_STYLES_SOURCES}
1238
		${SCRIBUS_COLORMGMT_SOURCES}
1239
		${SCRIBUS_FONTS_SOURCES}
1240
		${SCRIBUS_DESAXE_SOURCES}
1241
		${SCRIBUS_WIN32_ONLY_SOURCES}
1242
		${GESTURE_FRAME_PREVIEW_SOURCES}
1243
		${SCRIBUS_PRC_SOURCES}
1244
	)
21543 craig 1245
else()
1246
	add_executable(${EXE_NAME}
19821 craig 1247
		${SCRIBUS_MOC_SOURCES}
1248
		${SCRIBUS_SOURCES}
1249
		${SCRIBUS_MAIN_CPP}
1250
		${SCRIBUS_UI_SOURCES}
1251
		${SCRIBUS_STYLES_SOURCES}
1252
		${SCRIBUS_COLORMGMT_SOURCES}
1253
		${SCRIBUS_FONTS_SOURCES}
1254
		${SCRIBUS_DESAXE_SOURCES}
1255
		${SCRIBUS_WIN32_ONLY_SOURCES}
1256
		${GESTURE_FRAME_PREVIEW_SOURCES}
1257
	)
21543 craig 1258
endif ()
5142 cbradney 1259
 
21543 craig 1260
if(WIN32)
1261
	set_target_properties(${EXE_NAME}
19821 craig 1262
		PROPERTIES
1263
		COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
1264
		ENABLE_EXPORTS TRUE
10778 craig 1265
	)
21543 craig 1266
	set(WIN32_ONLY_LIBS mscms.lib)
1267
else()
1268
	set(WIN32_ONLY_LIBS)
1269
endif()
10778 craig 1270
 
12176 cbradney 1271
##TEST FIX FOR 6897
21543 craig 1272
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
12176 cbradney 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 ()
1279
if (GCC AND NOT WIN32)
15437 craig 1280
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
1281
# binary are in the public symbol table for plugins. The symbols must also
1282
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
1283
# Should fix bug 6897 .
21543 craig 1284
	set_target_properties(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
1285
endif ()
12176 cbradney 1286
##
1287
 
1288
 
8729 cbradney 1289
#Set up libraries to link with all found packages
21543 craig 1290
include_directories(${CAIRO_INCLUDE_DIR})
1291
target_link_libraries(${EXE_NAME} ${CAIRO_LIBRARIES})
1292
link_directories(${PREFIX_CAIRO_LIB})
1293
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
8729 cbradney 1294
 
21543 craig 1295
message("RPATH: ${CMAKE_INSTALL_RPATH}")
8729 cbradney 1296
 
21543 craig 1297
target_link_libraries(${EXE_NAME}
19079 craig 1298
	${Qt5Core_LIBRARIES}
1299
	${Qt5Widgets_LIBRARIES}
1300
	${Qt5Gui_LIBRARIES}
1301
	${Qt5Xml_LIBRARIES}
1302
	${Qt5Network_LIBRARIES}
1303
	${Qt5OpenGL_LIBRARIES}
19542 jghali 1304
	${Qt5PrintSupport_LIBRARIES}
21752 jghali 1305
#	${Qt5Quick_LIBRARIES}
19079 craig 1306
	${CUPS_LIBRARIES}
1307
	${FREETYPE_LIBRARIES}
21563 jghali 1308
	${HARFBUZZ_LIBRARIES}
1309
	${ICU_LIBRARIES}
23422 craig 1310
#	${FONTCONFIG_LIBRARIES}
19079 craig 1311
	${LIBXML2_LIBRARIES}
1312
	${TIFF_LIBRARIES}
23489 jghali 1313
	${PNG_LIBRARIES}
19079 craig 1314
	${JPEG_LIBRARIES}
1315
	${ZLIB_LIBRARIES}
1316
	${WIN32_ONLY_LIBS}
1317
	${GMAGICK_LIBRARIES}
18194 fschmid 1318
)
8729 cbradney 1319
 
23422 craig 1320
if (TARGET Fontconfig::Fontconfig)
1321
	target_link_libraries(${EXE_NAME}
1322
		Fontconfig::Fontconfig
1323
	)
1324
endif()
1325
 
1326
 
1327
 
21543 craig 1328
if (NOT WIN32 AND NOT HAIKU)
1329
	target_link_libraries(${EXE_NAME}
19821 craig 1330
		${CUPS_LIBRARIES}
19079 craig 1331
	)
21543 craig 1332
endif ()
18186 craig 1333
 
15244 cbradney 1334
# required to resolve symbols from libdl when ld is called with --no-add-needed
15397 craig 1335
# #9310 for the OpenBSD addition
21543 craig 1336
if(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT HAIKU)
1337
	target_link_libraries(${EXE_NAME} dl)
1338
endif()
15244 cbradney 1339
 
15403 craig 1340
# #9311 for the OpenBSD addition
21543 craig 1341
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
1342
	target_link_libraries(${EXE_NAME} util execinfo)
1343
endif()
15403 craig 1344
 
21780 jghali 1345
if(HAIKU)
1346
	target_link_libraries(${EXE_NAME} execinfo)
1347
endif(HAIKU)
1348
 
21543 craig 1349
if(WIN32)
1350
	target_link_libraries(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
1351
endif()
8729 cbradney 1352
 
21543 craig 1353
if(APPLE)
1354
	target_link_libraries(${EXE_NAME}
19079 craig 1355
	"-undefined dynamic_lookup"
1356
	"-framework CoreFoundation" )
21543 craig 1357
endif()
8729 cbradney 1358
 
21543 craig 1359
if (WANT_SVNVERSION)
19782 craig 1360
	add_dependencies(${EXE_NAME} svnheader)
21543 craig 1361
endif ()
19175 craig 1362
 
21543 craig 1363
target_link_libraries(${EXE_NAME}
19079 craig 1364
	${SCRIBUS_COLORMGMT_LIB}
1365
	${SCRIBUS_DESAXE_LIB}
1366
	${SCRIBUS_STYLES_LIB}
1367
	${SCRIBUS_FONTS_LIB}
1368
	${SCRIBUS_WPG_LIB}
1369
	${SCRIBUS_PGF_LIB}
1370
	${SCRIBUS_ZIP_LIB}
20448 fschmid 1371
	${SCRIBUS_RTF_LIB}
19079 craig 1372
	${LCMS2_LIBRARIES}
8917 avox 1373
)
1374
 
21543 craig 1375
if(WITH_TESTS)
1376
	target_link_libraries(${EXE_NAME}
19079 craig 1377
		${QT_QTTEST_LIBRARY}
19821 craig 1378
		${SCRIBUS_TESTS_LIB}
19079 craig 1379
	)
21543 craig 1380
endif()
16605 avox 1381
 
21543 craig 1382
if(HAVE_PODOFO)
1383
	target_link_libraries(${EXE_NAME}
19821 craig 1384
		${LIBPODOFO_LIBRARY}
19079 craig 1385
	)
21543 craig 1386
endif()
11956 avox 1387
 
21543 craig 1388
if(HAVE_OSG)
1389
	target_link_libraries(${EXE_NAME}
19821 craig 1390
		${OPENTHREADS_LIBRARY}
1391
		${OSG_LIBRARY}
1392
		${OSGGA_LIBRARY}
1393
		${OSGUTIL_LIBRARY}
1394
		${OSGDB_LIBRARY}
1395
		${OSGVIEWER_LIBRARY}
1396
		${OSGTEXT_LIBRARY}
1397
		${SCRIBUS_PRC_LIB}
19079 craig 1398
	)
21543 craig 1399
endif()
13839 fschmid 1400
 
21543 craig 1401
if (HAVE_BOOST)
1402
	target_link_libraries(${EXE_NAME}
19821 craig 1403
		${SCRIBUS_2GEOM_LIB}
19079 craig 1404
	)
21543 craig 1405
endif()
14937 fschmid 1406
 
10778 craig 1407
# Now build plugins
18446 craig 1408
 
21543 craig 1409
set(PLUGIN_LIBRARIES
19821 craig 1410
	${Qt5Core_LIBRARIES}
1411
	${Qt5Widgets_LIBRARIES}
1412
	${Qt5Gui_LIBRARIES}
1413
	${Qt5Xml_LIBRARIES}
1414
	${Qt5Network_LIBRARIES}
1415
	${Qt5OpenGL_LIBRARIES}
1416
	${LIBXML2_LIBRARIES}
1417
	${ZLIB_LIBRARIES}
1418
)
18446 craig 1419
 
21543 craig 1420
if(WIN32)
19079 craig 1421
	# IF your plugin needs more than this, please link them privately
1422
	# in the CMakeLists.txt for your plugin.
21543 craig 1423
	set(PLUGIN_LIBRARIES
19821 craig 1424
#		${QT_LIBRARIES} part of #7210
1425
		${PLUGIN_LIBRARIES}
1426
		${EXE_NAME}
19079 craig 1427
	)
21543 craig 1428
endif()
1429
if(APPLE)
1430
	set(PLUGIN_LIBRARIES
19821 craig 1431
		${PLUGIN_LIBRARIES}
1432
		"-undefined dynamic_lookup"
19079 craig 1433
	)
21543 craig 1434
endif()
1435
message(STATUS ${PLUGIN_LIBRARIES})
10778 craig 1436
 
21543 craig 1437
add_subdirectory(plugins)
10778 craig 1438
 
10311 cbradney 1439
#do we want a lib suffix on osx? doubt it
21543 craig 1440
if(APPLEBUNDLE)
1441
	install(DIRECTORY DESTINATION MacOS)
1442
	install(TARGETS ${EXE_NAME}
19079 craig 1443
	RUNTIME DESTINATION MacOS
1444
	LIBRARY DESTINATION lib
1445
	)
21543 craig 1446
#	add_custom_command(TARGET ${EXE_NAME} POST_BUILD
12457 avox 1447
#	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 1448
#	)
21543 craig 1449
#message(STATUS "Installing apple bundle")
12457 avox 1450
 
21543 craig 1451
#	set(APPS "${APPLE_APP_DIR}")
1452
#	set(DIRS ${QT_LIBRARY_DIRS})
1453
#	install(CODE "
19624 craig 1454
#		file(GLOB_RECURSE QTPLUGINS
1455
#		  \"\${CMAKE_INSTALL_PREFIX}/${LIBDIR}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
1456
#		include(BundleUtilities)
1457
#		fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
1458
#		" COMPONENT Runtime)
1459
 
1460
 
21543 craig 1461
else()
1462
	if(WIN32)
1463
		install(TARGETS ${EXE_NAME}
19821 craig 1464
			RUNTIME DESTINATION .
1465
			LIBRARY DESTINATION ${LIB_DIR_NAME}
19079 craig 1466
		)
21543 craig 1467
	else()
1468
		install(TARGETS ${EXE_NAME}
19821 craig 1469
			RUNTIME DESTINATION bin
1470
			LIBRARY DESTINATION ${LIB_DIR_NAME}
19079 craig 1471
		)
21543 craig 1472
	endif()
1473
endif()
5758 cbradney 1474
 
13794 cbradney 1475
#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
21543 craig 1476
if(WANT_HEADERINSTALL)
1477
	message(STATUS "Source header files will be installed")
1478
	install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR}
19821 craig 1479
		FILES_MATCHING
1480
		PATTERN "*.h"
1481
		PATTERN "dicts" EXCLUDE
1482
		PATTERN "doc" EXCLUDE
1483
		PATTERN "dtd" EXCLUDE
1484
		PATTERN "editorconfig" EXCLUDE
1485
		PATTERN "icon*" EXCLUDE
1486
		PATTERN "manpages" EXCLUDE
1487
		PATTERN "old" EXCLUDE
1488
		PATTERN ".svn" EXCLUDE
19079 craig 1489
	)
21543 craig 1490
else()
1491
	message(STATUS "No source header files will be installed")
1492
endif()
19956 craig 1493
 
1494
#Install our stylesheet
21543 craig 1495
install(FILES
19956 craig 1496
	scribus.css
1497
	DESTINATION ${LIBDIR}
1498
)