Subversion Repositories Scribus

Rev

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