summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua L. Blocher <verbalshadow@gmail.com>2009-01-12 01:25:52 +0000
committerverbalshadow <verbalshadow@users.sourceforge.net>2009-01-12 01:25:52 +0000
commit431b6e2c2cfe6c10b101aaaf296550b4ec44c862 (patch)
treef962e3973c84b43e63ab44a3e9681876edde076c
parentcopyedit (diff)
downloadinkscape-431b6e2c2cfe6c10b101aaaf296550b4ec44c862.tar.gz
inkscape-431b6e2c2cfe6c10b101aaaf296550b4ec44c862.zip
Cmake: Fixed the extra -l in the link command, plus a add linking for all sub-libs of inkscape.
(bzr r7120)
-rw-r--r--CMakeLists.txt16
-rw-r--r--CMakeScripts/ConfigChecks.cmake10
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake28
-rw-r--r--src/2geom/CMakeLists.txt4
-rw-r--r--src/CMakeLists.txt9
-rw-r--r--src/application/CMakeLists.txt4
-rw-r--r--src/bind/CMakeLists.txt4
-rw-r--r--src/debug/CMakeLists.txt4
-rw-r--r--src/dialogs/CMakeLists.txt4
-rw-r--r--src/display/CMakeLists.txt4
-rw-r--r--src/dom/CMakeLists.txt4
-rw-r--r--src/extension/CMakeLists.txt4
-rw-r--r--src/filters/CMakeLists.txt2
-rw-r--r--src/graphlayout/CMakeLists.txt4
-rw-r--r--src/helper/CMakeLists.txt4
-rw-r--r--src/inkjar/CMakeLists.txt4
-rw-r--r--src/io/CMakeLists.txt4
-rw-r--r--src/jabber_whiteboard/CMakeLists.txt4
-rw-r--r--src/libavoid/CMakeLists.txt2
-rw-r--r--src/libcola/CMakeLists.txt2
-rw-r--r--src/libcroco/CMakeLists.txt4
-rw-r--r--src/libgdl/CMakeLists.txt5
-rw-r--r--src/libnr/CMakeLists.txt2
-rw-r--r--src/libnrtype/CMakeLists.txt2
-rw-r--r--src/libvpsc/CMakeLists.txt18
-rw-r--r--src/livarot/CMakeLists.txt2
-rw-r--r--src/live_effects/CMakeLists.txt4
-rw-r--r--src/pedro/CMakeLists.txt4
-rw-r--r--src/removeoverlap/CMakeLists.txt4
-rw-r--r--src/svg/CMakeLists.txt4
-rw-r--r--src/trace/CMakeLists.txt4
-rw-r--r--src/ui/CMakeLists.txt4
-rw-r--r--src/util/CMakeLists.txt4
-rw-r--r--src/widgets/CMakeLists.txt4
-rw-r--r--src/xml/CMakeLists.txt4
35 files changed, 124 insertions, 66 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5b2622af..1b8053a02 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,17 +5,17 @@ SET(PROJECT_NAME inkscape)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+IF(COMMAND cmake_policy)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ENDIF(COMMAND cmake_policy)
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")
-INCLUDE(ConfigPaths)
-INCLUDE(DefineDependsandFlags)
-INCLUDE(HelperMacros)
-# Set to true if compiler/linker should enable profiling:
-#SET(ENABLE_PROFILING TRUE)
+INCLUDE(ConfigPaths) #Installation Paths
+INCLUDE(DefineDependsandFlags) #Includes, Compiler Flags, and Link Libraries
+INCLUDE(HelperMacros) #Misc Utility Macros
+
+OPTION(ENABLE_PROFILING "Turn on profiling" OFF) # Set to true if compiler/linker should enable profiling
#make dist target
SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")
diff --git a/CMakeScripts/ConfigChecks.cmake b/CMakeScripts/ConfigChecks.cmake
index 749c3c534..d20868767 100644
--- a/CMakeScripts/ConfigChecks.cmake
+++ b/CMakeScripts/ConfigChecks.cmake
@@ -1,7 +1,7 @@
#---------------
# From here on:
# Set all HAVE_XXX variables, to correctly set all defines in config.h
-SET(CMAKE_REQUIRED_INCLUDES ${INK_INCLUDES})
+#SET(CMAKE_REQUIRED_INCLUDES ${INK_INCLUDES})
INCLUDE (CheckIncludeFiles)
INCLUDE (CheckFunctionExists)
INCLUDE (CheckStructMember)
@@ -55,9 +55,9 @@ CHECK_INCLUDE_FILES(sys/stat.h HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
-CHECK_INCLUDE_FILES(zlib.h HAVE_ZLIB_H)
+CHECK_INCLUDE_FILES(zlib.h HAVE_ZLIB_H)
-#Enable pango defines, necessary for compilation on Win32, how about Linux?
+#Enable pango defines, necessary for compilation on Win32, how about Linux?
# yes but needs to be done a better way
IF (HAVE_CAIRO_PDF)
SET(PANGO_ENABLE_ENGINE TRUE)
@@ -67,5 +67,5 @@ ENDIF(HAVE_CAIRO_PDF)
# Create the two configuration files: config.h and inkscape_version.h
# Create them in the binary root dir
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
-FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")
-add_definitions(-DHAVE_CONFIG_H)
+FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")
+add_definitions(-DHAVE_CONFIG_H)
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index d4971416e..89f33114d 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -19,20 +19,20 @@ INCLUDE(IncludeJava)
# end Dependencies
#Linking
-LIST(APPEND INKSCAPE_LIBS
-${GTK2_LIBRARIES}
-${SIGC++_LIBRARIES}
-${GSL_LIBRARIES}
-${XML2_LIBRARIES}
-${XSLT_LIBRARIES}
-${IMAGEMAGICK++_LIBRARIES}
-${FREETYPE2_LIBRARIES}
-${GNOMEVFS2_LIBRARIES}
-${BOOST_LIBRARIES}
-${BOEHMGC_LIBRARIES}
-${PNG_LIBRARIES}
-${POPT_LIBRARIES}
-${OPENSSL_LIBRARIES}
+LIST(APPEND INKSCAPE_LIBS
+# ${GTK2_LIBRARIES}
+# ${SIGC++_LIBRARIES}
+# ${GSL_LIBRARIES}
+# ${XML2_LIBRARIES}
+# ${XSLT_LIBRARIES}
+# ${IMAGEMAGICK++_LIBRARIES}
+# ${FREETYPE2_LIBRARIES}
+# ${GNOMEVFS2_LIBRARIES}
+# ${BOOST_LIBRARIES}
+# ${BOEHMGC_LIBRARIES}
+# ${PNG_LIBRARIES}
+# ${POPT_LIBRARIES}
+# ${OPENSSL_LIBRARIES}
)
#Includes
diff --git a/src/2geom/CMakeLists.txt b/src/2geom/CMakeLists.txt
index e75c6174b..b5461487d 100644
--- a/src/2geom/CMakeLists.txt
+++ b/src/2geom/CMakeLists.txt
@@ -121,6 +121,6 @@ numeric/matrix.cpp
)
# make lib for 2geom
-ADD_LIBRARY(2geom ${LIB_TYPE} ${2GEOM_SRC})
+ADD_LIBRARY(2geom STATIC ${2GEOM_SRC})
#TARGET_LINK_LIBRARIES(2geom blas gsl)
-TARGET_LINK_LIBRARIES(2geom "${LINK_GSL} ${GTK2_LINK_FLAGS}")
+TARGET_LINK_LIBRARIES(2geom ${INKSCAPE_LIBS})
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9f7cc33dc..32c1f241b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -251,18 +251,19 @@ ENDFOREACH(srclistsrc)
SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})
-#message(status "${INKSCAPE_LIBS}")
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
- ${internalfolders} sp avoid cola croco gdl nr nrtype vpsc livarot ${INKSCAPE_LIBS}
+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
-# "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}
+# 2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}
#)
diff --git a/src/application/CMakeLists.txt b/src/application/CMakeLists.txt
index aa1a03911..c09279395 100644
--- a/src/application/CMakeLists.txt
+++ b/src/application/CMakeLists.txt
@@ -3,4 +3,6 @@ editor.cpp
application.cpp
app-prototype.cpp
)
-ADD_LIBRARY(application STATIC ${application_SRC}) \ No newline at end of file
+ADD_LIBRARY(application STATIC ${application_SRC})
+TARGET_LINK_LIBRARIES(application
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/bind/CMakeLists.txt b/src/bind/CMakeLists.txt
index 0708c3eff..a6b5b6883 100644
--- a/src/bind/CMakeLists.txt
+++ b/src/bind/CMakeLists.txt
@@ -2,4 +2,6 @@ SET(bind_SRC
dobinding.cpp
javabind.cpp
)
-ADD_LIBRARY(bind STATIC ${bind_SRC}) \ No newline at end of file
+ADD_LIBRARY(bind STATIC ${bind_SRC})
+TARGET_LINK_LIBRARIES(bind
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/debug/CMakeLists.txt b/src/debug/CMakeLists.txt
index 27088acf9..26c4e6934 100644
--- a/src/debug/CMakeLists.txt
+++ b/src/debug/CMakeLists.txt
@@ -7,4 +7,6 @@ sysv-heap.cpp
timestamp.cpp
gdk-event-latency-tracker.cpp
)
-ADD_LIBRARY(debug STATIC ${debug_SRC}) \ No newline at end of file
+ADD_LIBRARY(debug STATIC ${debug_SRC})
+TARGET_LINK_LIBRARIES(debug
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/dialogs/CMakeLists.txt b/src/dialogs/CMakeLists.txt
index d5007b13d..9d2ed9eb8 100644
--- a/src/dialogs/CMakeLists.txt
+++ b/src/dialogs/CMakeLists.txt
@@ -23,4 +23,6 @@ text-edit.cpp
unclump.cpp
xml-tree.cpp
)
-ADD_LIBRARY(dialogs STATIC ${dialogs_SRC}) \ No newline at end of file
+ADD_LIBRARY(dialogs STATIC ${dialogs_SRC})
+TARGET_LINK_LIBRARIES(dialogs
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/display/CMakeLists.txt b/src/display/CMakeLists.txt
index 66fa97462..9fa2304be 100644
--- a/src/display/CMakeLists.txt
+++ b/src/display/CMakeLists.txt
@@ -54,4 +54,6 @@ sp-ctrlline.cpp
sp-ctrlquadr.cpp
#testnr.cpp
)
-ADD_LIBRARY(display STATIC ${display_SRC}) \ No newline at end of file
+ADD_LIBRARY(display STATIC ${display_SRC})
+TARGET_LINK_LIBRARIES(display
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/dom/CMakeLists.txt b/src/dom/CMakeLists.txt
index 8a85390aa..7c434eb77 100644
--- a/src/dom/CMakeLists.txt
+++ b/src/dom/CMakeLists.txt
@@ -33,4 +33,6 @@ ${dom_odf_SRC}
${dom_util_SRC}
#${dom_work_SRC}
)
-ADD_LIBRARY(dom STATIC ${dom_SRC}) \ No newline at end of file
+ADD_LIBRARY(dom STATIC ${dom_SRC})
+TARGET_LINK_LIBRARIES(dom
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/extension/CMakeLists.txt b/src/extension/CMakeLists.txt
index d712eb61f..cd640d3d0 100644
--- a/src/extension/CMakeLists.txt
+++ b/src/extension/CMakeLists.txt
@@ -36,4 +36,6 @@ ${extension_internal_pdfinput_SRC}
${extension_param_SRC}
${extension_script_SRC}
)
-ADD_LIBRARY(extension STATIC ${extension_SRC}) \ No newline at end of file
+ADD_LIBRARY(extension STATIC ${extension_SRC})
+TARGET_LINK_LIBRARIES(extension
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/filters/CMakeLists.txt b/src/filters/CMakeLists.txt
index e9baa6f88..554402d35 100644
--- a/src/filters/CMakeLists.txt
+++ b/src/filters/CMakeLists.txt
@@ -21,3 +21,5 @@ tile.cpp
turbulence.cpp
)
ADD_LIBRARY(filters STATIC ${filters_SRC})
+TARGET_LINK_LIBRARIES(filters
+2geom ${INKSCAPE_LIBS})
diff --git a/src/graphlayout/CMakeLists.txt b/src/graphlayout/CMakeLists.txt
index 4ad15eb43..c8847a228 100644
--- a/src/graphlayout/CMakeLists.txt
+++ b/src/graphlayout/CMakeLists.txt
@@ -1,4 +1,6 @@
SET(graphlayout_SRC
graphlayout.cpp
)
-ADD_LIBRARY(graphlayout STATIC ${graphlayout_SRC}) \ No newline at end of file
+ADD_LIBRARY(graphlayout STATIC ${graphlayout_SRC})
+TARGET_LINK_LIBRARIES(graphlayout
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
index fe8179199..8f42a0d5a 100644
--- a/src/helper/CMakeLists.txt
+++ b/src/helper/CMakeLists.txt
@@ -24,4 +24,6 @@ sp-marshal.list
${CMAKE_CURRENT_BINARY_DIR}/sp-marshal.cpp
${CMAKE_CURRENT_BINARY_DIR}/sp-marshal.h
)
-ADD_LIBRARY(helper STATIC ${helper_SRC}) \ No newline at end of file
+ADD_LIBRARY(helper STATIC ${helper_SRC})
+TARGET_LINK_LIBRARIES(helper
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/inkjar/CMakeLists.txt b/src/inkjar/CMakeLists.txt
index 2d4f52ca3..7a1e86525 100644
--- a/src/inkjar/CMakeLists.txt
+++ b/src/inkjar/CMakeLists.txt
@@ -1,4 +1,6 @@
SET(inkjar_SRC
jar.cpp
)
-ADD_LIBRARY(inkjar STATIC ${inkjar_SRC}) \ No newline at end of file
+ADD_LIBRARY(inkjar STATIC ${inkjar_SRC})
+TARGET_LINK_LIBRARIES(inkjar
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/io/CMakeLists.txt b/src/io/CMakeLists.txt
index 8db1b518c..13b8f568b 100644
--- a/src/io/CMakeLists.txt
+++ b/src/io/CMakeLists.txt
@@ -11,4 +11,6 @@ sys.cpp
uristream.cpp
xsltstream.cpp
)
-ADD_LIBRARY(io STATIC ${io_SRC}) \ No newline at end of file
+ADD_LIBRARY(io STATIC ${io_SRC})
+TARGET_LINK_LIBRARIES(io
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/jabber_whiteboard/CMakeLists.txt b/src/jabber_whiteboard/CMakeLists.txt
index f428c84c6..5f4dfa981 100644
--- a/src/jabber_whiteboard/CMakeLists.txt
+++ b/src/jabber_whiteboard/CMakeLists.txt
@@ -18,4 +18,6 @@ session-file-selector.cpp
session-manager.cpp
${jabber_whiteboard_dialog_SRC}
)
-ADD_LIBRARY(jabber_whiteboard STATIC ${jabber_whiteboard_SRC}) \ No newline at end of file
+ADD_LIBRARY(jabber_whiteboard STATIC ${jabber_whiteboard_SRC})
+TARGET_LINK_LIBRARIES(jabber_whiteboard
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/libavoid/CMakeLists.txt b/src/libavoid/CMakeLists.txt
index db24527f1..df532c564 100644
--- a/src/libavoid/CMakeLists.txt
+++ b/src/libavoid/CMakeLists.txt
@@ -13,3 +13,5 @@ vertices.cpp
visibility.cpp
)
ADD_LIBRARY(avoid STATIC ${libavoid_SRC})
+TARGET_LINK_LIBRARIES(avoid
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/libcola/CMakeLists.txt b/src/libcola/CMakeLists.txt
index 564663aa0..b5f2e7f1f 100644
--- a/src/libcola/CMakeLists.txt
+++ b/src/libcola/CMakeLists.txt
@@ -8,3 +8,5 @@ shortest_paths.cpp
straightener.cpp
)
ADD_LIBRARY(cola STATIC ${libcola_SRC})
+TARGET_LINK_LIBRARIES(cola
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/libcroco/CMakeLists.txt b/src/libcroco/CMakeLists.txt
index cee248a2a..3ca55b4b5 100644
--- a/src/libcroco/CMakeLists.txt
+++ b/src/libcroco/CMakeLists.txt
@@ -26,5 +26,7 @@ cr-term.c
cr-tknzr.c
cr-token.c
cr-utils.c
-)
+)
ADD_LIBRARY(croco STATIC ${libcroco_SRC})
+TARGET_LINK_LIBRARIES(croco
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/libgdl/CMakeLists.txt b/src/libgdl/CMakeLists.txt
index 0c12944a5..dea93e6bc 100644
--- a/src/libgdl/CMakeLists.txt
+++ b/src/libgdl/CMakeLists.txt
@@ -18,8 +18,11 @@ gdl-dock-tablabel.c
gdl-i18n.c
gdl-stock.c
gdl-switcher.c
-gdl-tools.h libgdlmarshal.c
+gdl-tools.h
+libgdlmarshal.c
libgdltypebuiltins.c
${GDL_WIN}
)
ADD_LIBRARY(gdl STATIC ${libgdl_SRC})
+TARGET_LINK_LIBRARIES(gdl
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/libnr/CMakeLists.txt b/src/libnr/CMakeLists.txt
index d29b83da8..3bf483181 100644
--- a/src/libnr/CMakeLists.txt
+++ b/src/libnr/CMakeLists.txt
@@ -33,4 +33,4 @@ testnr.cpp
)
ADD_LIBRARY(nr STATIC ${libnr_SRC})
TARGET_LINK_LIBRARIES(nr
- "${INKSCAPE_LINK_FLAGS}" 2geom )
+2geom ${INKSCAPE_LIBS})
diff --git a/src/libnrtype/CMakeLists.txt b/src/libnrtype/CMakeLists.txt
index 28ff101c9..61ecb0091 100644
--- a/src/libnrtype/CMakeLists.txt
+++ b/src/libnrtype/CMakeLists.txt
@@ -16,4 +16,4 @@ TextWrapper.cpp
)
ADD_LIBRARY(nrtype STATIC ${libnrtype_SRC})
TARGET_LINK_LIBRARIES(nrtype
- "${INKSCAPE_LINK_FLAGS}" nr )
+nr ${INKSCAPE_LIBS})
diff --git a/src/libvpsc/CMakeLists.txt b/src/libvpsc/CMakeLists.txt
index 23b6f84cd..4c3398b0f 100644
--- a/src/libvpsc/CMakeLists.txt
+++ b/src/libvpsc/CMakeLists.txt
@@ -1,11 +1,13 @@
SET(libvpsc_SRC
-block.cpp
-blocks.cpp
-constraint.cpp
-csolve_VPSC.cpp
-generate-constraints.cpp
-remove_rectangle_overlap.cpp
-solve_VPSC.cpp
+block.cpp
+blocks.cpp
+constraint.cpp
+csolve_VPSC.cpp
+generate-constraints.cpp
+remove_rectangle_overlap.cpp
+solve_VPSC.cpp
variable.cpp
)
-ADD_LIBRARY(vpsc STATIC ${libvpsc_SRC})
+ADD_LIBRARY(vpsc STATIC ${libvpsc_SRC})
+TARGET_LINK_LIBRARIES(vpsc
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/livarot/CMakeLists.txt b/src/livarot/CMakeLists.txt
index d12df1c3b..6eaf84d1c 100644
--- a/src/livarot/CMakeLists.txt
+++ b/src/livarot/CMakeLists.txt
@@ -21,3 +21,5 @@ sweep-tree.cpp
sweep-tree-list.cpp
)
ADD_LIBRARY(livarot STATIC ${livarot_SRC})
+TARGET_LINK_LIBRARIES(nrtype
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/live_effects/CMakeLists.txt b/src/live_effects/CMakeLists.txt
index 80a982bc3..adf172247 100644
--- a/src/live_effects/CMakeLists.txt
+++ b/src/live_effects/CMakeLists.txt
@@ -31,4 +31,6 @@ lpe-dynastroke.cpp
spiro.cpp
${live_effects_parameter_SRC}
)
-ADD_LIBRARY(live_effects STATIC ${live_effects_SRC}) \ No newline at end of file
+ADD_LIBRARY(live_effects STATIC ${live_effects_SRC})
+TARGET_LINK_LIBRARIES(live_effects
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/pedro/CMakeLists.txt b/src/pedro/CMakeLists.txt
index 207afd451..cb9a01b2f 100644
--- a/src/pedro/CMakeLists.txt
+++ b/src/pedro/CMakeLists.txt
@@ -8,4 +8,6 @@ pedrodom.cpp
pedroutil.cpp
pedroxmpp.cpp
)
-ADD_LIBRARY(pedro STATIC ${pedro_SRC}) \ No newline at end of file
+ADD_LIBRARY(pedro STATIC ${pedro_SRC})
+TARGET_LINK_LIBRARIES(pedro
+${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/removeoverlap/CMakeLists.txt b/src/removeoverlap/CMakeLists.txt
index abb01eb55..7f71c29dc 100644
--- a/src/removeoverlap/CMakeLists.txt
+++ b/src/removeoverlap/CMakeLists.txt
@@ -1,4 +1,6 @@
SET(removeoverlap_SRC
removeoverlap.cpp
)
-ADD_LIBRARY(removeoverlap STATIC ${removeoverlap_SRC}) \ No newline at end of file
+ADD_LIBRARY(removeoverlap STATIC ${removeoverlap_SRC})
+TARGET_LINK_LIBRARIES(removeoverlap
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/svg/CMakeLists.txt b/src/svg/CMakeLists.txt
index f015646b8..9d5dc0b7b 100644
--- a/src/svg/CMakeLists.txt
+++ b/src/svg/CMakeLists.txt
@@ -13,4 +13,6 @@ svg-length.cpp
svg-path.cpp
#test-stubs.cpp
)
-ADD_LIBRARY(svg STATIC ${svg_SRC}) \ No newline at end of file
+ADD_LIBRARY(svg STATIC ${svg_SRC})
+TARGET_LINK_LIBRARIES(svg
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/trace/CMakeLists.txt b/src/trace/CMakeLists.txt
index 0eb445dee..3cb378995 100644
--- a/src/trace/CMakeLists.txt
+++ b/src/trace/CMakeLists.txt
@@ -8,4 +8,6 @@ siox.cpp
trace.cpp
${trace_potrace_SRC}
)
-ADD_LIBRARY(trace STATIC ${trace_SRC}) \ No newline at end of file
+ADD_LIBRARY(trace STATIC ${trace_SRC})
+TARGET_LINK_LIBRARIES(trace
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt
index f788a04bf..01dadb7c2 100644
--- a/src/ui/CMakeLists.txt
+++ b/src/ui/CMakeLists.txt
@@ -19,4 +19,6 @@ ${ui_dialog_SRC}
${ui_view_SRC}
${ui_widget_SRC}
)
-ADD_LIBRARY(ui STATIC ${ui_SRC}) \ No newline at end of file
+ADD_LIBRARY(ui STATIC ${ui_SRC})
+TARGET_LINK_LIBRARIES(ui
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index 5e193a8f2..18237ac75 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -2,4 +2,6 @@ SET(util_SRC
share.cpp
units.cpp
)
-ADD_LIBRARY(util STATIC ${util_SRC}) \ No newline at end of file
+ADD_LIBRARY(util STATIC ${util_SRC})
+TARGET_LINK_LIBRARIES(util
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt
index 24c1d30d2..45f013f16 100644
--- a/src/widgets/CMakeLists.txt
+++ b/src/widgets/CMakeLists.txt
@@ -31,4 +31,6 @@ sp-xmlview-content.cpp
sp-xmlview-tree.cpp
toolbox.cpp
)
-ADD_LIBRARY(widgets STATIC ${widgets_SRC}) \ No newline at end of file
+ADD_LIBRARY(widgets STATIC ${widgets_SRC})
+TARGET_LINK_LIBRARIES(widgets
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file
diff --git a/src/xml/CMakeLists.txt b/src/xml/CMakeLists.txt
index 4036cb1af..775a4e72f 100644
--- a/src/xml/CMakeLists.txt
+++ b/src/xml/CMakeLists.txt
@@ -16,4 +16,6 @@ simple-document.cpp
simple-node.cpp
subtree.cpp
)
-ADD_LIBRARY(xml STATIC ${xml_SRC}) \ No newline at end of file
+ADD_LIBRARY(xml STATIC ${xml_SRC})
+TARGET_LINK_LIBRARIES(xml
+2geom ${INKSCAPE_LIBS}) \ No newline at end of file