0N/A# -----------------------------------------------------------------------------
0N/A# -----------------------------------------------------------------------------
989N/A list(APPEND inkscape_SRC
989N/A# -----------------------------------------------------------------------------
989N/A# -----------------------------------------------------------------------------
989N/A# a custom target that is always built
989N/A COMMAND ${CMAKE_COMMAND}
989N/A -DINKSCAPE_SOURCE_DIR=${CMAKE_SOURCE_DIR}
989N/A -DINKSCAPE_BINARY_DIR=${CMAKE_BINARY_DIR}
1202N/Aset_source_files_properties(
1202N/A# -----------------------------------------------------------------------------
1202N/A# -----------------------------------------------------------------------------
1202N/A# All folders for internal inkscape
1458N/A# these call add_inkscape_source
1202N/Aadd_subdirectory(live_effects)
1202N/A# Directories containing lists files that describe building internal libraries
1202N/Aadd_subdirectory(libdepixelize)
1202N/Aget_property(inkscape_global_SRC GLOBAL PROPERTY inkscape_global_SRC)
1202N/A# -----------------------------------------------------------------------------
1202N/A# -----------------------------------------------------------------------------
1202N/A#add_inkscape_lib(sp_LIB "${sp_SRC}")
1202N/A#add_inkscape_lib(inkscape_LIB "${inkscape_SRC}")
1202N/Aadd_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC})
1202N/A# make executables for inkscape and inkview
1202N/Aadd_executable(inkscape ${main_SRC} )
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/Aadd_dependencies(inkscape inkscape_version)
0N/A add_dependencies(inkscape inkscape_dbus)
0N/Aset(INKSCAPE_TARGET_LIBS
0N/A # order from automake
0N/A #sp_LIB # annoying, we need both!
0N/A nrtype_LIB # annoying, we need both!
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/A# Link the inkscape_base library against all external dependencies
2222N/Atarget_link_libraries(inkscape_base ${INKSCAPE_TARGET_LIBS})
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#Define the installation
0N/A TARGETS inkscape_base inkscape inkview
0N/A RUNTIME DESTINATION bin