Code

fix parameter ranges, copyedit
[inkscape.git] / src / CMakeLists.txt
index e30df661ecfe9d22f889329b74417b54d35bbcf8..32c1f241b8251c9e22b59cb7d0332db4a3031208 100644 (file)
@@ -228,16 +228,10 @@ ui
 util\r
 widgets\r
 xml\r
+2geom\r
 )\r
-\r
-FOREACH(srclistsrc ${internalfolders})\r
-  ADD_SUBDIRECTORY(${srclistsrc})\r
-ENDFOREACH(srclistsrc)\r
-\r
-SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})\r
-# All directories containing lists files that describe building internal libraries\r
 SET(libfolders\r
-2geom\r
+# Directories containing lists files that describe building internal libraries\r
 libavoid\r
 libcola\r
 libcroco\r
@@ -248,24 +242,28 @@ libvpsc
 livarot\r
 )\r
 \r
-FOREACH(dirlistsrc ${libfolders})\r
-  ADD_SUBDIRECTORY(${dirlistsrc})\r
-ENDFOREACH(dirlistsrc)\r
+SET(dirs ${internalfolders} ${libfolders}\r
+)\r
+\r
+FOREACH(srclistsrc ${dirs})\r
+  ADD_SUBDIRECTORY(${srclistsrc})\r
+ENDFOREACH(srclistsrc)\r
+\r
+SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})\r
 \r
-message(status "${INKSCAPE_LIBS}")\r
 ADD_LIBRARY(sp STATIC ${SP_SRC})\r
-TARGET_LINK_LIBRARIES(sp \r
-        2geom avoid cola croco gdl nr nrtype vpsc livarot\r
+TARGET_LINK_LIBRARIES(sp\r
+nr nrtype avoid cola croco gdl vpsc livarot ${internalfolders} ${INKSCAPE_LIBS}\r
 )\r
 # make executable for INKSCAPE\r
 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})\r
 TARGET_LINK_LIBRARIES(inkscape\r
-        2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}\r
+nr nrtype sp avoid cola croco gdl vpsc livarot ${internalfolders} ${INKSCAPE_LIBS}\r
 )\r
 \r
 # make executable for INKVIEW\r
 #ADD_EXECUTABLE(inkview inkview.cpp)\r
 #TARGET_LINK_LIBRARIES(inkview\r
-#      "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}\r
+#      2geom avoid cola croco gdl nr nrtype vpsc livarot sp ${internalfolders}\r
 #)\r
 \r