Subversion Repositories Scribus

Rev

Rev 8917 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5142 cbradney 1
#Subdirectories
2
ADD_SUBDIRECTORY(dicts)
3
ADD_SUBDIRECTORY(doc)
4
ADD_SUBDIRECTORY(dtd)
5
ADD_SUBDIRECTORY(icons)
6
ADD_SUBDIRECTORY(keysets)
5159 cbradney 7
IF(RENDER_LIB STREQUAL "LIBART")
8
  ADD_SUBDIRECTORY(libart)
9
ENDIF(RENDER_LIB STREQUAL "LIBART")
5142 cbradney 10
ADD_SUBDIRECTORY(loremipsum)
11
ADD_SUBDIRECTORY(manpages)
8917 avox 12
IF(NOT APPLE)
9487 cbradney 13
  ADD_SUBDIRECTORY(pixbuf)
8917 avox 14
ENDIF(NOT APPLE)
5142 cbradney 15
ADD_SUBDIRECTORY(plugins)
16
ADD_SUBDIRECTORY(profiles)
17
ADD_SUBDIRECTORY(qm)
6662 cbradney 18
ADD_SUBDIRECTORY(styles)
5142 cbradney 19
ADD_SUBDIRECTORY(swatches)
20
ADD_SUBDIRECTORY(templates)
21
ADD_SUBDIRECTORY(text)
6733 avox 22
ADD_SUBDIRECTORY(styles)
5980 avox 23
ADD_SUBDIRECTORY(fonts)
5691 avox 24
ADD_SUBDIRECTORY(desaxe)
6830 subik 25
ADD_SUBDIRECTORY(unicodemap)
8908 subik 26
IF (WANT_DESIGNER)
27
  ADD_SUBDIRECTORY(designer)
28
ENDIF (WANT_DESIGNER)
5142 cbradney 29
 
30
SET(SCRIBUS_UI_SRC
8524 subik 31
aboutplugins.ui
32
aligndistribute.ui
33
createrange.ui
34
docitemattrprefs.ui
35
docsections.ui
36
guidemanager.ui
37
insertaframe.ui
38
multipleduplicate.ui
39
multiprogressdialog.ui
40
pageitemattributes.ui
41
patterndialog.ui
42
picsearch.ui
43
picsearchoptions.ui
44
picstatus.ui
45
smlinestylew.ui
46
smreplacedia.ui
47
smpstylew.ui
48
smcstylew.ui
49
stylemanager.ui
50
tabexternaltoolswidget.ui
51
tabkeyboardshortcutswidget.ui
52
tocindexprefs.ui
53
useprintermarginsdialog.ui
54
tabdisplay.ui
55
tabgeneral.ui
56
tabmiscellaneous.ui
57
tabprinter.ui
58
tabscrapbook.ui
59
unicodesearch.ui
5142 cbradney 60
)
61
 
62
SET(SCRIBUS_MOC_CLASSES
63
about.h
64
aboutplugins.h
65
actionmanager.h
66
aligndistribute.h
67
alignselect.h
68
annota.h
69
annot.h
70
applytemplatedialog.h
71
arrowchooser.h
72
autoform.h
73
autoformbuttongroup.h
74
bookmwin.h
75
bookpalette.h
76
buttonicon.h
77
charselect.h
6683 subik 78
chartable.h
7022 subik 79
charzoom.h
5142 cbradney 80
checkDocument.h
81
cmsprefs.h
82
cmykfw.h
83
collect4output.h
6549 fschmid 84
colorblind.h
5142 cbradney 85
colorchart.h
7747 jghali 86
colorcombo.h
87
colorlistbox.h
5142 cbradney 88
colorm.h
6892 cbradney 89
# colorsetmanager.h
5142 cbradney 90
commonstrings.h
91
cpalette.h
6657 cbradney 92
createrange.h
5142 cbradney 93
cupsoptions.h
6129 fschmid 94
curvewidget.h
5142 cbradney 95
customfdialog.h
96
dcolor.h
97
deferredtask.h
98
delpages.h
99
docinfo.h
100
docitemattrprefs.h
101
docsections.h
6892 cbradney 102
# documentinformation.h
5142 cbradney 103
druck.h
8369 cbradney 104
# edit1format.h
105
# editformats.h
5142 cbradney 106
editor.h
107
effectsdialog.h
108
extimageprops.h
109
fileloader.h
110
filesearch.h
111
filewatcher.h
112
fontcombo.h
113
fontprefs.h
114
fontreplacedialog.h
115
frameedit.h
116
gradienteditor.h
117
gtdialogs.h
118
guidemanager.h
119
helpbrowser.h
120
hruler.h
121
hyask.h
122
hyphenator.h
123
hysettings.h
124
imageinfodialog.h
6083 cbradney 125
insertaframe.h
5142 cbradney 126
insertTable.h
127
inspage.h
128
javadocs.h
129
layers.h
130
lineformats.h
131
loadsaveplugin.h
132
loremipsum.h
133
margindialog.h
134
marginWidget.h
135
mdup.h
136
measurements.h
137
menumanager.h
138
mergedoc.h
139
movepage.h
140
missing.h
141
mpalette.h
8602 cbradney 142
#mspinbox.h
5142 cbradney 143
multiline.h
6442 cbradney 144
multipleduplicate.h
5142 cbradney 145
multiprogressdialog.h
146
muster.h
147
navigator.h
148
newfile.h
149
newtemp.h
7296 fschmid 150
oneclick.h
5142 cbradney 151
pageitem.h
152
pageitemattributes.h
153
pageitem_imageframe.h
154
pageitem_line.h
155
pageitem_pathtext.h
156
pageitem_polygon.h
157
pageitem_polyline.h
158
pageitem_textframe.h
159
pagelayout.h
160
pageselector.h
6368 fschmid 161
patterndialog.h
5142 cbradney 162
pdflib.h
163
pdfopts.h
164
picsearch.h
8377 fschmid 165
picsearchoptions.h
5142 cbradney 166
picstatus.h
167
pluginmanager.h
168
pluginmanagerprefsgui.h
169
polygonwidget.h
170
polyprops.h
171
prefs.h
172
prefsdialogbase.h
173
prefsmanager.h
174
prefspanel.h
175
preview.h
176
pslib.h
177
query.h
178
reformdoc.h
179
rulermover.h
180
sampleitem.h
7934 cbradney 181
# sccolorshade.h
5903 subik 182
scinputdialog.h
5142 cbradney 183
scmenu.h
184
scmessagebox.h
5715 tsoots 185
scgtplugin.h
5142 cbradney 186
scplugin.h
7934 cbradney 187
# scpreview.h
5378 cbradney 188
scprogressbar.h
5142 cbradney 189
scraction.h
190
scrap.h
191
scribus.h
192
scribusapp.h
5245 cbradney 193
scribuscore.h
5142 cbradney 194
scribusdoc.h
195
scribusview.h
196
scribusXml.h
197
scribuswin.h
198
scrpalettebase.h
8585 cbradney 199
scrspinbox.h
5142 cbradney 200
sctoolbar.h
201
search.h
202
seiten.h
203
selection.h
204
selfield.h
205
shadebutton.h
206
smlinestyle.h
5155 tsoots 207
smreplacedia.h
8275 tsoots 208
smstyleimport.h
5850 tsoots 209
smtextstyles.h
6023 tsoots 210
smtextstylewidgets.h
6091 tsoots 211
smwidgets.h
5142 cbradney 212
spalette.h
213
story.h
214
styleitem.h
215
stylemanager.h
216
styleselect.h
217
tabcheckdoc.h
5329 cbradney 218
tabexternaltoolswidget.h
5352 cbradney 219
tabkeyboardshortcutswidget.h
5851 subik 220
tabdisplay.h
221
tabdocument.h
222
tabgeneral.h
5142 cbradney 223
tabguides.h
224
tabmanager.h
5851 subik 225
tabmiscellaneous.h
5142 cbradney 226
tabpdfoptions.h
7109 fschmid 227
tabprinter.h
5142 cbradney 228
tabruler.h
5851 subik 229
tabscrapbook.h
5142 cbradney 230
tabtools.h
231
tabtypography.h
232
tocgenerator.h
233
tocindexprefs.h
234
tree.h
235
undogui.h
236
undomanager.h
6811 subik 237
unicodesearch.h
5855 cbradney 238
upgradechecker.h
5142 cbradney 239
useprintermarginsdialog.h
240
vruler.h
241
werktoolb.h
242
)
243
 
244
# linkbutton.h
245
 
246
SET(SCRIBUS_SOURCES
247
about.cpp
248
aboutplugins.cpp
249
actionmanager.cpp
250
aligndistribute.cpp
251
alignselect.cpp
8193 avox 252
annotation.cpp
5142 cbradney 253
annota.cpp
254
annot.cpp
255
applytemplatedialog.cpp
256
arrowchooser.cpp
257
autoformbuttongroup.cpp
258
autoform.cpp
259
bookmwin.cpp
260
bookpalette.cpp
261
buttonicon.cpp
262
charselect.cpp
6683 subik 263
chartable.cpp
7022 subik 264
charzoom.cpp
5142 cbradney 265
checkDocument.cpp
266
cmserrorhandling.cpp
267
cmykfw.cpp
268
cmsprefs.cpp
6070 jghali 269
cmsutil.cpp
5782 cbradney 270
cmsettings.cpp
5142 cbradney 271
collect4output.cpp
6549 fschmid 272
colorblind.cpp
5142 cbradney 273
colorchart.cpp
274
colorcombo.cpp
7747 jghali 275
colorlistbox.cpp
5142 cbradney 276
colorm.cpp
277
colorsetmanager.cpp
6125 cbradney 278
colorutil.cpp
5142 cbradney 279
commonstrings.cpp
280
cpalette.cpp
6657 cbradney 281
createrange.cpp
5142 cbradney 282
cupsoptions.cpp
6129 fschmid 283
curvewidget.cpp
5142 cbradney 284
customfdialog.cpp
285
dcolor.cpp
286
deferredtask.cpp
287
delpages.cpp
288
docinfo.cpp
289
docitemattrprefs.cpp
290
docsections.cpp
291
documentchecker.cpp
292
documentinformation.cpp
293
druck.cpp
294
dynamictip.cpp
295
editor.cpp
8369 cbradney 296
# edit1format.cpp
297
# editformats.cpp
5142 cbradney 298
effectsdialog.cpp
299
exif.cpp
300
extimageprops.cpp
301
fileloader.cpp
302
filesearch.cpp
303
fileunzip.cpp
304
filewatcher.cpp
8638 cbradney 305
# fmitem.cpp
5142 cbradney 306
fontcombo.cpp
307
fontprefs.cpp
308
fontreplacedialog.cpp
309
fparser.cpp
310
fpointarray.cpp
311
fpoint.cpp
312
fpoptimizer.cpp
313
frameedit.cpp
314
gradienteditor.cpp
315
gsutil.cpp
316
gtaction.cpp
317
gtdialogs.cpp
318
gtfont.cpp
319
gtframestyle.cpp
320
gtgettext.cpp
321
gtmeasure.cpp
322
gtparagraphstyle.cpp
323
gtstyle.cpp
324
gtwriter.cpp
325
guidemanager.cpp
326
guidemanagercore.cpp
327
helpbrowser.cpp
328
hnjalloc.c
329
hruler.cpp
330
hyask.cpp
331
hyphen.c
332
hyphenator.cpp
333
hysettings.cpp
334
imageinfodialog.cpp
6083 cbradney 335
insertaframe.cpp
5142 cbradney 336
insertTable.cpp
337
inspage.cpp
338
ioapi.c
339
javadocs.cpp
340
langmgr.cpp
341
layers.cpp
342
linecombo.cpp
343
lineformats.cpp
344
linkbutton.cpp
345
loadsaveplugin.cpp
346
loremipsum.cpp
347
main.cpp
348
margindialog.cpp
349
marginWidget.cpp
350
md5.c
351
mdup.cpp
352
measurements.cpp
353
menumanager.cpp
354
mergedoc.cpp
355
movepage.cpp
356
missing.cpp
357
mpalette.cpp
8602 cbradney 358
#mspinbox.cpp
5142 cbradney 359
multiline.cpp
6442 cbradney 360
multipleduplicate.cpp
5142 cbradney 361
multiprogressdialog.cpp
362
muster.cpp
363
navigator.cpp
364
newfile.cpp
365
newtemp.cpp
7296 fschmid 366
oneclick.cpp
5142 cbradney 367
page.cpp
368
pageitem.cpp
8193 avox 369
pageitem_desaxe.cpp
5142 cbradney 370
pageitemattributes.cpp
371
pageitem_imageframe.cpp
372
pageitem_line.cpp
373
pageitem_pathtext.cpp
374
pageitem_polygon.cpp
375
pageitem_polyline.cpp
376
pageitem_textframe.cpp
377
pagelayout.cpp
378
pageselector.cpp
379
pagesize.cpp
6368 fschmid 380
patterndialog.cpp
5142 cbradney 381
pdflib.cpp
382
pdfoptions.cpp
383
pdfoptionsio.cpp
384
pdfopts.cpp
385
picsearch.cpp
8377 fschmid 386
picsearchoptions.cpp
5142 cbradney 387
picstatus.cpp
388
pluginmanager.cpp
389
pluginmanagerprefsgui.cpp
390
polygonwidget.cpp
391
polyprops.cpp
392
prefs.cpp
393
prefscontext.cpp
394
prefsdialogbase.cpp
395
prefsfile.cpp
396
prefspanel.cpp
397
prefsreader.cpp
398
prefsmanager.cpp
399
prefstable.cpp
400
preview.cpp
401
printerutil.cpp
402
pslib.cpp
403
query.cpp
6835 fschmid 404
rawimage.cpp
5142 cbradney 405
rc4.c
406
reformdoc.cpp
407
rulermover.cpp
408
sampleitem.cpp
409
sccolor.cpp
7479 jghali 410
sccolorengine.cpp
5142 cbradney 411
sccolorshade.cpp
412
sccombobox.cpp
5903 subik 413
scinputdialog.cpp
5142 cbradney 414
scfonts.cpp
8022 jghali 415
scgtplugin.cpp
416
scgzfile.cpp
5142 cbradney 417
scimage.cpp
5937 jghali 418
scimagestructs.cpp
419
scimgdataloader.cpp
6412 fschmid 420
scimgdataloader_gimp.cpp
5937 jghali 421
scimgdataloader_jpeg.cpp
422
scimgdataloader_pdf.cpp
423
scimgdataloader_ps.cpp
424
scimgdataloader_psd.cpp
425
scimgdataloader_qt.cpp
426
scimgdataloader_tiff.cpp
5142 cbradney 427
scpainter.cpp
428
scpaths.cpp
6368 fschmid 429
scpattern.cpp
5142 cbradney 430
scplugin.cpp
431
scpreview.cpp
5378 cbradney 432
scprogressbar.cpp
5142 cbradney 433
scraction.cpp
434
scrap.cpp
435
scribus.cpp
436
scribusapp.cpp
5245 cbradney 437
scribuscore.cpp
5142 cbradney 438
scribusdoc.cpp
439
scribusview.cpp
440
scribusXml.cpp
441
scribuswin.cpp
442
scrpalettebase.cpp
8585 cbradney 443
scrspinbox.cpp
5142 cbradney 444
scmenu.cpp
445
scmessagebox.cpp
5196 cbradney 446
sctextstruct.cpp
5142 cbradney 447
sctoolbar.cpp
448
search.cpp
449
seiten.cpp
450
selection.cpp
451
selfield.cpp
452
serializer.cpp
453
shadebutton.cpp
454
smlinestyle.cpp
5155 tsoots 455
smreplacedia.cpp
8275 tsoots 456
smstyleimport.cpp
5850 tsoots 457
smtextstyles.cpp
6023 tsoots 458
smtextstylewidgets.cpp
6091 tsoots 459
smwidgets.cpp
5142 cbradney 460
spalette.cpp
461
splash.cpp
462
stencilreader.cpp
463
story.cpp
464
styleitem.cpp
465
stylemanager.cpp
466
styleselect.cpp
467
tabcheckdoc.cpp
5329 cbradney 468
tabexternaltoolswidget.cpp
5352 cbradney 469
tabkeyboardshortcutswidget.cpp
5851 subik 470
tabdisplay.cpp
471
tabdocument.cpp
472
tabgeneral.cpp
5142 cbradney 473
tabguides.cpp
474
tabmanager.cpp
5851 subik 475
tabmiscellaneous.cpp
5142 cbradney 476
tabpdfoptions.cpp
7109 fschmid 477
tabprinter.cpp
5142 cbradney 478
tabruler.cpp
5851 subik 479
tabscrapbook.cpp
5142 cbradney 480
tabtools.cpp
481
tabtypography.cpp
482
tocgenerator.cpp
483
tocindexprefs.cpp
484
tree.cpp
485
undogui.cpp
486
undomanager.cpp
487
undoobject.cpp
488
undostack.cpp
489
undostate.cpp
6811 subik 490
unicodesearch.cpp
5142 cbradney 491
units.cpp
492
unzip.c
5855 cbradney 493
upgradechecker.cpp
5142 cbradney 494
useprintermarginsdialog.cpp
495
util.cpp
496
vgradient.cpp
497
vgradientex.cpp
498
vruler.cpp
499
werktoolb.cpp
500
)
501
 
8524 subik 502
# IF(QT4_WRAP_UI)
8499 cbradney 503
#  QT4_WRAP_UI(scribus SCRIBUS_UI_H SCRIBUS_UI_CPP ${SCRIBUS_UI_SRC} )
504
  QT4_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
8524 subik 505
# ENDIF(QT4_WRAP_UI)
5142 cbradney 506
 
8663 subik 507
# IF(QT4_WRAP_CPP)
8499 cbradney 508
  QT4_WRAP_CPP(SCRIBUS_MOC_SOURCES ${SCRIBUS_MOC_CLASSES})
8663 subik 509
# ENDIF(QT4_WRAP_CPP)
5142 cbradney 510
 
511
LINK_DIRECTORIES(
5691 avox 512
desaxe
5142 cbradney 513
text
6733 avox 514
styles
5980 avox 515
fonts
5142 cbradney 516
)
517
 
8917 avox 518
IF(NOT APPLE)
9487 cbradney 519
  SET(SCRIBUS_PIXBUF_LIB "scribus_pixbuf_lib")
520
  LINK_DIRECTORIES(pixbuf)
8917 avox 521
ENDIF(NOT APPLE)
522
 
5142 cbradney 523
SET(SCRIBUS_LIBART_LIB "scribus_libart_lib")
524
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
6733 avox 525
SET(SCRIBUS_STYLES_LIB "scribus_styles_lib")
5980 avox 526
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
5691 avox 527
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
5142 cbradney 528
 
529
INCLUDE_DIRECTORIES(
530
${CMAKE_SOURCE_DIR}
531
${CMAKE_CURRENT_SOURCE_DIR}
532
)
533
 
9487 cbradney 534
IF(APPLE AND BUILD_OSX_BUNDLE)
535
  SET(EXE_NAME "Scribus${TAG_VERSION}" CACHE TYPE STRING)
536
ELSE(APPLE AND BUILD_OSX_BUNDLE)
537
  SET(EXE_NAME "scribus${TAG_VERSION}" CACHE TYPE STRING)
538
ENDIF(APPLE AND BUILD_OSX_BUNDLE)
5142 cbradney 539
 
5379 cbradney 540
ADD_EXECUTABLE(${EXE_NAME}
5157 cbradney 541
  ${SCRIBUS_MOC_SOURCES}
542
  ${SCRIBUS_SOURCES}
8499 cbradney 543
  ${SCRIBUS_UI_SOURCES}
5157 cbradney 544
  ${SCRIBUS_TEXT_SOURCES}
6733 avox 545
  ${SCRIBUS_STYLES_SOURCES}
5980 avox 546
  ${SCRIBUS_FONTS_SOURCES}
5691 avox 547
  ${SCRIBUS_DESAXE_SOURCES}
5142 cbradney 548
)
549
 
8729 cbradney 550
#Set up libraries to link with all found packages
551
 
552
#Select Libart_LGPL or Cairo
553
IF(RENDER_LIB STREQUAL "LIBART")
554
  INCLUDE_DIRECTORIES(${LIBART_LGPL_INCLUDE_DIR})
555
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${LIBART_LGPL_LIBRARIES})
556
  LINK_DIRECTORIES(libart)
557
ENDIF(RENDER_LIB STREQUAL "LIBART")
558
IF(RENDER_LIB STREQUAL "CAIRO")
559
  INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
560
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${CAIRO_LIBRARIES})
561
  LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
562
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
563
ENDIF(RENDER_LIB STREQUAL "CAIRO")
564
 
565
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
566
 
5758 cbradney 567
TARGET_LINK_LIBRARIES(${EXE_NAME}
8499 cbradney 568
${QT_LIBRARIES}
8729 cbradney 569
${CUPS_LIBRARIES}
570
${FREETYPE_LIBRARIES}
571
${FONTCONFIG_LIBRARIES}
572
${LCMS_LIBRARIES}
573
${LIBXML2_LIBRARIES}
574
${PYTHON_LIBRARIES}
575
${TIFF_LIBRARIES}
576
${JPEG_LIBRARIES}
577
${ZLIB_LIBRARIES}
578
)
579
 
580
IF(WIN32)
581
  TARGET_LINK_LIBRARIES(${EXE_NAME}
582
    ${QT_QTMAIN_LIBRARY}
583
  )
584
ENDIF(WIN32)
585
 
586
IF(WIN32)
587
  ADD_DEFINITIONS(-DQT_DLL)
588
ENDIF(WIN32)
589
 
590
IF(APPLE)
591
  TARGET_LINK_LIBRARIES(${EXE_NAME}
592
    "-undefined dynamic_lookup"
593
    "-framework CoreFoundation" )
594
ENDIF(APPLE)
595
 
596
 
597
 
598
TARGET_LINK_LIBRARIES(${EXE_NAME}
5758 cbradney 599
${SCRIBUS_DESAXE_LIB}
600
${SCRIBUS_TEXT_LIB}
6733 avox 601
${SCRIBUS_STYLES_LIB}
5980 avox 602
${SCRIBUS_FONTS_LIB}
8917 avox 603
)
604
 
605
IF(NOT APPLE)
9487 cbradney 606
  TARGET_LINK_LIBRARIES(${EXE_NAME}
607
  ${SCRIBUS_PIXBUF_LIB}
5758 cbradney 608
)
8917 avox 609
ENDIF(NOT APPLE)
5758 cbradney 610
 
611
IF(RENDER_LIB STREQUAL "LIBART")
612
  TARGET_LINK_LIBRARIES(${EXE_NAME}
613
  ${SCRIBUS_LIBART_LIB}
614
  )
615
ENDIF(RENDER_LIB STREQUAL "LIBART")
9487 cbradney 616
IF(APPLE AND BUILD_OSX_BUNDLE)
617
  INSTALL(DIRECTORY DESTINATION MacOS)
618
  INSTALL(TARGETS ${EXE_NAME}
619
    RUNTIME DESTINATION MacOS
620
    LIBRARY DESTINATION lib
621
    )
622
ELSE(APPLE AND BUILD_OSX_BUNDLE)
623
  INSTALL(TARGETS ${EXE_NAME}
624
    RUNTIME DESTINATION bin
625
    LIBRARY DESTINATION lib
626
    )
627
ENDIF(APPLE AND BUILD_OSX_BUNDLE)
5758 cbradney 628
 
9487 cbradney 629
#  INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink bin/${EXE_NAME} MacOS/Scribus)" )
630
#  WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})
631