Subversion Repositories Scribus

Rev

Rev 15126 | Rev 15165 | 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)
2
  ADD_DEFINITIONS(-DQT_DLL)
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)
6830 subik 12
ADD_SUBDIRECTORY(unicodemap)
8908 subik 13
IF (WANT_DESIGNER)
14
  ADD_SUBDIRECTORY(designer)
15
ENDIF (WANT_DESIGNER)
14930 fschmid 16
ADD_SUBDIRECTORY(third_party)
5142 cbradney 17
 
13839 fschmid 18
 
19
IF(HAVE_OSG)
20
  SET(SCRIBUS_OSG_UI_SRC
21
  ui/osgeditor.ui
22
  )
23
  SET(SCRIBUS_OSG_CLASS
24
  ui/AdapterWidget.h
25
  ui/osgeditor.h
26
  pageitem_osgframe.h
27
  )
28
  SET(SCRIBUS_OSG_SRC
29
  ui/AdapterWidget.cpp
30
  ui/osgeditor.cpp
31
  pageitem_osgframe.cpp
32
  )
33
ENDIF (HAVE_OSG)
13962 herm 34
 
35
IF (GMAGICK_FOUND)
36
    SET(SCRIBUS_GMAGICK_SRC scimgdataloader_gmagick.cpp)
37
ELSE(GMAGICK_FOUND)
38
    SET(SCRIBUS_GMAGICK_SRC)
39
ENDIF(GMAGICK_FOUND)
40
 
13808 pierre 41
# We setup something like a group to gather setter related stuff
42
# because it could expand into a huge amount of file at some point.
43
SET(SCRIBUS_ITEMSETTERS_UI_SRC
44
ui/positionsetter.ui
45
ui/rotationsetter.ui
46
)
47
SET(SCRIBUS_ITEMSETTERS_CLASS
14509 cbradney 48
	openpalettemanager.h
49
	openpalettemodel.h
50
	pageitemsettersmanager.h
51
	ui/openpalette.h
52
	ui/openpaletteview.h
53
	ui/pageitempositionsetter.h
54
	ui/pageitemrotationsetter.h
13808 pierre 55
)
56
SET(SCRIBUS_ITEMSETTERS_SRC
14509 cbradney 57
	openpalettemanager.cpp
58
	openpalettemodel.cpp
59
	pageitemsettersmanager.cpp
60
	ui/openpalette.cpp
61
	ui/openpaletteview.cpp
62
	ui/pageitemsetterbase.cpp
63
	ui/pageitempositionsetter.cpp
64
	ui/pageitemrotationsetter.cpp
13808 pierre 65
)
66
 
5142 cbradney 67
SET(SCRIBUS_UI_SRC
13544 cbradney 68
  ui/aboutplugins.ui
69
  ui/aligndistribute.ui
70
  ui/charselect.ui
71
  ui/charselectenhanced.ui
72
  ui/cmsprefsbase.ui
14126 fschmid 73
  ui/colorpalette.ui
13544 cbradney 74
  ui/docitemattrprefs.ui
75
  ui/docsections.ui
14150 fschmid 76
  ui/gradientaddedit.ui
14126 fschmid 77
  ui/gradienteditor.ui
14150 fschmid 78
  ui/gradientmanager.ui
14952 fschmid 79
  ui/gradientvectorbase.ui
13544 cbradney 80
  ui/gtfiledialog.ui
81
  ui/guidemanager.ui
82
  ui/hysettingsBase.ui
83
  ui/insertaframe.ui
84
  ui/latexeditor.ui
13761 cbradney 85
  ui/newmarginwidgetbase.ui
13544 cbradney 86
  ui/measurementsbase.ui
87
  ui/multipleduplicate.ui
88
  ui/multiprogressdialog.ui
89
  ui/nftdialog.ui
90
  ui/nftwidget.ui
91
  ui/pageitemattributes.ui
92
  ui/patterndialog.ui
93
  ui/picsearch.ui
94
  ui/picsearchoptions.ui
95
  ui/picstatus.ui
96
  ui/pluginmanagerprefsgui.ui
97
  ui/polygonwidgetbase.ui
13761 cbradney 98
  ui/preferencesdialogbase.ui
99
  ui/prefs_colormanagementbase.ui
100
  ui/prefs_displaybase.ui
15015 cbradney 101
  ui/prefs_documentinformationbase.ui
102
  ui/prefs_documentsectionsbase.ui
13761 cbradney 103
  ui/prefs_documentsetupbase.ui
104
  ui/prefs_externaltoolsbase.ui
105
  ui/prefs_fontsbase.ui
106
  ui/prefs_guidesbase.ui
107
  ui/prefs_hyphenatorbase.ui
14539 jghali 108
  ui/prefs_imagecachebase.ui
13761 cbradney 109
  ui/prefs_keyboardshortcutsbase.ui
110
  ui/prefs_miscellaneousbase.ui
111
  ui/prefs_pathsbase.ui
15105 cbradney 112
  ui/prefs_pagesizesbase.ui
13761 cbradney 113
  ui/prefs_pluginsbase.ui
14548 cbradney 114
  ui/prefs_preflightverifierbase.ui
13761 cbradney 115
  ui/prefs_printerbase.ui
116
  ui/prefs_scrapbookbase.ui
117
  ui/prefs_typographybase.ui
118
  ui/prefs_userinterfacebase.ui
119
  ui/prefs_itemtoolsbase.ui
120
  ui/prefs_operatortoolsbase.ui
121
  ui/prefs_pdfexportbase.ui
122
  ui/prefs_tableofcontentsbase.ui
123
  ui/prefs_documentitemattributesbase.ui
13544 cbradney 124
  ui/printdialogbase.ui
125
  ui/replacecolors.ui
126
  ui/replaceonecolor.ui
127
  ui/selectobjects.ui
128
  ui/shortcutwidget.ui
129
  ui/smcstylewidget.ui
130
  ui/smlinestylewidget.ui
131
  ui/smpstylewidget.ui
132
  ui/smreplacedia.ui
133
  ui/smstyleimport.ui
134
  ui/stylemanager.ui
135
  ui/tabdisplay.ui
136
  ui/tabexternaltoolswidget.ui
137
  ui/tabgeneral.ui
138
  ui/tabkeyboardshortcutswidget.ui
139
  ui/tabmiscellaneous.ui
140
  ui/tabprinter.ui
141
  ui/tabscrapbook.ui
142
  ui/tocindexprefs.ui
14300 fschmid 143
  ui/transparencypalette.ui
10862 cbradney 144
  ui/copypagetomasterpage.ui
145
  ui/createrange.ui
146
  ui/helpbrowser.ui
13530 pierre 147
  ui/helpbrowsernavigation.ui
13544 cbradney 148
  ui/unicodesearch.ui
149
  ui/useprintermarginsdialog.ui
13808 pierre 150
  ${SCRIBUS_ITEMSETTERS_UI_SRC}
13839 fschmid 151
  ${SCRIBUS_OSG_UI_SRC}
5142 cbradney 152
)
153
 
154
SET(SCRIBUS_MOC_CLASSES
13552 cbradney 155
  ui/about.h
13544 cbradney 156
  ui/aboutplugins.h
9681 cbradney 157
  actionmanager.h
13544 cbradney 158
  ui/adjustcmsdialog.h
159
  ui/aligndistribute.h
13650 cbradney 160
  ui/alignselect.h
161
  ui/annot.h
162
  ui/annota.h
13552 cbradney 163
  ui/applytemplatedialog.h
13576 cbradney 164
  ui/arrowchooser.h
13650 cbradney 165
  ui/autoform.h
166
  ui/autoformbuttongroup.h
13576 cbradney 167
  ui/basepointwidget.h
13551 cbradney 168
  ui/bookmarkpalette.h
13576 cbradney 169
  ui/bookmwin.h
13650 cbradney 170
  ui/buttonicon.h
10532 avox 171
  canvas.h
12581 pierre 172
  canvasgesture_rulermove.h
13034 pierre 173
  canvasmode.h
12775 jghali 174
  canvasmode_edit.h
12765 jghali 175
  canvasmode_legacy.h
11190 avox 176
  canvasmode_measurements.h
12765 jghali 177
  canvasmode_normal.h
13544 cbradney 178
  ui/charselect.h
179
  ui/charselectenhanced.h
10113 subik 180
  chartablemodel.h
181
  chartableview.h
13650 cbradney 182
  ui/charzoom.h
183
  ui/checkDocument.h
13544 cbradney 184
  ui/cmsprefs.h
13650 cbradney 185
  ui/cmykfw.h
9681 cbradney 186
  collect4output.h
14798 cbradney 187
  ui/collectforoutput_ui.h
9681 cbradney 188
  colorblind.h
13650 cbradney 189
  ui/colorchart.h
190
  ui/colorcombo.h
191
  ui/colorlistbox.h
192
  ui/colorm.h
9681 cbradney 193
  commonstrings.h
13576 cbradney 194
  ui/contextmenu.h
13551 cbradney 195
  ui/cpalette.h
13650 cbradney 196
  ui/cupsoptions.h
13576 cbradney 197
  ui/curvewidget.h
13552 cbradney 198
  ui/customfdialog.h
13650 cbradney 199
  ui/dasheditor.h
200
  ui/dcolor.h
9681 cbradney 201
  deferredtask.h
13650 cbradney 202
  ui/delpages.h
9681 cbradney 203
  docinfo.h
13544 cbradney 204
  ui/docitemattrprefs.h
205
  ui/docsections.h
13650 cbradney 206
  ui/editor.h
13552 cbradney 207
  ui/effectsdialog.h
13650 cbradney 208
  ui/extimageprops.h
9681 cbradney 209
  fileloader.h
210
  filesearch.h
211
  filewatcher.h
13650 cbradney 212
  ui/fontcombo.h
11234 subik 213
  fontlistmodel.h
13650 cbradney 214
  ui/fontlistview.h
215
  ui/fontprefs.h
13552 cbradney 216
  ui/fontreplacedialog.h
14150 fschmid 217
  ui/gradientaddedit.h
13650 cbradney 218
  ui/gradienteditor.h
14150 fschmid 219
  ui/gradientmanager.h
14300 fschmid 220
  ui/gradientvectordialog.h
14126 fschmid 221
  ui/gradientpreview.h
13552 cbradney 222
  ui/gtdialogs.h
13544 cbradney 223
  ui/gtfiledialog.h
224
  ui/guidemanager.h
10205 subik 225
  guidesdelegate.h
226
  guidesmodel.h
13583 subik 227
  guidesview.h
13576 cbradney 228
  ui/helpbrowser.h
229
  ui/hruler.h
13650 cbradney 230
  ui/hyask.h
9681 cbradney 231
  hyphenator.h
13544 cbradney 232
  ui/hysettings.h
13552 cbradney 233
  ui/imageinfodialog.h
13650 cbradney 234
  ui/insertTable.h
13544 cbradney 235
  ui/insertaframe.h
13650 cbradney 236
  ui/inspage.h
237
  ui/javadocs.h
13544 cbradney 238
  ui/latexeditor.h
11504 mrdocs 239
  latexhelpers.h
13576 cbradney 240
  ui/layers.h
9681 cbradney 241
  loadsaveplugin.h
13650 cbradney 242
  ui/loremipsum.h
14229 cbradney 243
  ui/margindialog.h
14222 fschmid 244
  ui/marginpresetlayout.h
13650 cbradney 245
  ui/marginwidget.h
13761 cbradney 246
  ui/newmarginwidget.h
13551 cbradney 247
  ui/masterpagepalette.h
13544 cbradney 248
  ui/measurements.h
9681 cbradney 249
  menumanager.h
13650 cbradney 250
  ui/mergedoc.h
251
  ui/missing.h
252
  ui/movepage.h
13544 cbradney 253
  ui/multipleduplicate.h
254
  ui/multiprogressdialog.h
9681 cbradney 255
  navigator.h
13650 cbradney 256
  ui/newfile.h
257
  ui/newtemp.h
13544 cbradney 258
  ui/nftdialog.h
259
  ui/nftwidget.h
13551 cbradney 260
  ui/nodeeditpalette.h
10532 avox 261
  observable.h
13650 cbradney 262
  ui/oneclick.h
13551 cbradney 263
  ui/outlinepalette.h
9681 cbradney 264
  pageitem.h
265
  pageitem_imageframe.h
10862 cbradney 266
  pageitem_latexframe.h
9681 cbradney 267
  pageitem_line.h
268
  pageitem_pathtext.h
269
  pageitem_polygon.h
270
  pageitem_polyline.h
15060 fschmid 271
  pageitem_symbol.h
9681 cbradney 272
  pageitem_textframe.h
13544 cbradney 273
  ui/pageitemattributes.h
12850 pierre 274
  pageitempointer.h
13650 cbradney 275
  ui/pagelayout.h
13551 cbradney 276
  ui/pagepalette.h
13576 cbradney 277
  ui/pageselector.h
13544 cbradney 278
  ui/patterndialog.h
14308 fschmid 279
  ui/patternpropsdialog.h
14043 jghali 280
  pdf_analyzer.h
9681 cbradney 281
  pdflib.h
10054 craig 282
  pdflib_core.h
13650 cbradney 283
  ui/pdfopts.h
13544 cbradney 284
  ui/picsearch.h
285
  ui/picsearchoptions.h
286
  ui/picstatus.h
9681 cbradney 287
  pluginmanager.h
13544 cbradney 288
  ui/pluginmanagerprefsgui.h
289
  ui/polygonwidget.h
13650 cbradney 290
  ui/polyprops.h
13576 cbradney 291
  ui/prefs.h
13552 cbradney 292
  ui/prefsdialogbase.h
13761 cbradney 293
  ui/preferencesdialog.h
294
  ui/prefs_colormanagement.h
295
  ui/prefs_display.h
15015 cbradney 296
  ui/prefs_documentinformation.h
297
  ui/prefs_documentsections.h
13761 cbradney 298
  ui/prefs_documentsetup.h
299
  ui/prefs_externaltools.h
300
  ui/prefs_fonts.h
301
  ui/prefs_guides.h
302
  ui/prefs_hyphenator.h
14539 jghali 303
  ui/prefs_imagecache.h
13761 cbradney 304
  ui/prefs_keyboardshortcuts.h
305
  ui/prefs_miscellaneous.h
15105 cbradney 306
  ui/prefs_pagesizes.h
13761 cbradney 307
  ui/prefs_paths.h
14046 cbradney 308
  ui/prefs_pane.h
13761 cbradney 309
  ui/prefs_plugins.h
14548 cbradney 310
  ui/prefs_preflightverifier.h
13761 cbradney 311
  ui/prefs_printer.h
312
  ui/prefs_scrapbook.h
313
  ui/prefs_typography.h
314
  ui/prefs_userinterface.h
315
  ui/prefs_itemtools.h
316
  ui/prefs_operatortools.h
317
  ui/prefs_pdfexport.h
318
  ui/prefs_tableofcontents.h
319
  ui/prefs_documentitemattributes.h
9681 cbradney 320
  prefsmanager.h
13650 cbradney 321
  ui/prefspanel.h
322
  ui/preview.h
13544 cbradney 323
  ui/printdialog.h
13551 cbradney 324
  ui/propertiespalette.h
9681 cbradney 325
  pslib.h
13650 cbradney 326
  ui/query.h
13576 cbradney 327
  ui/reformdoc.h
13544 cbradney 328
  ui/replacecolors.h
329
  ui/replaceonecolor.h
13650 cbradney 330
  ui/rulermover.h
9681 cbradney 331
  sampleitem.h
13650 cbradney 332
  ui/scfilewidget.h
10862 cbradney 333
  scgtplugin.h
334
  schelptreemodel.h
14539 jghali 335
  scimagecachedir.h
336
  scimagecachefile.h
337
  scimagecachemanager.h
13552 cbradney 338
  ui/scinputdialog.h
13576 cbradney 339
  ui/scmenu.h
340
  ui/scmessagebox.h
9681 cbradney 341
  scplugin.h
10967 jghali 342
  scprintengine.h
9681 cbradney 343
  scraction.h
13551 cbradney 344
  ui/scrapbookpalette.h
9681 cbradney 345
  scribus.h
346
  scribusapp.h
347
  scribuscore.h
348
  scribusdoc.h
349
  scribusview.h
350
  scribuswin.h
14509 cbradney 351
  ui/scmwmenumanager.h
13551 cbradney 352
  ui/scrpalettebase.h
13650 cbradney 353
  ui/scrspinbox.h
354
  ui/sctablewidget.h
13576 cbradney 355
  ui/sctextbrowser.h
356
  ui/sctoolbar.h
13650 cbradney 357
  ui/sctreewidget.h
358
  ui/search.h
9681 cbradney 359
  selection.h
13544 cbradney 360
  ui/selectobjects.h
13650 cbradney 361
  ui/selfield.h
362
  ui/shadebutton.h
13544 cbradney 363
  ui/shortcutwidget.h
364
  ui/smalignselect.h
365
  ui/smcheckbox.h
366
  ui/smcolorcombo.h
367
  ui/smcstylewidget.h
368
  ui/smfontcomboh.h
369
  ui/smlinestyle.h
370
  ui/smlinestylewidget.h
371
  ui/smpstylewidget.h
372
  ui/smreplacedia.h
373
  ui/smsccombobox.h
374
  ui/smscrspinbox.h
375
  ui/smshadebutton.h
376
  ui/smspinbox.h
377
  ui/smstyleimport.h
378
  ui/smstyleselect.h
379
  ui/smtabruler.h
380
  ui/smtextstyles.h
13551 cbradney 381
  ui/spalette.h
13576 cbradney 382
  ui/storyeditor.h
9681 cbradney 383
  styleitem.h
13544 cbradney 384
  ui/stylemanager.h
13650 cbradney 385
  ui/styleselect.h
386
  ui/styleview.h
15060 fschmid 387
  ui/symbolpalette.h
13544 cbradney 388
  ui/tabcheckdoc.h
389
  ui/tabdisplay.h
390
  ui/tabdocument.h
391
  ui/tabexternaltoolswidget.h
392
  ui/tabgeneral.h
393
  ui/tabguides.h
394
  ui/tabkeyboardshortcutswidget.h
395
  ui/tabmanager.h
396
  ui/tabmiscellaneous.h
397
  ui/tabpdfoptions.h
398
  ui/tabprinter.h
399
  ui/tabruler.h
400
  ui/tabscrapbook.h
401
  ui/tabtools.h
402
  ui/tabtypography.h
9681 cbradney 403
  tocgenerator.h
13544 cbradney 404
  ui/tocindexprefs.h
14300 fschmid 405
  ui/transparencypalette.h
10066 cbradney 406
  tt/simpletreemodel/treemodel.h
10862 cbradney 407
  ui/copypagetomasterpagedialog.h
408
  ui/createrange.h
10976 cbradney 409
  ui/edittoolbar.h
410
  ui/filetoolbar.h
411
  ui/modetoolbar.h
412
  ui/pdftoolbar.h
9681 cbradney 413
  undogui.h
414
  undomanager.h
13544 cbradney 415
  ui/unicodesearch.h
9681 cbradney 416
  upgradechecker.h
10311 cbradney 417
  urllauncher.h
13544 cbradney 418
  ui/useprintermarginsdialog.h
13576 cbradney 419
  ui/vruler.h
13808 pierre 420
  ${SCRIBUS_ITEMSETTERS_CLASS}
13839 fschmid 421
  ${SCRIBUS_OSG_CLASS}
5142 cbradney 422
)
423
 
424
SET(SCRIBUS_SOURCES
13552 cbradney 425
  ui/about.cpp
13544 cbradney 426
  ui/aboutplugins.cpp
9681 cbradney 427
  actionmanager.cpp
13544 cbradney 428
  ui/adjustcmsdialog.cpp
429
  ui/aligndistribute.cpp
13650 cbradney 430
  ui/alignselect.cpp
431
  ui/annot.cpp
432
  ui/annota.cpp
9681 cbradney 433
  annotation.cpp
13552 cbradney 434
  ui/applytemplatedialog.cpp
13576 cbradney 435
  ui/arrowchooser.cpp
13650 cbradney 436
  ui/autoform.cpp
437
  ui/autoformbuttongroup.cpp
13576 cbradney 438
  ui/basepointwidget.cpp
13551 cbradney 439
  ui/bookmarkpalette.cpp
13576 cbradney 440
  ui/bookmwin.cpp
13650 cbradney 441
  ui/buttonicon.cpp
10532 avox 442
  canvas.cpp
11339 avox 443
  canvasgesture_linemove.cpp
13184 jghali 444
  canvasgesture_pan.cpp
10701 avox 445
  canvasgesture_rectselect.cpp
10869 avox 446
  canvasgesture_resize.cpp
447
  canvasgesture_rulermove.cpp
10532 avox 448
  canvasmode.cpp
12844 jghali 449
  canvasmode_copyproperties.cpp
10978 avox 450
  canvasmode_create.cpp
451
  canvasmode_drawbezier.cpp
452
  canvasmode_drawfreehand.cpp
13229 jghali 453
  canvasmode_eyedropper.cpp
12825 jghali 454
  canvasmode_framelinks.cpp
12775 jghali 455
  canvasmode_edit.cpp
12770 jghali 456
  canvasmode_editgradient.cpp
15024 fschmid 457
  canvasmode_editmeshgradient.cpp
10532 avox 458
  canvasmode_legacy.cpp
12825 jghali 459
  canvasmode_magnifier.cpp
11190 avox 460
  canvasmode_measurements.cpp
10532 avox 461
  canvasmode_nodeedit.cpp
12765 jghali 462
  canvasmode_normal.cpp
12971 jghali 463
  canvasmode_objimport.cpp
13184 jghali 464
  canvasmode_panning.cpp
12633 jghali 465
  canvasmode_rotate.cpp
13544 cbradney 466
  ui/charselect.cpp
467
  ui/charselectenhanced.cpp
10113 subik 468
  chartablemodel.cpp
469
  chartableview.cpp
13650 cbradney 470
  ui/charzoom.cpp
471
  ui/checkDocument.cpp
9681 cbradney 472
  cmserrorhandling.cpp
10862 cbradney 473
  cmsettings.cpp
13544 cbradney 474
  ui/cmsprefs.cpp
13650 cbradney 475
  ui/cmykfw.cpp
9681 cbradney 476
  collect4output.cpp
14798 cbradney 477
  ui/collectforoutput_ui.cpp
9681 cbradney 478
  colorblind.cpp
13650 cbradney 479
  ui/colorchart.cpp
480
  ui/colorcombo.cpp
481
  ui/colorlistbox.cpp
482
  ui/colorm.cpp
9681 cbradney 483
  colorsetmanager.cpp
484
  commonstrings.cpp
13576 cbradney 485
  ui/contextmenu.cpp
13551 cbradney 486
  ui/cpalette.cpp
13650 cbradney 487
  ui/cupsoptions.cpp
13576 cbradney 488
  ui/curvewidget.cpp
13552 cbradney 489
  ui/customfdialog.cpp
13650 cbradney 490
  ui/dasheditor.cpp
491
  ui/dcolor.cpp
9681 cbradney 492
  deferredtask.cpp
13650 cbradney 493
  ui/delpages.cpp
9681 cbradney 494
  docinfo.cpp
13544 cbradney 495
  ui/docitemattrprefs.cpp
496
  ui/docsections.cpp
9681 cbradney 497
  documentchecker.cpp
498
  documentinformation.cpp
13650 cbradney 499
  ui/editor.cpp
13552 cbradney 500
  ui/effectsdialog.cpp
9681 cbradney 501
  exif.cpp
13650 cbradney 502
  ui/extimageprops.cpp
9681 cbradney 503
  fileloader.cpp
504
  filesearch.cpp
505
  fileunzip.cpp
506
  filewatcher.cpp
13650 cbradney 507
  ui/fontcombo.cpp
11234 subik 508
  fontlistmodel.cpp
13650 cbradney 509
  ui/fontlistview.cpp
510
  ui/fontprefs.cpp
13552 cbradney 511
  ui/fontreplacedialog.cpp
9681 cbradney 512
  fparser.cpp
10862 cbradney 513
  fpoint.cpp
9681 cbradney 514
  fpointarray.cpp
515
  fpoptimizer.cpp
14150 fschmid 516
  ui/gradientaddedit.cpp
13650 cbradney 517
  ui/gradienteditor.cpp
14150 fschmid 518
  ui/gradientmanager.cpp
14300 fschmid 519
  ui/gradientvectordialog.cpp
14126 fschmid 520
  ui/gradientpreview.cpp
9681 cbradney 521
  gtaction.cpp
13552 cbradney 522
  ui/gtdialogs.cpp
13544 cbradney 523
  ui/gtfiledialog.cpp
9681 cbradney 524
  gtfont.cpp
525
  gtframestyle.cpp
526
  gtgettext.cpp
527
  gtmeasure.cpp
528
  gtparagraphstyle.cpp
529
  gtstyle.cpp
530
  gtwriter.cpp
13544 cbradney 531
  ui/guidemanager.cpp
10862 cbradney 532
  guidemanagercore.cpp
10205 subik 533
  guidesdelegate.cpp
534
  guidesmodel.cpp
13583 subik 535
  guidesview.cpp
13576 cbradney 536
  ui/helpbrowser.cpp
9681 cbradney 537
  hnjalloc.c
13576 cbradney 538
  ui/hruler.cpp
13650 cbradney 539
  ui/hyask.cpp
9681 cbradney 540
  hyphen.c
541
  hyphenator.cpp
13544 cbradney 542
  ui/hysettings.cpp
13552 cbradney 543
  ui/imageinfodialog.cpp
13650 cbradney 544
  ui/insertTable.cpp
13544 cbradney 545
  ui/insertaframe.cpp
13650 cbradney 546
  ui/inspage.cpp
9681 cbradney 547
  ioapi.c
13650 cbradney 548
  ui/javadocs.cpp
11041 fschmid 549
  KarbonCurveFit.cpp
9681 cbradney 550
  langmgr.cpp
13544 cbradney 551
  ui/latexeditor.cpp
11504 mrdocs 552
  latexhelpers.cpp
13576 cbradney 553
  ui/layers.cpp
13650 cbradney 554
  ui/linecombo.cpp
555
  ui/linkbutton.cpp
9681 cbradney 556
  loadsaveplugin.cpp
13650 cbradney 557
  ui/loremipsum.cpp
14229 cbradney 558
  ui/margindialog.cpp
14222 fschmid 559
  ui/marginpresetlayout.cpp
13650 cbradney 560
  ui/marginwidget.cpp
13761 cbradney 561
  ui/newmarginwidget.cpp
13551 cbradney 562
  ui/masterpagepalette.cpp
13544 cbradney 563
  ui/measurements.cpp
9681 cbradney 564
  menumanager.cpp
13650 cbradney 565
  ui/mergedoc.cpp
15024 fschmid 566
  mesh.cpp
13650 cbradney 567
  ui/missing.cpp
568
  ui/movepage.cpp
13544 cbradney 569
  ui/multipleduplicate.cpp
570
  ui/multiprogressdialog.cpp
9681 cbradney 571
  navigator.cpp
13650 cbradney 572
  ui/newfile.cpp
573
  ui/newtemp.cpp
13544 cbradney 574
  ui/nftdialog.cpp
575
  ui/nftwidget.cpp
13192 fschmid 576
  nftrcreader.cpp
577
  nftsettings.cpp
578
  nfttemplate.cpp
13551 cbradney 579
  ui/nodeeditpalette.cpp
10532 avox 580
  observable.cpp
13650 cbradney 581
  ui/oneclick.cpp
13551 cbradney 582
  ui/outlinepalette.cpp
9681 cbradney 583
  page.cpp
584
  pageitem.cpp
585
  pageitem_desaxe.cpp
586
  pageitem_imageframe.cpp
10862 cbradney 587
  pageitem_latexframe.cpp
9681 cbradney 588
  pageitem_line.cpp
589
  pageitem_pathtext.cpp
590
  pageitem_polygon.cpp
591
  pageitem_polyline.cpp
15060 fschmid 592
  pageitem_symbol.cpp
9681 cbradney 593
  pageitem_textframe.cpp
13544 cbradney 594
  ui/pageitemattributes.cpp
12850 pierre 595
  pageitempointer.cpp
13650 cbradney 596
  ui/pagelayout.cpp
13551 cbradney 597
  ui/pagepalette.cpp
13576 cbradney 598
  ui/pageselector.cpp
9681 cbradney 599
  pagesize.cpp
13544 cbradney 600
  ui/patterndialog.cpp
14308 fschmid 601
  ui/patternpropsdialog.cpp
14043 jghali 602
  pdf_analyzer.cpp
9681 cbradney 603
  pdflib.cpp
10054 craig 604
  pdflib_core.cpp
9681 cbradney 605
  pdfoptions.cpp
606
  pdfoptionsio.cpp
13650 cbradney 607
  ui/pdfopts.cpp
13544 cbradney 608
  ui/picsearch.cpp
609
  ui/picsearchoptions.cpp
610
  ui/picstatus.cpp
9681 cbradney 611
  pluginmanager.cpp
13544 cbradney 612
  ui/pluginmanagerprefsgui.cpp
613
  ui/polygonwidget.cpp
13650 cbradney 614
  ui/polyprops.cpp
13576 cbradney 615
  ui/prefs.cpp
9681 cbradney 616
  prefscontext.cpp
13761 cbradney 617
  ui/preferencesdialog.cpp
618
  ui/prefs_colormanagement.cpp
619
  ui/prefs_display.cpp
15015 cbradney 620
  ui/prefs_documentinformation.cpp
621
  ui/prefs_documentsections.cpp
13761 cbradney 622
  ui/prefs_documentsetup.cpp
623
  ui/prefs_externaltools.cpp
624
  ui/prefs_fonts.cpp
625
  ui/prefs_guides.cpp
626
  ui/prefs_hyphenator.cpp
14539 jghali 627
  ui/prefs_imagecache.cpp
13761 cbradney 628
  ui/prefs_keyboardshortcuts.cpp
629
  ui/prefs_miscellaneous.cpp
15105 cbradney 630
  ui/prefs_pagesizes.cpp
13761 cbradney 631
  ui/prefs_paths.cpp
632
  ui/prefs_plugins.cpp
14548 cbradney 633
  ui/prefs_preflightverifier.cpp
13761 cbradney 634
  ui/prefs_printer.cpp
635
  ui/prefs_scrapbook.cpp
636
  ui/prefs_typography.cpp
637
  ui/prefs_userinterface.cpp
638
  ui/prefs_itemtools.cpp
639
  ui/prefs_operatortools.cpp
640
  ui/prefs_pdfexport.cpp
641
  ui/prefs_tableofcontents.cpp
642
  ui/prefs_documentitemattributes.cpp
13552 cbradney 643
  ui/prefsdialogbase.cpp
9681 cbradney 644
  prefsfile.cpp
10862 cbradney 645
  prefsmanager.cpp
13650 cbradney 646
  ui/prefspanel.cpp
9681 cbradney 647
  prefsreader.cpp
648
  prefstable.cpp
13650 cbradney 649
  ui/preview.cpp
13544 cbradney 650
  ui/printdialog.cpp
13551 cbradney 651
  ui/propertiespalette.cpp
9681 cbradney 652
  pslib.cpp
13650 cbradney 653
  ui/query.cpp
9681 cbradney 654
  rawimage.cpp
655
  rc4.c
13576 cbradney 656
  ui/reformdoc.cpp
13544 cbradney 657
  ui/replacecolors.cpp
658
  ui/replaceonecolor.cpp
13650 cbradney 659
  ui/rulermover.cpp
9681 cbradney 660
  sampleitem.cpp
13453 pierre 661
  scclocale.cpp
9681 cbradney 662
  sccolor.cpp
663
  sccolorengine.cpp
664
  sccolorshade.cpp
13650 cbradney 665
  ui/sccombobox.cpp
10086 craig 666
  scdocoutput.cpp
667
  scdocoutput_ps2.cpp
13650 cbradney 668
  ui/scfilewidget.cpp
9681 cbradney 669
  scfonts.cpp
670
  scgtplugin.cpp
671
  scgzfile.cpp
10862 cbradney 672
  schelptreemodel.cpp
9681 cbradney 673
  scimage.cpp
14539 jghali 674
  scimagecacheproxy.cpp
675
  scimagecachedir.cpp
676
  scimagecachefile.cpp
677
  scimagecachemanager.cpp
678
  scimagecachewriteaction.cpp
9681 cbradney 679
  scimagestructs.cpp
680
  scimgdataloader.cpp
681
  scimgdataloader_gimp.cpp
682
  scimgdataloader_jpeg.cpp
683
  scimgdataloader_pdf.cpp
14036 fschmid 684
  scimgdataloader_pict.cpp
9681 cbradney 685
  scimgdataloader_ps.cpp
686
  scimgdataloader_psd.cpp
687
  scimgdataloader_qt.cpp
688
  scimgdataloader_tiff.cpp
14087 fschmid 689
  scimgdataloader_wpg.cpp
13552 cbradney 690
  ui/scinputdialog.cpp
10140 jghali 691
  sclayer.cpp
14539 jghali 692
  sclockedfile.cpp
13576 cbradney 693
  ui/scmenu.cpp
694
  ui/scmessagebox.cpp
12841 jghali 695
  scmimedata.cpp
10086 craig 696
  scpageoutput.cpp
697
  scpageoutput_ps2.cpp
9681 cbradney 698
  scpainter.cpp
10862 cbradney 699
  scpainterex_ps2.cpp
10086 craig 700
  scpainterexbase.cpp
9681 cbradney 701
  scpaths.cpp
702
  scpattern.cpp
703
  scplugin.cpp
704
  scpreview.cpp
10967 jghali 705
  scprintengine_ps.cpp
9681 cbradney 706
  scraction.cpp
13551 cbradney 707
  ui/scrapbookpalette.cpp
13650 cbradney 708
  ui/scresizecursor.cpp
9681 cbradney 709
  scribus.cpp
10862 cbradney 710
  scribusXml.cpp
9681 cbradney 711
  scribusapp.cpp
712
  scribuscore.cpp
713
  scribusdoc.cpp
714
  scribusview.cpp
715
  scribuswin.cpp
14509 cbradney 716
  ui/scmwmenumanager.cpp
13551 cbradney 717
  ui/scrpalettebase.cpp
13650 cbradney 718
  ui/scrspinbox.cpp
11731 jghali 719
  scslainforeader.cpp
11551 jghali 720
  scstreamfilter.cpp
721
  scstreamfilter_ascii85.cpp
722
  scstreamfilter_flate.cpp
11591 jghali 723
  scstreamfilter_rc4.cpp
13650 cbradney 724
  ui/sctablewidget.cpp
13576 cbradney 725
  ui/sctextbrowser.cpp
13503 cbradney 726
  sctextstream.cpp
9681 cbradney 727
  sctextstruct.cpp
13576 cbradney 728
  ui/sctoolbar.cpp
13650 cbradney 729
  ui/sctreewidget.cpp
13654 jghali 730
  scxmlstreamreader.cpp
13650 cbradney 731
  ui/search.cpp
9681 cbradney 732
  selection.cpp
13544 cbradney 733
  ui/selectobjects.cpp
13650 cbradney 734
  ui/selfield.cpp
9681 cbradney 735
  serializer.cpp
13650 cbradney 736
  ui/shadebutton.cpp
13544 cbradney 737
  ui/shortcutwidget.cpp
738
  ui/smalignselect.cpp
739
  ui/smcheckbox.cpp
740
  ui/smcolorcombo.cpp
741
  ui/smcstylewidget.cpp
742
  ui/smfontcomboh.cpp
743
  ui/smlinestyle.cpp
744
  ui/smlinestylewidget.cpp
745
  ui/smpstylewidget.cpp
746
  ui/smradiobutton.cpp
747
  ui/smreplacedia.cpp
748
  ui/smsccombobox.cpp
749
  ui/smscrspinbox.cpp
750
  ui/smshadebutton.cpp
751
  ui/smspinbox.cpp
752
  ui/smstyleimport.cpp
753
  ui/smstyleselect.cpp
754
  ui/smtabruler.cpp
755
  ui/smtextstyles.cpp
13551 cbradney 756
  ui/spalette.cpp
757
  ui/splash.cpp
9681 cbradney 758
  stencilreader.cpp
13576 cbradney 759
  ui/storyeditor.cpp
9681 cbradney 760
  styleitem.cpp
13544 cbradney 761
  ui/stylemanager.cpp
13650 cbradney 762
  ui/styleselect.cpp
763
  ui/styleview.cpp
15060 fschmid 764
  ui/symbolpalette.cpp
13544 cbradney 765
  ui/tabcheckdoc.cpp
766
  ui/tabdisplay.cpp
767
  ui/tabdocument.cpp
768
  ui/tabexternaltoolswidget.cpp
769
  ui/tabgeneral.cpp
770
  ui/tabguides.cpp
771
  ui/tabkeyboardshortcutswidget.cpp
772
  ui/tabmanager.cpp
773
  ui/tabmiscellaneous.cpp
774
  ui/tabpdfoptions.cpp
775
  ui/tabprinter.cpp
776
  ui/tabruler.cpp
777
  ui/tabscrapbook.cpp
778
  ui/tabtools.cpp
779
  ui/tabtypography.cpp
14472 fschmid 780
  textwriter.cpp
9681 cbradney 781
  tocgenerator.cpp
13544 cbradney 782
  ui/tocindexprefs.cpp
11576 avox 783
  transaction.cpp
14300 fschmid 784
  ui/transparencypalette.cpp
10066 cbradney 785
  tt/simpletreemodel/treeitem.cpp
786
  tt/simpletreemodel/treemodel.cpp
10862 cbradney 787
  ui/copypagetomasterpagedialog.cpp
788
  ui/createrange.cpp
10976 cbradney 789
  ui/edittoolbar.cpp
790
  ui/filetoolbar.cpp
13530 pierre 791
  ui/helpnavigation.cpp
10976 cbradney 792
  ui/modetoolbar.cpp
793
  ui/pdftoolbar.cpp
9681 cbradney 794
  undogui.cpp
795
  undomanager.cpp
796
  undoobject.cpp
797
  undostack.cpp
798
  undostate.cpp
13544 cbradney 799
  ui/unicodesearch.cpp
9681 cbradney 800
  units.cpp
801
  unzip.c
10862 cbradney 802
  updatemanager.cpp
9681 cbradney 803
  upgradechecker.cpp
10311 cbradney 804
  urllauncher.cpp
13544 cbradney 805
  ui/useprintermarginsdialog.cpp
9681 cbradney 806
  util.cpp
10203 cbradney 807
  util_color.cpp
11605 jghali 808
  util_file.cpp
10212 cbradney 809
  util_formats.cpp
810
  util_ghostscript.cpp
10200 cbradney 811
  util_icon.cpp
13873 jghali 812
  util_layer.cpp
10203 cbradney 813
  util_math.cpp
10212 cbradney 814
  util_printer.cpp
12277 cbradney 815
  util_text.cpp
9681 cbradney 816
  vgradient.cpp
817
  vgradientex.cpp
13576 cbradney 818
  ui/vruler.cpp
13808 pierre 819
  ${SCRIBUS_ITEMSETTERS_SRC}
13839 fschmid 820
  ${SCRIBUS_OSG_SRC}
13962 herm 821
  ${SCRIBUS_GMAGICK_SRC}
5142 cbradney 822
)
823
 
10778 craig 824
IF(WIN32)
10967 jghali 825
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES scprintengine_gdi.h)
10778 craig 826
  SET(SCRIBUS_WIN32_ONLY_SOURCES
11882 jghali 827
      scpainterex_cairo.cpp
10967 jghali 828
      scprintengine_gdi.cpp
10778 craig 829
      )
830
  SET(SCRIBUS_MAIN_CPP main_win32.cpp)
831
ELSE(WIN32)
832
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES)
833
  SET(SCRIBUS_WIN32_ONLY_SOURCES)
834
  SET(SCRIBUS_MAIN_CPP main.cpp)
835
ENDIF(WIN32)
836
 
9681 cbradney 837
QT4_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
5142 cbradney 838
 
10778 craig 839
QT4_WRAP_CPP(SCRIBUS_MOC_SOURCES
840
	${SCRIBUS_MOC_CLASSES}
841
	${SCRIBUS_MOC_WIN32_ONLY_CLASSES}
842
	)
843
 
5142 cbradney 844
LINK_DIRECTORIES(
14491 jghali 845
  ${CMAKE_CURRENT_BINARY_DIR}/colormgmt
10783 craig 846
  ${CMAKE_CURRENT_BINARY_DIR}/desaxe
14170 jghali 847
  ${CMAKE_CURRENT_BINARY_DIR}/fonts
848
  ${CMAKE_CURRENT_BINARY_DIR}/styles
10783 craig 849
  ${CMAKE_CURRENT_BINARY_DIR}/text
14935 fschmid 850
  ${CMAKE_CURRENT_BINARY_DIR}/third_party/wpg
5142 cbradney 851
)
852
 
13839 fschmid 853
IF(HAVE_OSG)
14930 fschmid 854
  LINK_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/third_party/prc )
13839 fschmid 855
ENDIF (HAVE_OSG)
856
 
14937 fschmid 857
IF(HAVE_BOOST)
858
  LINK_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/third_party/lib2geom )
859
ENDIF (HAVE_BOOST)
860
 
14491 jghali 861
SET(SCRIBUS_COLORMGMT_LIB "scribus_colormgmt_lib")
5142 cbradney 862
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
6733 avox 863
SET(SCRIBUS_STYLES_LIB "scribus_styles_lib")
5980 avox 864
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
5691 avox 865
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
13839 fschmid 866
IF(HAVE_OSG)
867
  SET(SCRIBUS_PRC_LIB "scribus_prc_lib")
868
ENDIF (HAVE_OSG)
14937 fschmid 869
IF(HAVE_BOOST)
870
  SET(SCRIBUS_2GEOM_LIB "scribus_2geom_lib")
871
ENDIF (HAVE_BOOST)
14935 fschmid 872
SET(SCRIBUS_WPG_LIB "scribus_wpg_lib")
5142 cbradney 873
 
874
INCLUDE_DIRECTORIES(
9681 cbradney 875
  ${CMAKE_SOURCE_DIR}
876
  ${CMAKE_CURRENT_SOURCE_DIR}
12233 cbradney 877
  ${FREETYPE_INCLUDE_DIRS}
5142 cbradney 878
)
879
 
13962 herm 880
IF (GMAGICK_FOUND)
881
    MESSAGE(STATUS "GMAGICK: Libs: ${GMAGICK_LIBRARIES}, Inc: ${GMAGICK_INCLUDES}, Ldflags: ${GMAGICK_LDFLAGS}")
882
    INCLUDE_DIRECTORIES(
883
        BEFORE ${GMAGICK_INCLUDES}
884
    )
885
    LINK_DIRECTORIES(
886
        ${GMAGICK_LDFLAGS} #TODO
887
    )
888
ENDIF(GMAGICK_FOUND)
889
 
11956 avox 890
IF(HAVE_PODOFO)
891
  INCLUDE_DIRECTORIES(
892
    ${LIBPODOFO_INCLUDE_DIR}
893
    )
894
ENDIF(HAVE_PODOFO)
895
 
13034 pierre 896
IF(GESTURE_FRAME_PREVIEW)
897
   MESSAGE(STATUS "Enable gesture frame preview [experimental]")
898
   SET(GESTURE_FRAME_PREVIEW_SOURCES  pageitempreview.cpp)
899
   ADD_DEFINITIONS(-DGESTURE_FRAME_PREVIEW)
900
ENDIF(GESTURE_FRAME_PREVIEW)
11956 avox 901
 
9681 cbradney 902
IF(APPLEBUNDLE)
9487 cbradney 903
  SET(EXE_NAME "Scribus${TAG_VERSION}" CACHE TYPE STRING)
9681 cbradney 904
ELSE(APPLEBUNDLE)
9487 cbradney 905
  SET(EXE_NAME "scribus${TAG_VERSION}" CACHE TYPE STRING)
9681 cbradney 906
ENDIF(APPLEBUNDLE)
5142 cbradney 907
 
12373 malex 908
IF(COMMAND cmake_policy)
909
  cmake_policy(SET CMP0003 OLD)
910
ENDIF(COMMAND cmake_policy)
911
 
13839 fschmid 912
IF(HAVE_OSG)
5379 cbradney 913
ADD_EXECUTABLE(${EXE_NAME}
5157 cbradney 914
  ${SCRIBUS_MOC_SOURCES}
915
  ${SCRIBUS_SOURCES}
10778 craig 916
  ${SCRIBUS_MAIN_CPP}
8499 cbradney 917
  ${SCRIBUS_UI_SOURCES}
5157 cbradney 918
  ${SCRIBUS_TEXT_SOURCES}
6733 avox 919
  ${SCRIBUS_STYLES_SOURCES}
14491 jghali 920
  ${SCRIBUS_COLORMGMT_SOURCES}
5980 avox 921
  ${SCRIBUS_FONTS_SOURCES}
5691 avox 922
  ${SCRIBUS_DESAXE_SOURCES}
10778 craig 923
  ${SCRIBUS_WIN32_ONLY_SOURCES}
13034 pierre 924
  ${GESTURE_FRAME_PREVIEW_SOURCES}
13839 fschmid 925
  ${SCRIBUS_PRC_SOURCES}
5142 cbradney 926
)
13839 fschmid 927
ELSE(HAVE_OSG)
928
ADD_EXECUTABLE(${EXE_NAME}
929
  ${SCRIBUS_MOC_SOURCES}
930
  ${SCRIBUS_SOURCES}
931
  ${SCRIBUS_MAIN_CPP}
932
  ${SCRIBUS_UI_SOURCES}
933
  ${SCRIBUS_TEXT_SOURCES}
934
  ${SCRIBUS_STYLES_SOURCES}
14491 jghali 935
  ${SCRIBUS_COLORMGMT_SOURCES}
13839 fschmid 936
  ${SCRIBUS_FONTS_SOURCES}
937
  ${SCRIBUS_DESAXE_SOURCES}
938
  ${SCRIBUS_WIN32_ONLY_SOURCES}
939
  ${GESTURE_FRAME_PREVIEW_SOURCES}
940
)
941
ENDIF (HAVE_OSG)
5142 cbradney 942
 
10778 craig 943
IF(WIN32)
944
  SET_TARGET_PROPERTIES(${EXE_NAME}
945
	PROPERTIES
946
	COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
947
	ENABLE_EXPORTS TRUE
948
	)
11945 jghali 949
  SET(WIN32_ONLY_LIBS mscms.lib)
10778 craig 950
ELSE(WIN32)
951
  SET(WIN32_ONLY_LIBS)
952
ENDIF(WIN32)
953
 
12176 cbradney 954
##TEST FIX FOR 6897
955
IF (GCC AND NOT WIN32)
956
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
957
# binary are in the public symbol table for plugins. The symbols must also
958
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
959
# Should fix bug 6897 .
12179 cbradney 960
     SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
12176 cbradney 961
 ENDIF (GCC AND NOT WIN32)
962
##
963
 
964
 
8729 cbradney 965
#Set up libraries to link with all found packages
966
 
14993 fschmid 967
IF(WANT_PRIVATE_CAIRO)
14952 fschmid 968
	SET(SCRIBUS_CAIRO_LIB "scribus_cairo_lib")
15142 fschmid 969
	INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/third_party/cairo)
14952 fschmid 970
	LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/third_party/cairo)
971
	TARGET_LINK_LIBRARIES(${EXE_NAME} ${PIXMAN_LIBRARIES} ${SCRIBUS_CAIRO_LIB})
14993 fschmid 972
ELSE(WANT_PRIVATE_CAIRO)
14952 fschmid 973
	#Select Libart_LGPL or Cairo
974
	IF(RENDER_LIB STREQUAL "CAIRO")
975
		INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
976
		TARGET_LINK_LIBRARIES(${EXE_NAME} ${CAIRO_LIBRARIES})
977
		LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
978
		SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
979
	ENDIF(RENDER_LIB STREQUAL "CAIRO")
14993 fschmid 980
ENDIF(WANT_PRIVATE_CAIRO)
8729 cbradney 981
 
982
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
983
 
5758 cbradney 984
TARGET_LINK_LIBRARIES(${EXE_NAME}
9681 cbradney 985
  ${QT_LIBRARIES}
986
  ${CUPS_LIBRARIES}
987
  ${FREETYPE_LIBRARIES}
988
  ${FONTCONFIG_LIBRARIES}
989
  ${LCMS_LIBRARIES}
990
  ${LIBXML2_LIBRARIES}
991
  ${PYTHON_LIBRARIES}
992
  ${TIFF_LIBRARIES}
993
  ${JPEG_LIBRARIES}
994
  ${ZLIB_LIBRARIES}
10778 craig 995
  ${WIN32_ONLY_LIBS}
13957 herm 996
  ${GMAGICK_LIBRARIES}
8729 cbradney 997
)
998
 
999
IF(WIN32)
9681 cbradney 1000
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
8729 cbradney 1001
ENDIF(WIN32)
1002
 
1003
IF(APPLE)
1004
  TARGET_LINK_LIBRARIES(${EXE_NAME}
9681 cbradney 1005
    "-undefined dynamic_lookup"
8729 cbradney 1006
    "-framework CoreFoundation" )
1007
ENDIF(APPLE)
1008
 
1009
TARGET_LINK_LIBRARIES(${EXE_NAME}
14491 jghali 1010
  ${SCRIBUS_COLORMGMT_LIB}
9681 cbradney 1011
  ${SCRIBUS_DESAXE_LIB}
1012
  ${SCRIBUS_TEXT_LIB}
1013
  ${SCRIBUS_STYLES_LIB}
1014
  ${SCRIBUS_FONTS_LIB}
14935 fschmid 1015
  ${SCRIBUS_WPG_LIB}
8917 avox 1016
)
1017
 
11956 avox 1018
IF(HAVE_PODOFO)
1019
  TARGET_LINK_LIBRARIES(${EXE_NAME}
1020
    ${LIBPODOFO_LIBRARY}
1021
  )
1022
ENDIF(HAVE_PODOFO)
1023
 
13839 fschmid 1024
IF(HAVE_OSG)
1025
  TARGET_LINK_LIBRARIES(${EXE_NAME}
1026
    ${OSG_LIBRARY}
1027
    ${OSGGA_LIBRARY}
1028
    ${OSGUTIL_LIBRARY}
1029
    ${OSGDB_LIBRARY}
1030
    ${OSGVIEWER_LIBRARY}
1031
    ${OSGTEXT_LIBRARY}
1032
    ${SCRIBUS_PRC_LIB}
1033
  )
1034
ENDIF(HAVE_OSG)
1035
 
14937 fschmid 1036
IF (HAVE_BOOST)
1037
  TARGET_LINK_LIBRARIES(${EXE_NAME}
1038
    ${SCRIBUS_2GEOM_LIB}
1039
  )
1040
ENDIF(HAVE_BOOST)
1041
 
10778 craig 1042
# Now build plugins
1043
SET(PLUGIN_LIBRARIES)
1044
IF(WIN32)
10800 craig 1045
  # IF your plugin needs more than this, please link them privately
1046
  # in the CMakeLists.txt for your plugin.
10778 craig 1047
  SET(PLUGIN_LIBRARIES
12473 mrdocs 1048
#    ${QT_LIBRARIES} part of #7210
12676 jghali 1049
    ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}
10778 craig 1050
    ${LIBXML2_LIBRARIES}
1051
    ${ZLIB_LIBRARIES}
1052
    ${EXE_NAME}
1053
    )
1054
ENDIF(WIN32)
1055
IF(APPLE)
1056
  SET(PLUGIN_LIBRARIES "-undefined dynamic_lookup")
1057
ENDIF(APPLE)
1058
 
1059
ADD_SUBDIRECTORY(plugins)
1060
 
10311 cbradney 1061
#do we want a lib suffix on osx? doubt it
9681 cbradney 1062
IF(APPLEBUNDLE)
9487 cbradney 1063
  INSTALL(DIRECTORY DESTINATION MacOS)
1064
  INSTALL(TARGETS ${EXE_NAME}
1065
    RUNTIME DESTINATION MacOS
1066
    LIBRARY DESTINATION lib
1067
    )
12457 avox 1068
#  ADD_CUSTOM_COMMAND(TARGET ${EXE_NAME} POST_BUILD
1069
#	COMMAND ${CMAKE_COMMAND} ARGS -Dinput_file=${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.app/Contents/MacOS/${EXE_NAME} -P ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake
1070
#  )
1071
 
1072
#  INSTALL(
1073
#	CODE "SET(input_file ${CMAKE_INSTALL_PREFIX}/MacOS/${EXE_NAME})"
1074
#	SCRIPT ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake )
9681 cbradney 1075
ELSE(APPLEBUNDLE)
10778 craig 1076
  IF(WIN32)
1077
    INSTALL(TARGETS ${EXE_NAME}
1078
      RUNTIME DESTINATION .
1079
      LIBRARY DESTINATION ${LIB_DIR_NAME}
1080
      )
1081
  ELSE(WIN32)
1082
    INSTALL(TARGETS ${EXE_NAME}
1083
      RUNTIME DESTINATION bin
1084
      LIBRARY DESTINATION ${LIB_DIR_NAME}
1085
      )
1086
  ENDIF(WIN32)
9681 cbradney 1087
ENDIF(APPLEBUNDLE)
5758 cbradney 1088
 
13794 cbradney 1089
#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
10802 cbradney 1090
IF(NOT WANT_NOHEADERINSTALL)
13794 cbradney 1091
  MESSAGE(STATUS "Source header files will be installed")
1092
  INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR}
1093
    FILES_MATCHING
1094
    PATTERN "*.h"
1095
    PATTERN "dicts" EXCLUDE
1096
    PATTERN "doc" EXCLUDE
1097
    PATTERN "dtd" EXCLUDE
1098
    PATTERN "editorconfig" EXCLUDE
1099
    PATTERN "icon*" EXCLUDE
1100
    PATTERN "manpages" EXCLUDE
1101
    PATTERN "old" EXCLUDE
1102
    PATTERN ".svn" EXCLUDE
1103
  )
13401 cbradney 1104
ELSE(NOT WANT_NOHEADERINSTALL)
1105
  MESSAGE(STATUS "No source header files will be installed")
10802 cbradney 1106
ENDIF(NOT WANT_NOHEADERINSTALL)