Code

Cmake: Fix some double linking flags
authorverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 3 May 2008 02:35:32 +0000 (02:35 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Sat, 3 May 2008 02:35:32 +0000 (02:35 +0000)
CMakeLists.txt
CMakeScripts/ConfigInkscapeDepends.cmake
src/CMakeLists.txt
src/extension/internal/CMakeLists.txt
src/libcroco/CMakeLists.txt

index 5af631808aab38a115874673b3dcad047946cffd..c911d2fc4b9baf791610074810a56c6841d97f0f 100644 (file)
@@ -15,8 +15,8 @@ SET(CMAKE_VERBOSE_MAKEFILE OFF)
 
 SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts)
 INCLUDE(ConfigPaths)\r
-INCLUDE(ConfigCompileFlags)\r
 INCLUDE(ConfigInkscapeDepends)\r
+INCLUDE(ConfigCompileFlags)
 \r
 #SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}")\r
 #IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")\r
@@ -51,3 +51,7 @@ po
 FOREACH(dirlist ${folders})\r
 ADD_SUBDIRECTORY(${dirlist})\r
 ENDFOREACH(dirlist)
+
+message(STATUS "3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
+message(STATUS "${INKSCAPE_LINK_FLAGS}")
+message(STATUS "3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
index bd2edfc482c43a82857178b132a748e17d2b3a3b..450bc1fb7d2b8915293c3c26a01701ada94258ce 100644 (file)
@@ -1,14 +1,16 @@
 SET(INKSCAPE_DEPENDS\r
-    gtk+-2.0\r
-    gtkmm-2.4\r
-    cairo\r
-    cairomm-1.0\r
+# the commented out below are required but pulled in with gtk+-2.0 & gtkmm-2.4
+# with some duplication that we can only remove if lookup each sub-lib individaully\r
+#    cairo\r
+#    cairomm-1.0\r
+#    glib-2.0
+#    glibmm-2.4
+    gtk+-2.0
+    gtkmm-2.4
     sigc++-2.0\r
     lcms\r
     libgc1c2\r
     libpng\r
-    glib-2.0\r
-    glibmm-2.4\r
     libxml-2.0\r
     libxslt\r
     ImageMagick++\r
@@ -45,8 +47,9 @@ FOREACH(dep ${INKSCAPE_DEPENDS})
         SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")\r
     ELSE("${dep}_FOUND")\r
         message(STATUS "${dep}: NOT FOUND")\r
-    ENDIF("${dep}_FOUND")\r
-ENDFOREACH(dep)\r
+    ENDIF("${dep}_FOUND")
+ENDFOREACH(dep)
+\r
 # Include non pkg-config dependencies:\r
 INCLUDE(FindBoost)\r
 INCLUDE(FindGC)\r
@@ -146,9 +149,4 @@ ENDIF(HAVE_CAIRO_PDF)
 # Create the two configuration files: config.h and inkscape_version.h\r
 # Create them in the binary root dir\r
 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)\r
-FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")\r
-
-#Linking check
-message(STATUS "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
-message(STATUS "${INKSCAPE_LINK_FLAGS}")
-message(STATUS "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
+FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")
index 4984daa17e3a3515d06f8c943e9c9ab0aa47850f..6e446b2848b056fc2c9b5a89379c8943dc911bed 100644 (file)
@@ -611,8 +611,8 @@ TARGET_LINK_LIBRARIES(inkscape
 )
 
 # make executable for INKVIEW
-ADD_EXECUTABLE(inkview inkview.cpp)
-TARGET_LINK_LIBRARIES(inkview\r
-       "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
-)\r
+#ADD_EXECUTABLE(inkview inkview.cpp)
+#TARGET_LINK_LIBRARIES(inkview\r
+#      "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
+#)\r
 
index 1ed68269a3b8e748b6204264deece08114501207..3d69be2b156115eb4b2687bdb27526de44e058e6 100644 (file)
@@ -1,32 +1,59 @@
 IF(WIN32)
 SET(EXT_INT_WIN
-win32.cpp)
+win32.cpp
+win32.h)
 ENDIF(WIN32)
 
 SET(extension_internal_SRC
 bluredge.cpp
+bluredge.h
 cairo-pdf-out.cpp
+cairo-pdf-out.h
 cairo-png-out.cpp
+cairo-png-out.h
 cairo-ps-out.cpp
+cairo-ps-out.h
 cairo-render-context.cpp
+cairo-render-context.h
 cairo-renderer.cpp
+cairo-renderer.h
 cairo-renderer-pdf-out.cpp
+cairo-renderer-pdf-out.h
+clear-n_.h
 emf-win32-inout.cpp
+emf-win32-inout.h
 emf-win32-print.cpp
+emf-win32-print.h
 eps-out.cpp
+eps-out.h
 gdkpixbuf-input.cpp
+gdkpixbuf-input.h
 gimpgrad.cpp
+gimpgrad.h
 grid.cpp
+grid.h
 latex-pstricks.cpp
+latex-pstricks.h
 latex-pstricks-out.cpp
+latex-pstricks-out.h
 odf.cpp
+odf.h
 pdf-cairo.cpp
+pdf-cairo.h
+pdfinput
 pdf-input-cairo.cpp
+pdf-input-cairo.h
 pov-out.cpp
+pov-out.h
 ps.cpp
+ps.h
 ps-out.cpp
+ps-out.h
 svg.cpp
+svg.h
 svgz.cpp
-${EXT_INT_WIN}
+svgz.h
 wpg-input.cpp
+wpg-input.h
+${EXT_INT_WIN}
 )
index 8d2d54a22f3c2511340fe89eac23f4788dfbb4b5..60a839bf9dd48e6c9a89bcffd8407cff5c3a67a0 100644 (file)
@@ -1,59 +1,59 @@
-SET(libcroco_SRC\r
-cr-additional-sel.c\r
-cr-additional-sel.h\r
-cr-attr-sel.c\r
-cr-attr-sel.h\r
-cr-cascade.c\r
-cr-cascade.h\r
-cr-declaration.c\r
-cr-declaration.h\r
-cr-doc-handler.c\r
-cr-doc-handler.h\r
-cr-enc-handler.c\r
-cr-enc-handler.h\r
-cr-fonts.c\r
-cr-fonts.h\r
-cr-input.c\r
-cr-input.h\r
-cr-libxml-node-iface.c\r
-cr-libxml-node-iface.h\r
-cr-node-iface.h\r
-cr-num.c\r
-cr-num.h\r
-cr-om-parser.c\r
-cr-om-parser.h\r
-cr-parser.c\r
-cr-parser.h\r
-cr-parsing-location.c\r
-cr-parsing-location.h\r
-cr-prop-list.c\r
-cr-prop-list.h\r
-cr-pseudo.c\r
-cr-pseudo.h\r
-cr-rgb.c\r
-cr-rgb.h\r
-cr-selector.c\r
-cr-selector.h\r
-cr-sel-eng.c\r
-cr-sel-eng.h\r
-cr-simple-sel.c\r
-cr-simple-sel.h\r
-cr-statement.c\r
-cr-statement.h\r
-cr-string.c\r
-cr-string.h\r
-cr-style.c\r
-cr-style.h\r
-cr-stylesheet.c\r
-cr-stylesheet.h\r
-cr-term.c\r
-cr-term.h\r
-cr-tknzr.c\r
-cr-tknzr.h\r
-cr-token.c\r
-cr-token.h\r
-cr-utils.c\r
-cr-utils.h\r
-libcroco.h\r
+SET(libcroco_SRC
+cr-additional-sel.c
+cr-additional-sel.h
+cr-attr-sel.c
+cr-attr-sel.h
+cr-cascade.c
+cr-cascade.h
+cr-declaration.c
+cr-declaration.h
+cr-doc-handler.c
+cr-doc-handler.h
+cr-enc-handler.c
+cr-enc-handler.h
+cr-fonts.c
+cr-fonts.h
+cr-input.c
+cr-input.h
+cr-libxml-node-iface.c
+cr-libxml-node-iface.h
+cr-node-iface.h
+cr-num.c
+cr-num.h
+cr-om-parser.c
+cr-om-parser.h
+cr-parser.c
+cr-parser.h
+cr-parsing-location.c
+cr-parsing-location.h
+cr-prop-list.c
+cr-prop-list.h
+cr-pseudo.c
+cr-pseudo.h
+cr-rgb.c
+cr-rgb.h
+cr-selector.c
+cr-selector.h
+cr-sel-eng.c
+cr-sel-eng.h
+cr-simple-sel.c
+cr-simple-sel.h
+cr-statement.c
+cr-statement.h
+cr-string.c
+cr-string.h
+cr-style.c
+cr-style.h
+cr-stylesheet.c
+cr-stylesheet.h
+cr-term.c
+cr-term.h
+cr-tknzr.c
+cr-tknzr.h
+cr-token.c
+cr-token.h
+cr-utils.c
+cr-utils.h
+libcroco.h
 )\r
 ADD_LIBRARY(croco STATIC ${libcroco_SRC})