Subversion Repositories Scribus

Rev

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

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