CMakeLists.txt revision 5a931dcbd585584fed4990ae6cd1717a3918f90a
IF(WIN32)
SET(ONLY_WIN
ELSEIF(WIN32)
SET(ONLY_WIN)
ENDIF(WIN32)
SET(SP_SRC
)
SET(INKSCAPE_SRC
extension
${ONLY_WIN}
)
# All folders for internal inkscape
SET(internalfolders
#algorithms
#api
application
bind
debug
dialogs
display
dom
extension
filters
graphlayout
helper
inkjar
io
jabber_whiteboard
live_effects
pedro
removeoverlap
svg
trace
#traits
ui
util
widgets
xml
2geom
)
SET(libfolders
# Directories containing lists files that describe building internal libraries
libavoid
libcola
libcroco
libgdl
libnr
libnrtype
libvpsc
livarot
)
SET(dirs ${internalfolders} ${libfolders}
)
FOREACH(srclistsrc ${dirs})
ADD_SUBDIRECTORY(${srclistsrc})
ENDFOREACH(srclistsrc)
SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})
ADD_LIBRARY(sp STATIC ${SP_SRC})
TARGET_LINK_LIBRARIES(sp
nr nrtype avoid cola croco gdl vpsc livarot ${internalfolders} ${INKSCAPE_LIBS}
)
# make executable for INKSCAPE
ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})
TARGET_LINK_LIBRARIES(inkscape
nr nrtype sp avoid cola croco gdl vpsc livarot ${internalfolders} ${INKSCAPE_LIBS}
)
# make executable for INKVIEW
#ADD_EXECUTABLE(inkview inkview.cpp)
#TARGET_LINK_LIBRARIES(inkview
# 2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}
#)