Subversion Repositories Scribus

Rev

Rev 12446 | Rev 12581 | 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(dicts)
6
ADD_SUBDIRECTORY(doc)
7
ADD_SUBDIRECTORY(dtd)
8
ADD_SUBDIRECTORY(icons)
9
ADD_SUBDIRECTORY(keysets)
10
ADD_SUBDIRECTORY(loremipsum)
11
ADD_SUBDIRECTORY(manpages)
12
ADD_SUBDIRECTORY(profiles)
6662 cbradney 13
ADD_SUBDIRECTORY(styles)
5142 cbradney 14
ADD_SUBDIRECTORY(swatches)
15
ADD_SUBDIRECTORY(templates)
16
ADD_SUBDIRECTORY(text)
5980 avox 17
ADD_SUBDIRECTORY(fonts)
5691 avox 18
ADD_SUBDIRECTORY(desaxe)
6830 subik 19
ADD_SUBDIRECTORY(unicodemap)
11011 mrdocs 20
ADD_SUBDIRECTORY(editorconfig)
8908 subik 21
IF (WANT_DESIGNER)
22
  ADD_SUBDIRECTORY(designer)
23
ENDIF (WANT_DESIGNER)
5142 cbradney 24
 
25
SET(SCRIBUS_UI_SRC
9681 cbradney 26
  aboutplugins.ui
27
  aligndistribute.ui
10817 subik 28
  charselect.ui
12379 fschmid 29
  cmsprefsbase.ui
9681 cbradney 30
  docitemattrprefs.ui
31
  docsections.ui
10862 cbradney 32
  gtfiledialog.ui
9681 cbradney 33
  guidemanager.ui
10170 fschmid 34
  hysettingsBase.ui
9681 cbradney 35
  insertaframe.ui
10618 cbradney 36
  latexeditor.ui
12438 fschmid 37
  measurementsbase.ui
9681 cbradney 38
  multipleduplicate.ui
39
  multiprogressdialog.ui
40
  pageitemattributes.ui
41
  patterndialog.ui
42
  picsearch.ui
43
  picsearchoptions.ui
44
  picstatus.ui
9981 subik 45
  pluginmanagerprefsgui.ui
12243 fschmid 46
  printdialogbase.ui
11895 fschmid 47
  replacecolors.ui
48
  replaceonecolor.ui
11919 fschmid 49
  selectobjects.ui
10340 subik 50
  shortcutwidget.ui
10862 cbradney 51
  smcstylewidget.ui
10353 subik 52
  smlinestylewidget.ui
10862 cbradney 53
  smpstylewidget.ui
9681 cbradney 54
  smreplacedia.ui
10332 subik 55
  smstyleimport.ui
9681 cbradney 56
  stylemanager.ui
10862 cbradney 57
  tabdisplay.ui
9681 cbradney 58
  tabexternaltoolswidget.ui
10862 cbradney 59
  tabgeneral.ui
9681 cbradney 60
  tabkeyboardshortcutswidget.ui
61
  tabmiscellaneous.ui
62
  tabprinter.ui
63
  tabscrapbook.ui
10862 cbradney 64
  tocindexprefs.ui
65
  ui/copypagetomasterpage.ui
66
  ui/createrange.ui
67
  ui/helpbrowser.ui
9681 cbradney 68
  unicodesearch.ui
10862 cbradney 69
  useprintermarginsdialog.ui
5142 cbradney 70
)
71
 
72
SET(SCRIBUS_MOC_CLASSES
9681 cbradney 73
  about.h
74
  aboutplugins.h
75
  actionmanager.h
12362 fschmid 76
  adjustcmsdialog.h
9681 cbradney 77
  aligndistribute.h
78
  alignselect.h
10862 cbradney 79
  annot.h
9681 cbradney 80
  annota.h
81
  applytemplatedialog.h
82
  arrowchooser.h
83
  autoform.h
84
  autoformbuttongroup.h
12092 fschmid 85
  basepointwidget.h
10862 cbradney 86
  bookmarkpalette.h
9681 cbradney 87
  bookmwin.h
88
  buttonicon.h
10532 avox 89
  canvas.h
11190 avox 90
  canvasmode_measurements.h
11158 avox 91
  canvasmode_legacy.h
9681 cbradney 92
  charselect.h
10113 subik 93
  chartablemodel.h
94
  chartableview.h
9681 cbradney 95
  charzoom.h
96
  checkDocument.h
97
  cmsprefs.h
98
  cmykfw.h
99
  collect4output.h
100
  colorblind.h
101
  colorchart.h
102
  colorcombo.h
103
  colorlistbox.h
104
  colorm.h
105
  commonstrings.h
10934 cbradney 106
  contextmenu.h
9681 cbradney 107
  cpalette.h
108
  cupsoptions.h
109
  curvewidget.h
110
  customfdialog.h
11206 fschmid 111
  dasheditor.h
9681 cbradney 112
  dcolor.h
113
  deferredtask.h
114
  delpages.h
115
  docinfo.h
116
  docitemattrprefs.h
117
  docsections.h
118
  editor.h
119
  effectsdialog.h
120
  extimageprops.h
121
  fileloader.h
122
  filesearch.h
123
  filewatcher.h
124
  fontcombo.h
11234 subik 125
  fontlistmodel.h
126
  fontlistview.h
9681 cbradney 127
  fontprefs.h
128
  fontreplacedialog.h
129
  gradienteditor.h
10862 cbradney 130
  gtdialogs.h
10242 subik 131
  gtfiledialog.h
9681 cbradney 132
  guidemanager.h
10205 subik 133
  guidesdelegate.h
134
  guidesmodel.h
9681 cbradney 135
  helpbrowser.h
136
  hruler.h
137
  hyask.h
138
  hyphenator.h
139
  hysettings.h
140
  imageinfodialog.h
10862 cbradney 141
  insertTable.h
9681 cbradney 142
  insertaframe.h
143
  inspage.h
144
  javadocs.h
10618 cbradney 145
  latexeditor.h
11504 mrdocs 146
  latexhelpers.h
9681 cbradney 147
  layers.h
148
  loadsaveplugin.h
149
  loremipsum.h
11103 cbradney 150
  marginwidget.h
9681 cbradney 151
  margindialog.h
10862 cbradney 152
  masterpagepalette.h
9681 cbradney 153
  measurements.h
154
  menumanager.h
155
  mergedoc.h
10862 cbradney 156
  missing.h
9681 cbradney 157
  movepage.h
158
  multipleduplicate.h
159
  multiprogressdialog.h
160
  navigator.h
161
  newfile.h
162
  newtemp.h
10862 cbradney 163
  nodeeditpalette.h
10532 avox 164
  observable.h
9681 cbradney 165
  oneclick.h
10862 cbradney 166
  outlinepalette.h
9681 cbradney 167
  pageitem.h
168
  pageitem_imageframe.h
10862 cbradney 169
  pageitem_latexframe.h
9681 cbradney 170
  pageitem_line.h
171
  pageitem_pathtext.h
172
  pageitem_polygon.h
173
  pageitem_polyline.h
174
  pageitem_textframe.h
10862 cbradney 175
  pageitemattributes.h
9681 cbradney 176
  pagelayout.h
10862 cbradney 177
  pagepalette.h
9681 cbradney 178
  pageselector.h
179
  patterndialog.h
180
  pdflib.h
10054 craig 181
  pdflib_core.h
9681 cbradney 182
  pdfopts.h
183
  picsearch.h
184
  picsearchoptions.h
185
  picstatus.h
186
  pluginmanager.h
187
  pluginmanagerprefsgui.h
188
  polygonwidget.h
189
  polyprops.h
190
  prefs.h
191
  prefsdialogbase.h
192
  prefsmanager.h
193
  prefspanel.h
194
  preview.h
10863 cbradney 195
  printdialog.h
10862 cbradney 196
  propertiespalette.h
9681 cbradney 197
  pslib.h
198
  query.h
199
  reformdoc.h
11895 fschmid 200
  replacecolors.h
201
  replaceonecolor.h
9681 cbradney 202
  rulermover.h
203
  sampleitem.h
10862 cbradney 204
  scfilewidget.h
205
  scgtplugin.h
206
  schelptreemodel.h
9681 cbradney 207
  scinputdialog.h
208
  scmenu.h
209
  scmessagebox.h
210
  scplugin.h
10967 jghali 211
  scprintengine.h
9681 cbradney 212
  scraction.h
10862 cbradney 213
  scrapbookpalette.h
9681 cbradney 214
  scribus.h
215
  scribusapp.h
216
  scribuscore.h
217
  scribusdoc.h
218
  scribusview.h
219
  scribuswin.h
220
  scrpalettebase.h
221
  scrspinbox.h
9934 cbradney 222
  sctablewidget.h
10862 cbradney 223
  sctextbrowser.h
9681 cbradney 224
  sctoolbar.h
12293 fschmid 225
  sctreewidget.h
9681 cbradney 226
  search.h
227
  selection.h
11919 fschmid 228
  selectobjects.h
9681 cbradney 229
  selfield.h
230
  shadebutton.h
10340 subik 231
  shortcutwidget.h
10339 subik 232
  smalignselect.h
10862 cbradney 233
  smcolorcombo.h
234
  smcstylewidget.h
10339 subik 235
  smfontcomboh.h
9681 cbradney 236
  smlinestyle.h
10355 subik 237
  smlinestylewidget.h
10862 cbradney 238
  smpstylewidget.h
9681 cbradney 239
  smreplacedia.h
10339 subik 240
  smsccombobox.h
241
  smscrspinbox.h
242
  smshadebutton.h
243
  smspinbox.h
9681 cbradney 244
  smstyleimport.h
10339 subik 245
  smstyleselect.h
246
  smtabruler.h
9681 cbradney 247
  smtextstyles.h
248
  spalette.h
249
  story.h
250
  styleitem.h
251
  stylemanager.h
252
  styleselect.h
10340 subik 253
  styleview.h
9681 cbradney 254
  tabcheckdoc.h
255
  tabdisplay.h
256
  tabdocument.h
10862 cbradney 257
  tabexternaltoolswidget.h
9681 cbradney 258
  tabgeneral.h
259
  tabguides.h
10862 cbradney 260
  tabkeyboardshortcutswidget.h
9681 cbradney 261
  tabmanager.h
262
  tabmiscellaneous.h
263
  tabpdfoptions.h
264
  tabprinter.h
265
  tabruler.h
266
  tabscrapbook.h
267
  tabtools.h
268
  tabtypography.h
269
  tocgenerator.h
270
  tocindexprefs.h
10066 cbradney 271
  tt/simpletreemodel/treemodel.h
10862 cbradney 272
  ui/copypagetomasterpagedialog.h
273
  ui/createrange.h
10976 cbradney 274
  ui/edittoolbar.h
275
  ui/filetoolbar.h
276
  ui/modetoolbar.h
277
  ui/pdftoolbar.h
9681 cbradney 278
  undogui.h
279
  undomanager.h
280
  unicodesearch.h
281
  upgradechecker.h
10311 cbradney 282
  urllauncher.h
9681 cbradney 283
  useprintermarginsdialog.h
284
  vruler.h
5142 cbradney 285
)
286
 
287
SET(SCRIBUS_SOURCES
9681 cbradney 288
  about.cpp
289
  aboutplugins.cpp
290
  actionmanager.cpp
12362 fschmid 291
  adjustcmsdialog.cpp
9681 cbradney 292
  aligndistribute.cpp
293
  alignselect.cpp
10862 cbradney 294
  annot.cpp
295
  annota.cpp
9681 cbradney 296
  annotation.cpp
297
  applytemplatedialog.cpp
298
  arrowchooser.cpp
10862 cbradney 299
  autoform.cpp
9681 cbradney 300
  autoformbuttongroup.cpp
12092 fschmid 301
  basepointwidget.cpp
10862 cbradney 302
  bookmarkpalette.cpp
9681 cbradney 303
  bookmwin.cpp
304
  buttonicon.cpp
10532 avox 305
  canvas.cpp
11339 avox 306
  canvasgesture_linemove.cpp
10701 avox 307
  canvasgesture_rectselect.cpp
10869 avox 308
  canvasgesture_resize.cpp
309
  canvasgesture_rulermove.cpp
10532 avox 310
  canvasmode.cpp
10978 avox 311
  canvasmode_create.cpp
312
  canvasmode_drawbezier.cpp
313
  canvasmode_drawfreehand.cpp
10532 avox 314
  canvasmode_legacy.cpp
11190 avox 315
  canvasmode_measurements.cpp
10532 avox 316
  canvasmode_nodeedit.cpp
9681 cbradney 317
  charselect.cpp
10113 subik 318
  chartablemodel.cpp
319
  chartableview.cpp
9681 cbradney 320
  charzoom.cpp
321
  checkDocument.cpp
322
  cmserrorhandling.cpp
10862 cbradney 323
  cmsettings.cpp
324
  cmsprefs.cpp
9681 cbradney 325
  cmykfw.cpp
326
  collect4output.cpp
327
  colorblind.cpp
328
  colorchart.cpp
329
  colorcombo.cpp
330
  colorlistbox.cpp
331
  colorm.cpp
332
  colorsetmanager.cpp
333
  commonstrings.cpp
10934 cbradney 334
  contextmenu.cpp
9681 cbradney 335
  cpalette.cpp
336
  cupsoptions.cpp
337
  curvewidget.cpp
338
  customfdialog.cpp
11206 fschmid 339
  dasheditor.cpp
9681 cbradney 340
  dcolor.cpp
341
  deferredtask.cpp
342
  delpages.cpp
343
  docinfo.cpp
344
  docitemattrprefs.cpp
345
  docsections.cpp
346
  documentchecker.cpp
347
  documentinformation.cpp
348
  editor.cpp
349
  effectsdialog.cpp
350
  exif.cpp
351
  extimageprops.cpp
352
  fileloader.cpp
353
  filesearch.cpp
354
  fileunzip.cpp
355
  filewatcher.cpp
356
  fontcombo.cpp
11234 subik 357
  fontlistmodel.cpp
358
  fontlistview.cpp
9681 cbradney 359
  fontprefs.cpp
360
  fontreplacedialog.cpp
361
  fparser.cpp
10862 cbradney 362
  fpoint.cpp
9681 cbradney 363
  fpointarray.cpp
364
  fpoptimizer.cpp
365
  gradienteditor.cpp
366
  gtaction.cpp
10862 cbradney 367
  gtdialogs.cpp
10242 subik 368
  gtfiledialog.cpp
9681 cbradney 369
  gtfont.cpp
370
  gtframestyle.cpp
371
  gtgettext.cpp
372
  gtmeasure.cpp
373
  gtparagraphstyle.cpp
374
  gtstyle.cpp
375
  gtwriter.cpp
376
  guidemanager.cpp
10862 cbradney 377
  guidemanagercore.cpp
10205 subik 378
  guidesdelegate.cpp
379
  guidesmodel.cpp
9681 cbradney 380
  helpbrowser.cpp
381
  hnjalloc.c
382
  hruler.cpp
383
  hyask.cpp
384
  hyphen.c
385
  hyphenator.cpp
386
  hysettings.cpp
387
  imageinfodialog.cpp
10862 cbradney 388
  insertTable.cpp
9681 cbradney 389
  insertaframe.cpp
390
  inspage.cpp
391
  ioapi.c
392
  javadocs.cpp
11041 fschmid 393
  KarbonCurveFit.cpp
9681 cbradney 394
  langmgr.cpp
10618 cbradney 395
  latexeditor.cpp
11504 mrdocs 396
  latexhelpers.cpp
9681 cbradney 397
  layers.cpp
398
  linecombo.cpp
399
  linkbutton.cpp
400
  loadsaveplugin.cpp
401
  loremipsum.cpp
11103 cbradney 402
  marginwidget.cpp
9681 cbradney 403
  margindialog.cpp
10862 cbradney 404
  masterpagepalette.cpp
9681 cbradney 405
  measurements.cpp
406
  menumanager.cpp
407
  mergedoc.cpp
10862 cbradney 408
  missing.cpp
9681 cbradney 409
  movepage.cpp
410
  multipleduplicate.cpp
411
  multiprogressdialog.cpp
412
  navigator.cpp
413
  newfile.cpp
414
  newtemp.cpp
10862 cbradney 415
  nodeeditpalette.cpp
10532 avox 416
  observable.cpp
9681 cbradney 417
  oneclick.cpp
10862 cbradney 418
  outlinepalette.cpp
9681 cbradney 419
  page.cpp
420
  pageitem.cpp
421
  pageitem_desaxe.cpp
422
  pageitem_imageframe.cpp
10862 cbradney 423
  pageitem_latexframe.cpp
9681 cbradney 424
  pageitem_line.cpp
425
  pageitem_pathtext.cpp
426
  pageitem_polygon.cpp
427
  pageitem_polyline.cpp
428
  pageitem_textframe.cpp
10862 cbradney 429
  pageitemattributes.cpp
9681 cbradney 430
  pagelayout.cpp
10862 cbradney 431
  pagepalette.cpp
9681 cbradney 432
  pageselector.cpp
433
  pagesize.cpp
434
  patterndialog.cpp
435
  pdflib.cpp
10054 craig 436
  pdflib_core.cpp
9681 cbradney 437
  pdfoptions.cpp
438
  pdfoptionsio.cpp
439
  pdfopts.cpp
440
  picsearch.cpp
441
  picsearchoptions.cpp
442
  picstatus.cpp
443
  pluginmanager.cpp
444
  pluginmanagerprefsgui.cpp
445
  polygonwidget.cpp
446
  polyprops.cpp
447
  prefs.cpp
448
  prefscontext.cpp
449
  prefsdialogbase.cpp
450
  prefsfile.cpp
10862 cbradney 451
  prefsmanager.cpp
9681 cbradney 452
  prefspanel.cpp
453
  prefsreader.cpp
454
  prefstable.cpp
455
  preview.cpp
10863 cbradney 456
  printdialog.cpp
10862 cbradney 457
  propertiespalette.cpp
9681 cbradney 458
  pslib.cpp
459
  query.cpp
460
  rawimage.cpp
461
  rc4.c
462
  reformdoc.cpp
11895 fschmid 463
  replacecolors.cpp
464
  replaceonecolor.cpp
9681 cbradney 465
  rulermover.cpp
466
  sampleitem.cpp
467
  sccolor.cpp
468
  sccolorengine.cpp
469
  sccolorshade.cpp
470
  sccombobox.cpp
10086 craig 471
  scdocoutput.cpp
472
  scdocoutput_ps2.cpp
10862 cbradney 473
  scfilewidget.cpp
9681 cbradney 474
  scfonts.cpp
475
  scgtplugin.cpp
476
  scgzfile.cpp
10862 cbradney 477
  schelptreemodel.cpp
9681 cbradney 478
  scimage.cpp
479
  scimagestructs.cpp
480
  scimgdataloader.cpp
481
  scimgdataloader_gimp.cpp
482
  scimgdataloader_jpeg.cpp
483
  scimgdataloader_pdf.cpp
484
  scimgdataloader_ps.cpp
485
  scimgdataloader_psd.cpp
486
  scimgdataloader_qt.cpp
487
  scimgdataloader_tiff.cpp
10862 cbradney 488
  scinputdialog.cpp
10140 jghali 489
  sclayer.cpp
10862 cbradney 490
  scmenu.cpp
491
  scmessagebox.cpp
10086 craig 492
  scpageoutput.cpp
493
  scpageoutput_ps2.cpp
9681 cbradney 494
  scpainter.cpp
10862 cbradney 495
  scpainterex_ps2.cpp
10086 craig 496
  scpainterexbase.cpp
9681 cbradney 497
  scpaths.cpp
498
  scpattern.cpp
499
  scplugin.cpp
500
  scpreview.cpp
10967 jghali 501
  scprintengine_ps.cpp
9681 cbradney 502
  scraction.cpp
10862 cbradney 503
  scrapbookpalette.cpp
9681 cbradney 504
  scribus.cpp
10862 cbradney 505
  scribusXml.cpp
9681 cbradney 506
  scribusapp.cpp
507
  scribuscore.cpp
508
  scribusdoc.cpp
509
  scribusview.cpp
510
  scribuswin.cpp
511
  scrpalettebase.cpp
512
  scrspinbox.cpp
11731 jghali 513
  scslainforeader.cpp
11551 jghali 514
  scstreamfilter.cpp
515
  scstreamfilter_ascii85.cpp
516
  scstreamfilter_flate.cpp
11591 jghali 517
  scstreamfilter_rc4.cpp
10862 cbradney 518
  sctablewidget.cpp
10108 cbradney 519
  sctextbrowser.cpp
9681 cbradney 520
  sctextstruct.cpp
521
  sctoolbar.cpp
12293 fschmid 522
  sctreewidget.cpp
9681 cbradney 523
  search.cpp
524
  selection.cpp
11919 fschmid 525
  selectobjects.cpp
9681 cbradney 526
  selfield.cpp
527
  serializer.cpp
528
  shadebutton.cpp
10340 subik 529
  shortcutwidget.cpp
10339 subik 530
  smalignselect.cpp
10862 cbradney 531
  smcolorcombo.cpp
532
  smcstylewidget.cpp
10339 subik 533
  smfontcomboh.cpp
9681 cbradney 534
  smlinestyle.cpp
10355 subik 535
  smlinestylewidget.cpp
10862 cbradney 536
  smpstylewidget.cpp
537
  smreplacedia.cpp
10339 subik 538
  smsccombobox.cpp
539
  smscrspinbox.cpp
540
  smshadebutton.cpp
541
  smspinbox.cpp
9681 cbradney 542
  smstyleimport.cpp
10339 subik 543
  smstyleselect.cpp
544
  smtabruler.cpp
9681 cbradney 545
  smtextstyles.cpp
546
  spalette.cpp
547
  splash.cpp
548
  stencilreader.cpp
549
  story.cpp
550
  styleitem.cpp
551
  stylemanager.cpp
552
  styleselect.cpp
10340 subik 553
  styleview.cpp
9681 cbradney 554
  tabcheckdoc.cpp
555
  tabdisplay.cpp
556
  tabdocument.cpp
10862 cbradney 557
  tabexternaltoolswidget.cpp
9681 cbradney 558
  tabgeneral.cpp
559
  tabguides.cpp
10862 cbradney 560
  tabkeyboardshortcutswidget.cpp
9681 cbradney 561
  tabmanager.cpp
562
  tabmiscellaneous.cpp
563
  tabpdfoptions.cpp
564
  tabprinter.cpp
565
  tabruler.cpp
566
  tabscrapbook.cpp
567
  tabtools.cpp
568
  tabtypography.cpp
569
  tocgenerator.cpp
570
  tocindexprefs.cpp
11576 avox 571
  transaction.cpp
10066 cbradney 572
  tt/simpletreemodel/treeitem.cpp
573
  tt/simpletreemodel/treemodel.cpp
10862 cbradney 574
  ui/copypagetomasterpagedialog.cpp
575
  ui/createrange.cpp
10976 cbradney 576
  ui/edittoolbar.cpp
577
  ui/filetoolbar.cpp
578
  ui/modetoolbar.cpp
579
  ui/pdftoolbar.cpp
9681 cbradney 580
  undogui.cpp
581
  undomanager.cpp
582
  undoobject.cpp
583
  undostack.cpp
584
  undostate.cpp
585
  unicodesearch.cpp
586
  units.cpp
587
  unzip.c
10862 cbradney 588
  updatemanager.cpp
9681 cbradney 589
  upgradechecker.cpp
10311 cbradney 590
  urllauncher.cpp
9681 cbradney 591
  useprintermarginsdialog.cpp
592
  util.cpp
10212 cbradney 593
  util_cms.cpp
10203 cbradney 594
  util_color.cpp
11605 jghali 595
  util_file.cpp
10212 cbradney 596
  util_formats.cpp
597
  util_ghostscript.cpp
10200 cbradney 598
  util_icon.cpp
10203 cbradney 599
  util_math.cpp
10212 cbradney 600
  util_printer.cpp
12277 cbradney 601
  util_text.cpp
9681 cbradney 602
  vgradient.cpp
603
  vgradientex.cpp
604
  vruler.cpp
5142 cbradney 605
)
606
 
10778 craig 607
IF(WIN32)
10967 jghali 608
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES scprintengine_gdi.h)
10778 craig 609
  SET(SCRIBUS_WIN32_ONLY_SOURCES
11882 jghali 610
      scpainterex_cairo.cpp
10967 jghali 611
      scprintengine_gdi.cpp
10778 craig 612
      )
613
  SET(SCRIBUS_MAIN_CPP main_win32.cpp)
614
ELSE(WIN32)
615
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES)
616
  SET(SCRIBUS_WIN32_ONLY_SOURCES)
617
  SET(SCRIBUS_MAIN_CPP main.cpp)
618
ENDIF(WIN32)
619
 
9681 cbradney 620
QT4_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
5142 cbradney 621
 
10778 craig 622
QT4_WRAP_CPP(SCRIBUS_MOC_SOURCES
623
	${SCRIBUS_MOC_CLASSES}
624
	${SCRIBUS_MOC_WIN32_ONLY_CLASSES}
625
	)
626
 
5142 cbradney 627
LINK_DIRECTORIES(
10783 craig 628
  ${CMAKE_CURRENT_BINARY_DIR}/desaxe
629
  ${CMAKE_CURRENT_BINARY_DIR}/text
630
  ${CMAKE_CURRENT_BINARY_DIR}/styles
631
  ${CMAKE_CURRENT_BINARY_DIR}/fonts
5142 cbradney 632
)
633
 
634
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
6733 avox 635
SET(SCRIBUS_STYLES_LIB "scribus_styles_lib")
5980 avox 636
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
5691 avox 637
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
5142 cbradney 638
 
639
INCLUDE_DIRECTORIES(
9681 cbradney 640
  ${CMAKE_SOURCE_DIR}
641
  ${CMAKE_CURRENT_SOURCE_DIR}
12233 cbradney 642
  ${FREETYPE_INCLUDE_DIRS}
5142 cbradney 643
)
644
 
11956 avox 645
IF(HAVE_PODOFO)
646
  INCLUDE_DIRECTORIES(
647
    ${LIBPODOFO_INCLUDE_DIR}
648
    )
649
ENDIF(HAVE_PODOFO)
650
 
651
 
9681 cbradney 652
IF(APPLEBUNDLE)
9487 cbradney 653
  SET(EXE_NAME "Scribus${TAG_VERSION}" CACHE TYPE STRING)
9681 cbradney 654
ELSE(APPLEBUNDLE)
9487 cbradney 655
  SET(EXE_NAME "scribus${TAG_VERSION}" CACHE TYPE STRING)
9681 cbradney 656
ENDIF(APPLEBUNDLE)
5142 cbradney 657
 
12373 malex 658
IF(COMMAND cmake_policy)
659
  cmake_policy(SET CMP0003 OLD)
660
ENDIF(COMMAND cmake_policy)
661
 
5379 cbradney 662
ADD_EXECUTABLE(${EXE_NAME}
5157 cbradney 663
  ${SCRIBUS_MOC_SOURCES}
664
  ${SCRIBUS_SOURCES}
10778 craig 665
  ${SCRIBUS_MAIN_CPP}
8499 cbradney 666
  ${SCRIBUS_UI_SOURCES}
5157 cbradney 667
  ${SCRIBUS_TEXT_SOURCES}
6733 avox 668
  ${SCRIBUS_STYLES_SOURCES}
5980 avox 669
  ${SCRIBUS_FONTS_SOURCES}
5691 avox 670
  ${SCRIBUS_DESAXE_SOURCES}
10778 craig 671
  ${SCRIBUS_WIN32_ONLY_SOURCES}
5142 cbradney 672
)
673
 
10778 craig 674
IF(WIN32)
675
  SET_TARGET_PROPERTIES(${EXE_NAME}
676
	PROPERTIES
677
	COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
678
	ENABLE_EXPORTS TRUE
679
	)
11945 jghali 680
  SET(WIN32_ONLY_LIBS mscms.lib)
10778 craig 681
ELSE(WIN32)
682
  SET(WIN32_ONLY_LIBS)
683
ENDIF(WIN32)
684
 
12176 cbradney 685
##TEST FIX FOR 6897
686
IF (GCC AND NOT WIN32)
687
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
688
# binary are in the public symbol table for plugins. The symbols must also
689
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
690
# Should fix bug 6897 .
12179 cbradney 691
     SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
12176 cbradney 692
 ENDIF (GCC AND NOT WIN32)
693
##
694
 
695
 
8729 cbradney 696
#Set up libraries to link with all found packages
697
 
698
#Select Libart_LGPL or Cairo
699
IF(RENDER_LIB STREQUAL "CAIRO")
700
  INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
701
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${CAIRO_LIBRARIES})
702
  LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
703
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
704
ENDIF(RENDER_LIB STREQUAL "CAIRO")
705
 
706
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
707
 
5758 cbradney 708
TARGET_LINK_LIBRARIES(${EXE_NAME}
9681 cbradney 709
  ${QT_LIBRARIES}
710
  ${CUPS_LIBRARIES}
711
  ${FREETYPE_LIBRARIES}
712
  ${FONTCONFIG_LIBRARIES}
713
  ${LCMS_LIBRARIES}
714
  ${LIBXML2_LIBRARIES}
715
  ${PYTHON_LIBRARIES}
716
  ${TIFF_LIBRARIES}
717
  ${JPEG_LIBRARIES}
718
  ${ZLIB_LIBRARIES}
10778 craig 719
  ${WIN32_ONLY_LIBS}
8729 cbradney 720
)
721
 
722
IF(WIN32)
9681 cbradney 723
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
8729 cbradney 724
ENDIF(WIN32)
725
 
726
IF(APPLE)
727
  TARGET_LINK_LIBRARIES(${EXE_NAME}
9681 cbradney 728
    "-undefined dynamic_lookup"
8729 cbradney 729
    "-framework CoreFoundation" )
730
ENDIF(APPLE)
731
 
732
TARGET_LINK_LIBRARIES(${EXE_NAME}
9681 cbradney 733
  ${SCRIBUS_DESAXE_LIB}
734
  ${SCRIBUS_TEXT_LIB}
735
  ${SCRIBUS_STYLES_LIB}
736
  ${SCRIBUS_FONTS_LIB}
8917 avox 737
)
738
 
11956 avox 739
IF(HAVE_PODOFO)
740
  TARGET_LINK_LIBRARIES(${EXE_NAME}
741
    ${LIBPODOFO_LIBRARY}
742
  )
743
ENDIF(HAVE_PODOFO)
744
 
10778 craig 745
# Now build plugins
746
SET(PLUGIN_LIBRARIES)
747
IF(WIN32)
10800 craig 748
  # IF your plugin needs more than this, please link them privately
749
  # in the CMakeLists.txt for your plugin.
10778 craig 750
  SET(PLUGIN_LIBRARIES
751
    ${QT_LIBRARIES}
752
    ${LIBXML2_LIBRARIES}
753
    ${ZLIB_LIBRARIES}
754
    ${EXE_NAME}
755
    )
756
ENDIF(WIN32)
757
IF(APPLE)
758
  SET(PLUGIN_LIBRARIES "-undefined dynamic_lookup")
759
ENDIF(APPLE)
760
 
761
ADD_SUBDIRECTORY(plugins)
762
 
10311 cbradney 763
#do we want a lib suffix on osx? doubt it
9681 cbradney 764
IF(APPLEBUNDLE)
9487 cbradney 765
  INSTALL(DIRECTORY DESTINATION MacOS)
766
  INSTALL(TARGETS ${EXE_NAME}
767
    RUNTIME DESTINATION MacOS
768
    LIBRARY DESTINATION lib
769
    )
12457 avox 770
#  ADD_CUSTOM_COMMAND(TARGET ${EXE_NAME} POST_BUILD
771
#	COMMAND ${CMAKE_COMMAND} ARGS -Dinput_file=${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.app/Contents/MacOS/${EXE_NAME} -P ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake
772
#  )
773
 
774
#  INSTALL(
775
#	CODE "SET(input_file ${CMAKE_INSTALL_PREFIX}/MacOS/${EXE_NAME})"
776
#	SCRIPT ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake )
9681 cbradney 777
ELSE(APPLEBUNDLE)
10778 craig 778
  IF(WIN32)
779
    INSTALL(TARGETS ${EXE_NAME}
780
      RUNTIME DESTINATION .
781
      LIBRARY DESTINATION ${LIB_DIR_NAME}
782
      )
783
  ELSE(WIN32)
784
    INSTALL(TARGETS ${EXE_NAME}
785
      RUNTIME DESTINATION bin
786
      LIBRARY DESTINATION ${LIB_DIR_NAME}
787
      )
788
  ENDIF(WIN32)
9681 cbradney 789
ENDIF(APPLEBUNDLE)
5758 cbradney 790
 
9681 cbradney 791
#Install our header files, selected from all existing dirs
10802 cbradney 792
IF(NOT WANT_NOHEADERINSTALL)
793
  FILE( GLOB_RECURSE SCRIBUS_HEADER_FILES *.h )
794
  INSTALL(FILES ${SCRIBUS_HEADER_FILES} DESTINATION ${INCLUDEDIR})
795
ENDIF(NOT WANT_NOHEADERINSTALL)