cmake_minimum_required(VERSION 2.6)

find_package(Qt3 REQUIRED)
find_package(KDE3 REQUIRED)

add_definitions(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})

SET(manFolder share/man/man1)
SET(docFolder share/doc/HTML/en/kst)

FIND_PROGRAM(MEINPROC_PATH meinproc)

IF (MEINPROC_PATH)
  ADD_CUSTOM_COMMAND(
    PRE_BUILD 
    OUTPUT index.cache.bz2 
    COMMAND meinproc --check --cache index.cache.bz2 ./index.docbook
  )

  ADD_CUSTOM_TARGET("bz2" ALL DEPENDS index.cache.bz2)

  FIND_PATH(KDE_CHUNK_PATH kde-chunk.xsl PATHS ${KDE3PREFIX}/share/apps/ksgmltools2/customization)
  IF (KDE_CHUNK_PATH)
    ADD_CUSTOM_COMMAND(
      PRE_BUILD 
      OUTPUT index.htm 
      COMMAND meinproc index.docbook --stylesheet ${KDE3PREFIX}/share/apps/ksgmltools2/customization/kde-chunk.xsl
    )

    ADD_CUSTOM_TARGET("htm" ALL DEPENDS index.htm)
  ELSE (KDE_CHUNK_PATH)
    message(STATUS "---- Please install ksgmltools2 to build the html files.")
  ENDIF (KDE_CHUNK_PATH)

  FIND_PATH(DOCBOOK_PATH docbook.xsl PATHS ${KDE3PREFIX}/share/apps/ksgmltools2/docbook/xsl/manpages/)
  IF (DOCBOOK_PATH)
    ADD_CUSTOM_COMMAND(
      PRE_BUILD 
      OUTPUT kst.1 
      COMMAND meinproc index.docbook --stylesheet ${KDE3PREFIX}/share/apps/ksgmltools2/docbook/xsl/manpages/docbook.xsl
      COMMAND gzip -f kst.1
    )

    ADD_CUSTOM_TARGET("man" ALL DEPENDS kst.1)
  ELSE (DOCBOOK_PATH)
    message(STATUS "---- Please install ksgmltools2 to build the man page.")
  ENDIF (DOCBOOK_PATH)
ELSE (MEINPROC_PATH)
  message(STATUS "---- Please install meinproc to build the man page and html files.")
ENDIF (MEINPROC_PATH)

FIND_PROGRAM(DBLATEX_PATH dblatex)
IF (DBLATEX_PATH)
  FIND_PROGRAM(PDFTEX_PATH pdftex)
  IF (PDFTEX_PATH)
    SET(CATALOG_PATH $ENV{SGML_CATALOG_FILES})

    IF (CATALOG_PATH)
      ADD_CUSTOM_COMMAND(
        PRE_BUILD 
        OUTPUT KstHandbook.pdf 
        COMMAND dblatex -b pdftex -o KstHandbook.pdf -P latex.output.revhistory=0  -P newtbl.use=1 -P imagedata.default.scale=pagebound -P literal.width.ignore=1 -I ${KDEDIR}/share/doc/HTML/en/ -X index.docbook
      )

      ADD_CUSTOM_TARGET("pdf" ALL DEPENDS KstHandbook.pdf)
    ELSE (CATALOG_PATH)
      message(STATUS "---- Please set the value of SGML_CATALOG_FILES to build the pdf file.")
    ENDIF (CATALOG_PATH)
  ELSE (PDFTEX_PATH)
    message(STATUS "---- Please install pdftex to build the pdf file.")
  ENDIF (PDFTEX_PATH)
ELSE (DBLATEX_PATH)
  message(STATUS "---- Please install dblatex to build the pdf file.")
ENDIF (DBLATEX_PATH)

########### install files ###############

install(FILES  "Diagram-kst-data-datatypes.png" DESTINATION ${docFolder})
install(FILES  "Diagram-kst-data-framesconcept.png" DESTINATION ${docFolder})
install(FILES  "Diagram-kst-data-matrix.png" DESTINATION ${docFolder})
install(FILES  "Diagram-kst-view-viewobjects.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-autocorrelation2.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-autocorrelation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-bandpass.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-bandstop.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-convolution.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-crosscorrelation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-cumulativesum.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-deconvolution.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-DFT.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-exponentialfitequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-gaussianfitequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-gaussianprobability.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-generallinearmodelexample.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-generallinearmodel.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-gradientequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-gradientsumofsquares.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-highpass.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-linefitequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-linefitsumofsquaredresiduals.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-lorentzianfitequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-lowpass.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-normalization.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-polynomialfitequation.png" DESTINATION ${docFolder})
install(FILES  "Formula-kst-sinusoidfitequation.png" DESTINATION ${docFolder})
install(FILES  "Formulat-kst-DFT-freq.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-changedatafile.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-changedatarange.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-datamanager.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-datamode.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-datawizard.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-clear.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-createmx.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-createscalar.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-creatvec.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-editmx.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-editscalar.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit-editvec.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-edit.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-layoutmode.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-openfile.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-string.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-tiedzoom.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-xmousezoom.png" DESTINATION ${docFolder})
install(FILES  "Icon-kst-xymousezoom.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-ch3-spect-eg.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-icons-changedatafile.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-icons-changedatasamplerange.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-icons-datamanager.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-icons-viewmanager.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-debuglog.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-initialplot.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-marker.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-markersettings.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-newemoncurve.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingeventmonitor-neweventmonitor.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingpowerspectrumdiag.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingpowerspectrummenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingpowerspectrumplot.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-creatingpowerspectrum.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-curvefitting-fitcontext.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-curvefitting-fitresults.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-curvefitting-plottedcurve.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot1.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot2.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot3.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot4.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot5.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-customizeplot6.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-generatinghist-histogram.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-generatinghist-scatterplot.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-plottingsimplegraphs-configureascii.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-plottingsimplegraphs-finalplot.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-plugins1.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-plugins2.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-commontasks-plugins3.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-asciiconfig.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-changedatafile.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-changesampleranges.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-curveedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-datamanager.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-datamode.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-equationedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-eventmonitoredit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-healpixconfig.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-healpixexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-histogramedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-imageedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-matrixedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-matrixfile.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-matrixrange.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-datamode.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-newscalar.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-qimageexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-spectraedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-spectrogramedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-spectrogramexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-staticmatrixedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-staticvectoredit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-vectoredit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-vectorviewedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-viewmatrixvalues.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-viewscalarvalues.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-viewvectorvalues.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-wizardconfiguredatasource.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-wizard-configurelayout.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-wizard-datasource.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-wizard-presentation.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-data-wizard-selectdata.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-dialog.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elog-addentry.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elogbrowsericon.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elogentryicon.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elog-loggingsettings.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elog.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-elog-serversettings.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-kstscriptexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-extensions-kstscriptsubroutinesexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-configureascii.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-configurelayout.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-datamanager.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-equationnew.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-finalplots.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-final.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-initialplots.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-maximize.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-presentation.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-saveas.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-selectdata.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-gs-tiedzoom.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-intro-quickstartdialog.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-autocorrelation.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-bandpassfilter.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-binnedmap.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-bin.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-chop.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-converttime.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-convolution.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-crosscorrelation.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-crosspowerspectrum.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-cumulativesum.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-deconvolution.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-despikefilter.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-despike.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-effectivebandwidth.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitexponential.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitgaussian.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitgradient.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitlinear.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitlorentzian.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitnonlinear.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitpolynomial.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fitsinusoid.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-fixedstepdifferentiation.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-genericfilter.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-highpassfilter.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-interpolationakimaspline.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-interpolation-eg.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-noiseaddition.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-normalization.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-periodogram.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-phase.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-reverse.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-shift.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-statistics.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-plugins-syncbin.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-saving-exportgraphics.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-saving-printkstoptions.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-saving-saveas.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-saving-savevectorstodisk.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-debugdialog-log.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-debugdialog-notifier.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-defineshortcut.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-globalsettings-email.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-globalsettings-general.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-settings-shortcuts.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-annotationmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-arrowedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-assigncurvecolorfromfile.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-colorchooser.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-curve-appearance.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-curve-placement.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-differentiatebetweencurves.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-differentiatecurves.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-editplot-appearance.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-editplot-content.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-editplot-markers.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-editplot-range.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-editplot-xaxis.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-ellipseedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-HRexample.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-icon1.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-labeledit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-approx.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-brackets.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-cdot.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-delta.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-gamma.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-Gamma.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-geq.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-inf.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-int.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-leq.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-partial.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-pm.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-prod.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-sqrt.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-subscript.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-sum.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-superscript.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-textbf.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-textcolor.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-textit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-label-latex-underline.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-layoutmenu1.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-layoutmenu2.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-layoutmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-legendedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-lineedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-mditabpage.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-modemenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-pictureedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-plotsmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-rectangleedit.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-tabcontextmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-tiedzoom.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-toolbarmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-toolbar.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-viewmanager.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-zoomcontextmenu.png" DESTINATION ${docFolder})
install(FILES  "Screenshot-kst-view-zoom.png" DESTINATION ${docFolder})
install(FILES  "Symbol-kst-Gamma.png" DESTINATION ${docFolder})
install(FILES  "Symbol-kst-lambda.png" DESTINATION ${docFolder})
install(FILES  "Symbol-kst-mu.png" DESTINATION ${docFolder})
install(FILES  "Symbol-kst-sigma.png" DESTINATION ${docFolder})
install(FILES  "Symbol-kst-theta.png" DESTINATION ${docFolder})
install(FILES  "Widget-kst-close.png" DESTINATION ${docFolder})
install(FILES  "Widget-kst-colorchooser.png" DESTINATION ${docFolder})
install(FILES  "Widget-kst-maximize.png" DESTINATION ${docFolder})
install(FILES  "Widget-kst-minimize.png" DESTINATION ${docFolder})
install(FILES  "Widget-kst-undock.png" DESTINATION ${docFolder})

install(FILES  "additionalformats-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "commandline-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "commontasks-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "creatingplugins-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "data-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "dcop-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "equation-appendix.docbook" DESTINATION ${docFolder})
install(FILES  "extensions-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "index.docbook" DESTINATION ${docFolder})
install(FILES  "install-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "intro-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "license-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "plugins-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "saving-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "script-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "settings-chapter.docbook" DESTINATION ${docFolder})
install(FILES  "views-chapter.docbook" DESTINATION ${docFolder})

install(FILES  "index.cache.bz2" DESTINATION ${docFolder})

install(FILES  "kst.1.gz" DESTINATION ${manFolder})

