Subversion Repositories Scribus

Rev

Rev 6549 | Rev 6657 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#Subdirectories
ADD_SUBDIRECTORY(dicts)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(dtd)
ADD_SUBDIRECTORY(icons)
ADD_SUBDIRECTORY(keysets)
IF(RENDER_LIB STREQUAL "LIBART")
  ADD_SUBDIRECTORY(libart)
ENDIF(RENDER_LIB STREQUAL "LIBART")
ADD_SUBDIRECTORY(loremipsum)
ADD_SUBDIRECTORY(manpages)
ADD_SUBDIRECTORY(pixbuf)
ADD_SUBDIRECTORY(plugins)
ADD_SUBDIRECTORY(profiles)
ADD_SUBDIRECTORY(qm)
ADD_SUBDIRECTORY(swatches)
ADD_SUBDIRECTORY(templates)
ADD_SUBDIRECTORY(text)
ADD_SUBDIRECTORY(fonts)
ADD_SUBDIRECTORY(desaxe)


SET(SCRIBUS_UI_SRC
aboutpluginsbase.ui
aligndistributebase.ui
docitemattrprefsbase.ui
docsectionsbase.ui
guidemanagerbase.ui
insertaframebase.ui
multipleduplicatebase.ui
multiprogressdialogbase.ui
pageitemattributesbase.ui
patterndialogbase.ui
picsearchbase.ui
smlinestylewbase.ui
smreplacediabase.ui
smpstylewbase.ui
smcstylewbase.ui
stylemanagerbase.ui
tabexternaltoolswidgetbase.ui
tabkeyboardshortcutswidgetbase.ui
tocindexprefsbase.ui
useprintermarginsdialogbase.ui
tabdisplaybase.ui
tabgeneralbase.ui
tabmiscellaneousbase.ui
tabscrapbookbase.ui
)

SET(SCRIBUS_MOC_CLASSES
about.h
aboutplugins.h
actionmanager.h
aligndistribute.h
alignselect.h
annota.h
annot.h
applytemplatedialog.h
arrowchooser.h
autoform.h
autoformbuttongroup.h
bookmwin.h
bookpalette.h
buttonicon.h
charselect.h
checkDocument.h
cmsprefs.h
cmykfw.h
collect4output.h
colorblind.h
colorchart.h
colorm.h
colorsetmanager.h
colorcombo.h
commonstrings.h
cpalette.h
cupsoptions.h
curvewidget.h
customfdialog.h
dcolor.h
deferredtask.h
delpages.h
docinfo.h
docitemattrprefs.h
docsections.h
documentinformation.h
druck.h
edit1format.h
editformats.h
editor.h
effectsdialog.h
extimageprops.h
fileloader.h
filesearch.h
filewatcher.h
fontcombo.h
fontprefs.h
fontreplacedialog.h
frameedit.h
gradienteditor.h
gtdialogs.h
guidemanager.h
helpbrowser.h
hruler.h
hyask.h
hyphenator.h
hysettings.h
imageinfodialog.h
insertaframe.h
insertTable.h
inspage.h
javadocs.h
layers.h
lineformats.h
loadsaveplugin.h
loremipsum.h
margindialog.h
marginWidget.h
mdup.h
measurements.h
menumanager.h
mergedoc.h
movepage.h
missing.h
mpalette.h
mspinbox.h
multiline.h
multipleduplicate.h
multiprogressdialog.h
muster.h
navigator.h
newfile.h
newtemp.h
pageitem.h
pageitemattributes.h
pageitem_imageframe.h
pageitem_line.h
pageitem_pathtext.h
pageitem_polygon.h
pageitem_polyline.h
pageitem_textframe.h
pagelayout.h
pageselector.h
patterndialog.h
pdflib.h
pdfopts.h
picsearch.h
picstatus.h
pluginmanager.h
pluginmanagerprefsgui.h
polygonwidget.h
polyprops.h
prefs.h
prefsdialogbase.h
prefsmanager.h
prefspanel.h
preview.h
pslib.h
query.h
reformdoc.h
rulermover.h
sampleitem.h
sccolorshade.h
scinputdialog.h
scmenu.h
scmessagebox.h
scgtplugin.h
scplugin.h
scpreview.h
scprogressbar.h
scraction.h
scrap.h
scribus.h
scribusapp.h
scribuscore.h
scribusdoc.h
scribusview.h
scribusXml.h
scribuswin.h
scrpalettebase.h
sctoolbar.h
search.h
seiten.h
selection.h
selfield.h
shadebutton.h
smlinestyle.h
smreplacedia.h
smtextstyles.h
smtextstylewidgets.h
smwidgets.h
spalette.h
story.h
styleitem.h
stylemanager.h
styleselect.h
tabcheckdoc.h
tabexternaltoolswidget.h
tabkeyboardshortcutswidget.h
tabdisplay.h
tabdocument.h
tabgeneral.h
tabguides.h
tabmanager.h
tabmiscellaneous.h
tabpdfoptions.h
tabruler.h
tabscrapbook.h
tabtools.h
tabtypography.h
tocgenerator.h
tocindexprefs.h
tree.h
undogui.h
undomanager.h
upgradechecker.h
useprintermarginsdialog.h
vruler.h
werktoolb.h
)

# linkbutton.h

SET(SCRIBUS_SOURCES
about.cpp
aboutplugins.cpp
actionmanager.cpp
aligndistribute.cpp
alignselect.cpp
annota.cpp
annot.cpp
applytemplatedialog.cpp
arrowchooser.cpp
autoformbuttongroup.cpp
autoform.cpp
bookmwin.cpp
bookpalette.cpp
buttonicon.cpp
charselect.cpp
checkDocument.cpp
cmserrorhandling.cpp
cmykfw.cpp
cmsprefs.cpp
cmsutil.cpp
cmsettings.cpp
collect4output.cpp
colorblind.cpp
colorchart.cpp
colorcombo.cpp
colorm.cpp
colorsetmanager.cpp
colorutil.cpp
commonstrings.cpp
cpalette.cpp
cupsoptions.cpp
curvewidget.cpp
customfdialog.cpp
dcolor.cpp
deferredtask.cpp
delpages.cpp
docinfo.cpp
docitemattrprefs.cpp
docsections.cpp
documentchecker.cpp
documentinformation.cpp
druck.cpp
dynamictip.cpp
editor.cpp
edit1format.cpp
editformats.cpp
effectsdialog.cpp
exif.cpp
extimageprops.cpp
fileloader.cpp
filesearch.cpp
fileunzip.cpp
filewatcher.cpp
fmitem.cpp
fontcombo.cpp
fontprefs.cpp
fontreplacedialog.cpp
fparser.cpp
fpointarray.cpp
fpoint.cpp
fpoptimizer.cpp
frameedit.cpp
gradienteditor.cpp
gsutil.cpp
gtaction.cpp
gtdialogs.cpp
gtfont.cpp
gtframestyle.cpp
gtgettext.cpp
gtmeasure.cpp
gtparagraphstyle.cpp
gtstyle.cpp
gtwriter.cpp
guidemanager.cpp
guidemanagercore.cpp
helpbrowser.cpp
hnjalloc.c
hruler.cpp
hyask.cpp
hyphen.c
hyphenator.cpp
hysettings.cpp
imageinfodialog.cpp
insertaframe.cpp
insertTable.cpp
inspage.cpp
ioapi.c
javadocs.cpp
langmgr.cpp
layers.cpp
linecombo.cpp
lineformats.cpp
linkbutton.cpp
loadsaveplugin.cpp
loremipsum.cpp
main.cpp
margindialog.cpp
marginWidget.cpp
md5.c
mdup.cpp
measurements.cpp
menumanager.cpp
mergedoc.cpp
movepage.cpp
missing.cpp
mpalette.cpp
mspinbox.cpp
multiline.cpp
multipleduplicate.cpp
multiprogressdialog.cpp
muster.cpp
navigator.cpp
newfile.cpp
newtemp.cpp
page.cpp
pageitem.cpp
pageitemattributes.cpp
pageitem_imageframe.cpp
pageitem_line.cpp
pageitem_pathtext.cpp
pageitem_polygon.cpp
pageitem_polyline.cpp
pageitem_textframe.cpp
pagelayout.cpp
pageselector.cpp
pagesize.cpp
patterndialog.cpp
pdflib.cpp
pdfoptions.cpp
pdfoptionsio.cpp
pdfopts.cpp
picsearch.cpp
picstatus.cpp
pluginmanager.cpp
pluginmanagerprefsgui.cpp
polygonwidget.cpp
polyprops.cpp
prefs.cpp
prefscontext.cpp
prefsdialogbase.cpp
prefsfile.cpp
prefspanel.cpp
prefsreader.cpp
prefsmanager.cpp
prefstable.cpp
preview.cpp
printerutil.cpp
pslib.cpp
query.cpp
rc4.c
reformdoc.cpp
rulermover.cpp
sampleitem.cpp
sccolor.cpp
sccolorshade.cpp
sccombobox.cpp
scinputdialog.cpp
scfonts.cpp
scimage.cpp
scimagestructs.cpp
scimgdataloader.cpp
scimgdataloader_gimp.cpp
scimgdataloader_jpeg.cpp
scimgdataloader_pdf.cpp
scimgdataloader_ps.cpp
scimgdataloader_psd.cpp
scimgdataloader_qt.cpp
scimgdataloader_tiff.cpp
scgtplugin.cpp
scpainter.cpp
scpaths.cpp
scpattern.cpp
scplugin.cpp
scpreview.cpp
scprogressbar.cpp
scraction.cpp
scrap.cpp
scribus.cpp
scribusapp.cpp
scribuscore.cpp
scribusdoc.cpp
scribusview.cpp
scribusXml.cpp
scribuswin.cpp
scrpalettebase.cpp
scmenu.cpp
scmessagebox.cpp
sctextstruct.cpp
sctoolbar.cpp
search.cpp
seiten.cpp
selection.cpp
selfield.cpp
serializer.cpp
shadebutton.cpp
smlinestyle.cpp
smreplacedia.cpp
smtextstyles.cpp
smtextstylewidgets.cpp
smwidgets.cpp
spalette.cpp
splash.cpp
stencilreader.cpp
story.cpp
style.cpp
styleitem.cpp
stylemanager.cpp
styleselect.cpp
tabcheckdoc.cpp
tabexternaltoolswidget.cpp
tabkeyboardshortcutswidget.cpp
tabdisplay.cpp
tabdocument.cpp
tabgeneral.cpp
tabguides.cpp
tabmanager.cpp
tabmiscellaneous.cpp
tabpdfoptions.cpp
tabruler.cpp
tabscrapbook.cpp
tabtools.cpp
tabtypography.cpp
tocgenerator.cpp
tocindexprefs.cpp
tree.cpp
undogui.cpp
undomanager.cpp
undoobject.cpp
undostack.cpp
undostate.cpp
units.cpp
unzip.c
upgradechecker.cpp
useprintermarginsdialog.cpp
util.cpp
vgradient.cpp
vgradientex.cpp
vruler.cpp
werktoolb.cpp
)

IF(QT_WRAP_UI)
QT_WRAP_UI(scribus SCRIBUS_UI_H SCRIBUS_UI_CPP ${SCRIBUS_UI_SRC} )
ENDIF(QT_WRAP_UI)

IF(QT_WRAP_CPP)
  SCRIBUS_QT_WRAP_CPP(SCRIBUS_MOC_SOURCES ${SCRIBUS_MOC_CLASSES})
ENDIF(QT_WRAP_CPP)

LINK_DIRECTORIES(
desaxe
text
fonts
pixbuf
)

IF(RENDER_LIB STREQUAL "LIBART")
  LINK_DIRECTORIES(libart)
ENDIF(RENDER_LIB STREQUAL "LIBART")

SET(SCRIBUS_LIBART_LIB "scribus_libart_lib")
SET(SCRIBUS_PIXBUF_LIB "scribus_pixbuf_lib")
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")

INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
"${CMAKE_CURRENT_SOURCE_DIR}/text"
"${CMAKE_CURRENT_SOURCE_DIR}/fonts"
"${CMAKE_CURRENT_SOURCE_DIR}/desaxe"
)

SET(EXE_NAME "scribus${TAG_VERSION}")

ADD_EXECUTABLE(${EXE_NAME}
  ${SCRIBUS_MOC_SOURCES}
  ${SCRIBUS_SOURCES}
  ${SCRIBUS_UI_CPP}
  ${SCRIBUS_TEXT_SOURCES}
  ${SCRIBUS_FONTS_SOURCES}
  ${SCRIBUS_DESAXE_SOURCES}
)

TARGET_LINK_LIBRARIES(${EXE_NAME}
${SCRIBUS_DESAXE_LIB}
${SCRIBUS_TEXT_LIB}
${SCRIBUS_FONTS_LIB}
${SCRIBUS_PIXBUF_LIB}
)

IF(RENDER_LIB STREQUAL "LIBART")
  TARGET_LINK_LIBRARIES(${EXE_NAME}
  ${SCRIBUS_LIBART_LIB}
  )
ENDIF(RENDER_LIB STREQUAL "LIBART")

INSTALL(TARGETS ${EXE_NAME}
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib)