Subversion Repositories Scribus

Rev

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