0N/A# -----------------------------------------------------------------------------
2223N/A# Define the main source
0N/A# -----------------------------------------------------------------------------
0N/A
0N/Aset(main_SRC
0N/A main.cpp
0N/A)
0N/A
0N/Aset(sp_SRC
0N/A attribute-rel-css.cpp
0N/A attribute-rel-svg.cpp
0N/A attribute-rel-util.cpp
0N/A sp-anchor.cpp
0N/A sp-clippath.cpp
0N/A sp-conn-end-pair.cpp
0N/A sp-conn-end.cpp
0N/A sp-cursor.cpp
0N/A sp-defs.cpp
1472N/A sp-desc.cpp
1472N/A sp-ellipse.cpp
1472N/A sp-factory.cpp
0N/A sp-filter-primitive.cpp
0N/A sp-filter-reference.cpp
0N/A sp-filter.cpp
1879N/A sp-flowdiv.cpp
1879N/A sp-flowregion.cpp
1879N/A sp-flowtext.cpp
1879N/A sp-font-face.cpp
1879N/A sp-font.cpp
1879N/A sp-glyph-kerning.cpp
1879N/A sp-glyph.cpp
1879N/A sp-gradient-reference.cpp
1879N/A sp-gradient.cpp
1879N/A sp-guide.cpp
1879N/A sp-hatch-path.cpp
1879N/A sp-hatch.cpp
1879N/A sp-image.cpp
1879N/A sp-item-group.cpp
1879N/A sp-item-notify-moveto.cpp
1879N/A sp-item-rm-unsatisfied-cns.cpp
1879N/A sp-item-transform.cpp
1879N/A sp-item-update-cns.cpp
1879N/A sp-item.cpp
1879N/A sp-line.cpp
0N/A sp-linear-gradient.cpp
0N/A sp-lpe-item.cpp
0N/A sp-marker.cpp
0N/A sp-mask.cpp
0N/A sp-mesh-array.cpp
0N/A sp-mesh-patch.cpp
0N/A sp-mesh-row.cpp
0N/A sp-mesh.cpp
0N/A sp-metadata.cpp
0N/A sp-missing-glyph.cpp
0N/A sp-namedview.cpp
0N/A sp-object-group.cpp
0N/A sp-object.cpp
0N/A sp-offset.cpp
0N/A sp-paint-server.cpp
0N/A sp-path.cpp
0N/A sp-pattern.cpp
0N/A sp-polygon.cpp
0N/A sp-polyline.cpp
0N/A sp-radial-gradient.cpp
0N/A sp-rect.cpp
0N/A sp-root.cpp
0N/A sp-script.cpp
0N/A sp-shape.cpp
0N/A sp-solid-color.cpp
0N/A sp-spiral.cpp
0N/A sp-star.cpp
0N/A sp-stop.cpp
0N/A sp-string.cpp
0N/A sp-style-elem.cpp
0N/A sp-switch.cpp
0N/A sp-symbol.cpp
0N/A sp-tag-use-reference.cpp
0N/A sp-tag-use.cpp
0N/A sp-tag.cpp
0N/A sp-text.cpp
0N/A sp-title.cpp
0N/A sp-tref-reference.cpp
0N/A sp-tref.cpp
0N/A sp-tspan.cpp
0N/A sp-use-reference.cpp
0N/A sp-use.cpp
0N/A splivarot.cpp
0N/A viewbox.cpp
0N/A
0N/A # -------
0N/A # Headers
0N/A attribute-rel-css.h
0N/A attribute-rel-svg.h
0N/A attribute-rel-util.h
0N/A sp-anchor.h
1483N/A sp-clippath.h
1668N/A sp-conn-end-pair.h
0N/A sp-conn-end.h
0N/A sp-cursor.h
1483N/A sp-defs.h
0N/A sp-desc.h
0N/A sp-ellipse.h
0N/A sp-factory.h
1668N/A sp-filter-primitive.h
0N/A sp-filter-reference.h
0N/A sp-filter-units.h
0N/A sp-filter.h
0N/A sp-flowdiv.h
0N/A sp-flowregion.h
0N/A sp-flowtext.h
0N/A sp-font-face.h
0N/A sp-font.h
0N/A sp-glyph-kerning.h
1564N/A sp-glyph.h
1564N/A sp-gradient-reference.h
0N/A sp-gradient-spread.h
0N/A sp-gradient-test.h
989N/A sp-gradient-units.h
1202N/A sp-gradient-vector.h
0N/A sp-gradient.h
0N/A sp-guide-attachment.h
0N/A sp-guide-constraint.h
0N/A sp-guide.h
0N/A sp-hatch-path.h
0N/A sp-hatch.h
0N/A sp-image.h
0N/A sp-item-group.h
0N/A sp-item-notify-moveto.h
0N/A sp-item-rm-unsatisfied-cns.h
0N/A sp-item-transform.h
0N/A sp-item-update-cns.h
0N/A sp-item.h
0N/A sp-line.h
0N/A sp-linear-gradient.h
0N/A sp-lpe-item.h
0N/A sp-marker-loc.h
0N/A sp-marker.h
0N/A sp-mask.h
0N/A sp-mesh-array.h
0N/A sp-mesh-patch.h
0N/A sp-mesh-row.h
0N/A sp-mesh.h
0N/A sp-metadata.h
0N/A sp-missing-glyph.h
0N/A sp-namedview.h
0N/A sp-object-group.h
1458N/A sp-object.h
1458N/A sp-offset.h
1458N/A sp-paint-server-reference.h
1458N/A sp-paint-server.h
1458N/A sp-path.h
1458N/A sp-pattern.h
1458N/A sp-polygon.h
1458N/A sp-polyline.h
1458N/A sp-radial-gradient.h
1458N/A sp-rect.h
1458N/A sp-root.h
1458N/A sp-script.h
1458N/A sp-shape.h
1458N/A sp-solid-color.h
1458N/A sp-spiral.h
1458N/A sp-star.h
1458N/A sp-stop.h
0N/A sp-string.h
0N/A sp-style-elem-test.h
0N/A sp-style-elem.h
0N/A sp-switch.h
0N/A sp-symbol.h
0N/A sp-tag.h
0N/A sp-tag-use.h
0N/A sp-tag-use-reference.h
0N/A sp-text.h
0N/A sp-textpath.h
0N/A sp-title.h
0N/A sp-tref-reference.h
0N/A sp-tref.h
0N/A sp-tspan.h
0N/A sp-use-reference.h
0N/A sp-use.h
0N/A viewbox.h
0N/A)
0N/A
0N/Aset(inkscape_SRC
0N/A attributes.cpp
0N/A axis-manip.cpp
0N/A box3d-side.cpp
0N/A box3d.cpp
0N/A color-profile.cpp
0N/A color.cpp
989N/A composite-undo-stack-observer.cpp
0N/A conditions.cpp
0N/A conn-avoid-ref.cpp
0N/A console-output-undo-observer.cpp
0N/A context-fns.cpp
0N/A desktop-events.cpp
0N/A desktop-style.cpp
0N/A desktop.cpp
989N/A device-manager.cpp
1564N/A dir-util.cpp
1564N/A document-subset.cpp
1564N/A document-undo.cpp
1564N/A document.cpp
1564N/A ege-color-prof-tracker.cpp
1564N/A event-log.cpp
1564N/A extract-uri.cpp
1564N/A file.cpp
0N/A filter-chemistry.cpp
0N/A filter-enums.cpp
0N/A gc-anchored.cpp
0N/A gc-finalized.cpp
0N/A gradient-chemistry.cpp
0N/A gradient-drag.cpp
0N/A graphlayout.cpp
0N/A guide-snapper.cpp
0N/A help.cpp
0N/A id-clash.cpp
0N/A inkscape.cpp
0N/A knot-holder-entity.cpp
0N/A knot-ptr.cpp
1564N/A knot.cpp
1564N/A knotholder.cpp
1564N/A layer-fns.cpp
1564N/A layer-manager.cpp
1564N/A layer-model.cpp
0N/A line-geometry.cpp
1564N/A line-snapper.cpp
1564N/A main-cmdlineact.cpp
1564N/A media.cpp
1564N/A message-context.cpp
0N/A message-stack.cpp
1668N/A mod360.cpp
0N/A object-hierarchy.cpp
0N/A object-snapper.cpp
0N/A path-chemistry.cpp
0N/A persp3d-reference.cpp
0N/A persp3d.cpp
0N/A perspective-line.cpp
0N/A preferences.cpp
0N/A prefix.cpp
0N/A print.cpp
0N/A profile-manager.cpp
0N/A proj_pt.cpp
0N/A pure-transform.cpp
0N/A rdf.cpp
0N/A removeoverlap.cpp
0N/A resource-manager.cpp
0N/A rubberband.cpp
0N/A satisfied-guide-cns.cpp
0N/A selcue.cpp
0N/A selection-chemistry.cpp
0N/A selection-describer.cpp
0N/A selection.cpp
0N/A seltrans-handles.cpp
0N/A seltrans.cpp
0N/A shortcuts.cpp
0N/A snap-preferences.cpp
0N/A snap.cpp
0N/A snapped-curve.cpp
0N/A snapped-line.cpp
0N/A snapped-point.cpp
0N/A snapper.cpp
0N/A style-internal.cpp
0N/A style.cpp
0N/A svg-view-widget.cpp
0N/A svg-view.cpp
0N/A text-chemistry.cpp
0N/A text-editing.cpp
0N/A transf_mat_3x4.cpp
0N/A unclump.cpp
0N/A unicoderange.cpp
0N/A uri-references.cpp
0N/A uri.cpp
0N/A vanishing-point.cpp
0N/A verbs.cpp
0N/A version.cpp
0N/A
0N/A # -------
0N/A # Headers
0N/A MultiPrinter.h
0N/A PylogFormatter.h
0N/A TRPIFormatter.h
0N/A attributes-test.h
0N/A attributes.h
0N/A axis-manip.h
0N/A bad-uri-exception.h
0N/A box3d-side.h
0N/A box3d.h
0N/A cms-color-types.h
0N/A cms-system.h
0N/A color-profile-cms-fns.h
0N/A color-profile-test.h
0N/A color-profile.h
0N/A color-rgba.h
0N/A color.h
0N/A colorspace.h
0N/A composite-undo-stack-observer.h
0N/A conditions.h
1483N/A conn-avoid-ref.h
1483N/A console-output-undo-observer.h
0N/A context-fns.h
0N/A decimal-round.h
0N/A desktop-events.h
0N/A desktop-style.h
1483N/A desktop.h
1483N/A device-manager.h
0N/A dir-util-test.h
0N/A dir-util.h
0N/A document-private.h
989N/A document-subset.h
0N/A document-undo.h
0N/A document.h
989N/A ege-color-prof-tracker.h
989N/A enums.h
989N/A event-log.h
989N/A event.h
989N/A extract-uri-test.h
989N/A extract-uri.h
0N/A file.h
0N/A fill-or-stroke.h
0N/A filter-chemistry.h
989N/A filter-enums.h
989N/A gc-anchored.h
989N/A gc-finalized.h
989N/A gradient-chemistry.h
989N/A gradient-drag.h
989N/A graphlayout.h
989N/A guide-snapper.h
989N/A help.h
989N/A helper-fns.h
989N/A icon-size.h
989N/A id-clash.h
989N/A inkscape-version.h
989N/A inkscape.h
989N/A isinf.h
989N/A knot-enums.h
989N/A knot-holder-entity.h
1363N/A knot-ptr.h
989N/A knot.h
989N/A knotholder.h
1363N/A layer-fns.h
989N/A layer-manager.h
989N/A layer-model.h
989N/A line-geometry.h
989N/A line-snapper.h
989N/A macros.h
989N/A main-cmdlineact.h
989N/A marker-test.h
989N/A media.h
989N/A menus-skeleton.h
989N/A message-context.h
989N/A message-stack.h
989N/A message.h
989N/A mod360-test.h
989N/A mod360.h
989N/A number-opt-number.h
989N/A object-hierarchy.h
989N/A object-snapper.h
989N/A object-test.h
989N/A path-chemistry.h
989N/A path-prefix.h
989N/A persp3d-reference.h
989N/A persp3d.h
989N/A perspective-line.h
989N/A preferences-skeleton.h
989N/A preferences-test.h
989N/A preferences.h
989N/A prefix.h
989N/A print.h
989N/A profile-manager.h
989N/A proj_pt.h
989N/A pure-transform.h
989N/A rdf.h
989N/A remove-last.h
989N/A removeoverlap.h
989N/A require-config.h
989N/A resource-manager.h
989N/A round-test.h
989N/A round.h
989N/A rubberband.h
989N/A satisfied-guide-cns.h
989N/A selcue.h
989N/A selection-chemistry.h
989N/A selection-describer.h
989N/A selection.h
989N/A seltrans-handles.h
989N/A seltrans.h
989N/A shortcuts.h
989N/A snap-candidate.h
989N/A snap-enums.h
989N/A snap-preferences.h
989N/A snap.h
989N/A snapped-curve.h
989N/A snapped-line.h
989N/A snapped-point.h
989N/A snapper.h
989N/A splivarot.h
989N/A streq.h
989N/A strneq.h
989N/A style-enums.h
989N/A style-internal.h
989N/A style-test.h
989N/A style.h
989N/A svg-profile.h
989N/A svg-view-widget.h
989N/A svg-view.h
989N/A syseq.h
989N/A test-helpers.h
989N/A text-chemistry.h
989N/A text-editing.h
989N/A text-tag-attributes.h
989N/A transf_mat_3x4.h
989N/A unclump.h
989N/A undo-stack-observer.h
989N/A unicoderange.h
989N/A uri-references.h
989N/A uri-test.h
989N/A uri.h
989N/A vanishing-point.h
989N/A verbs-test.h
989N/A verbs.h
989N/A version.h
989N/A)
989N/A
989N/Aif(WIN32)
989N/A list(APPEND inkscape_SRC
989N/A inkscape.rc
989N/A registrytool.cpp
989N/A #deptool.cpp
989N/A winconsole.cpp
989N/A winmain.cpp
989N/A
989N/A # -------
989N/A # Headers
989N/A registrytool.h
989N/A )
989N/Aendif()
989N/A
989N/A
989N/A# -----------------------------------------------------------------------------
989N/A# Generate version file
989N/A# -----------------------------------------------------------------------------
989N/A
989N/A# a custom target that is always built
989N/Aadd_custom_target(
989N/A inkscape_version ALL
989N/A COMMAND ${CMAKE_COMMAND}
989N/A -DINKSCAPE_SOURCE_DIR=${CMAKE_SOURCE_DIR}
989N/A -DINKSCAPE_BINARY_DIR=${CMAKE_BINARY_DIR}
989N/A -P ${CMAKE_SOURCE_DIR}/CMakeScripts/inkscape-version.cmake)
1202N/A
1202N/A# buildinfo.h is a generated file
1202N/Aset_source_files_properties(
1202N/A ${CMAKE_BINARY_DIR}/src/inkscape-version.cpp
1202N/A PROPERTIES GENERATED TRUE)
1202N/A
1202N/Alist(APPEND inkscape_SRC
1202N/A ${CMAKE_BINARY_DIR}/src/inkscape-version.cpp
1202N/A)
1202N/A
1202N/A
1202N/A# -----------------------------------------------------------------------------
1202N/A# Load in subdirectories
1202N/A# -----------------------------------------------------------------------------
1202N/A
1202N/A# All folders for internal inkscape
1458N/A# these call add_inkscape_source
1202N/Aadd_subdirectory(debug)
1202N/Aadd_subdirectory(display)
1202N/Aadd_subdirectory(extension)
1202N/Aadd_subdirectory(filters)
1202N/Aadd_subdirectory(helper)
1202N/Aadd_subdirectory(io)
1202N/Aadd_subdirectory(live_effects)
1202N/Aadd_subdirectory(svg)
1202N/Aadd_subdirectory(trace)
1202N/Aadd_subdirectory(ui)
1202N/Aadd_subdirectory(util)
1202N/Aadd_subdirectory(widgets)
1202N/Aadd_subdirectory(xml)
1202N/Aadd_subdirectory(2geom)
1202N/A
1202N/A
1202N/A# Directories containing lists files that describe building internal libraries
1458N/Aadd_subdirectory(libavoid)
1458N/Aadd_subdirectory(libcola)
1202N/Aadd_subdirectory(libcroco)
1202N/Aadd_subdirectory(inkgc)
1202N/Aadd_subdirectory(libgdl)
1202N/Aadd_subdirectory(libuemf)
1202N/Aadd_subdirectory(libvpsc)
1202N/Aadd_subdirectory(livarot)
1202N/Aadd_subdirectory(libnrtype)
1202N/Aadd_subdirectory(libdepixelize)
1202N/A
1202N/A
1202N/Aget_property(inkscape_global_SRC GLOBAL PROPERTY inkscape_global_SRC)
1202N/A
1202N/Aset(inkscape_SRC
1202N/A ${inkscape_global_SRC}
1202N/A ${inkscape_SRC}
1202N/A)
1202N/A
1202N/A# -----------------------------------------------------------------------------
1202N/A# Setup the executable
1202N/A# -----------------------------------------------------------------------------
1202N/A#add_inkscape_lib(sp_LIB "${sp_SRC}")
1202N/A#add_inkscape_lib(inkscape_LIB "${inkscape_SRC}")
1202N/A
1202N/A# Build everything except main and inkview.c in a shared library.
1202N/Aadd_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
1202N/A
1202N/A# make executables for inkscape and inkview
1202N/Aadd_executable(inkscape ${main_SRC} )
1202N/Aadd_executable(inkview inkview.cpp )
1202N/A
1458N/A
1202N/A
1202N/Aif(UNIX)
1202N/A# message after building.
1202N/Aadd_custom_command(
1202N/A TARGET inkscape
1202N/A POST_BUILD MAIN_DEPENDENCY inkscape
1202N/A COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files & scripts to ${CMAKE_INSTALL_PREFIX}'
1202N/A)
1202N/Aendif()
1202N/A
1202N/Aadd_dependencies(inkscape inkscape_version)
1202N/A
1202N/Aif(WITH_DBUS)
0N/A add_dependencies(inkscape inkscape_dbus)
989N/Aendif()
0N/A
0N/Aset(INKSCAPE_TARGET_LIBS
0N/A # order from automake
0N/A #sp_LIB
0N/A #nrtype_LIB
0N/A
0N/A #inkscape_LIB
0N/A #sp_LIB # annoying, we need both!
0N/A nrtype_LIB # annoying, we need both!
0N/A
0N/A croco_LIB
0N/A avoid_LIB
1483N/A cola_LIB
1483N/A vpsc_LIB
0N/A livarot_LIB
0N/A uemf_LIB
0N/A 2geom_LIB
989N/A depixelize_LIB
989N/A util_LIB
0N/A gc_LIB
0N/A ${INKSCAPE_LIBS}
0N/A)
2222N/A
2222N/Aif (NOT "${WITH_EXT_GDL}")
2222N/A # Insert it at the beginning of the list as the windows build fails otherwise
2222N/A list (INSERT INKSCAPE_TARGET_LIBS 0 "gdl_LIB")
2222N/Aendif()
2222N/A
2222N/A
2222N/A
2222N/A
2222N/A# Link the inkscape_base library against all external dependencies
2222N/Atarget_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})
2222N/A
2222N/A# Link inkscape and inkview against inkscape_base
0N/Atarget_link_libraries(inkscape inkscape_base )
0N/Atarget_link_libraries(inkview inkscape_base)
0N/A
0N/A#Define the installation
0N/Ainstall(
0N/A TARGETS inkscape_base inkscape inkview
0N/A RUNTIME DESTINATION bin
0N/A LIBRARY DESTINATION lib/inkscape
0N/A ARCHIVE DESTINATION lib/inkscape
0N/A )
0N/A
0N/A
0N/A