CMakeLists.txt 1.82 KB
Newer Older
1
# Install the set of non-executable data files
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
file(GLOB _FILES
      "README"
      "fontfix.conf"
      "inkweb.js"
      "jessyInk.js"
      "jessyInk_core_mouseHandler_noclick.js"
      "jessyInk_core_mouseHandler_zoomControl.js"
      "aisvg.xslt"
      "colors.xml"
      "jessyInk_video.svg"
      "seamless_pattern.svg"
      "svg2fxg.xsl"
      "svg2xaml.xsl"
      "xaml2svg.xsl"
      "inkscape.extension.rng"
17 18 19
      "*.inx"
    )

20
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions)
21 22 23

# Install the executable scripts
file(GLOB _SCRIPTS
24 25 26 27 28
      "*.py"
      "*.pl"
      "*.sh"
      "*.rb"
    )
29 30 31 32 33 34 35 36 37 38
# These files don't need the +x bit
set(_SCRIPTS_NOEXEC
    "hersheydata.py"
    "hpgl_decoder.py"
    "hpgl_encoder.py"
    "simplepath.py"
    "simplestyle.py"
    "simpletransform.py"
)
list(REMOVE_ITEM _SCRIPTS ${_SCRIPTS_NOEXEC})
39
install(PROGRAMS ${_SCRIPTS} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions)
40
install(FILES ${_SCRIPTS_NOEXEC} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions)
41 42

file(GLOB _FILES "alphabet_soup/*.svg")
43
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/alphabet_soup)
44 45

file(GLOB _FILES "Barcode/*.py")
46
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/Barcode)
47 48

file(GLOB _FILES "Poly3DObjects/*.obj")
49
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/Poly3DObjects)
50 51 52 53 54 55 56 57

# file(GLOB _FILES
#       "test/*.svg"
#       "test/*.sh"
#       "test/*.py"
#       "test/*.js"
#       "test/run-all-extension-tests"
#     )
58
# install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/test)
59 60

file(GLOB _FILES "ink2canvas/*.py")
61
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/ink2canvas)
62 63

file(GLOB _FILES "xaml2svg/*.xsl")
64
install(FILES ${_FILES} DESTINATION ${INKSCAPE_SHARE_INSTALL}/extensions/xaml2svg)