Subversion Repositories Scribus

Rev

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

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