summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee9d21d)
raw | patch | inline | side by side (parent: ee9d21d)
author | verbalshadow <verbalshadow@users.sourceforge.net> | |
Thu, 27 Mar 2008 21:33:21 +0000 (21:33 +0000) | ||
committer | verbalshadow <verbalshadow@users.sourceforge.net> | |
Thu, 27 Mar 2008 21:33:21 +0000 (21:33 +0000) |
24 files changed:
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,51 @@
+PROJECT(inkscape CXX)\r
+SET(INKSCAPE_VERSION 0.46+devel)\r
+SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4)\r
+SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)\r
+\r
+SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)\r
+SET(CMAKE_SKIP_RPATH:BOOL OFF)\r
+SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts)\r
+INCLUDE(ConfigInkscapeDepends)\r
+\r
+INCLUDE_DIRECTORIES (src/)\r
+LINK_DIRECTORIES (src/)\r
+\r
+# Set Compiler Flags\r
+SET(CMAKE_CXX_FLAGS "${GTK2_CFLAGS} ${cairo_CFLAGS} -Wall")\r
+SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")\r
+\r
+#SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}")\r
+#IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")\r
+# SET(CMAKE_AR "ar")\r
+# SET(CMAKE_RANLIB "ranlib")\r
+#ENDIF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")\r
+\r
+#make dist target\r
+SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")\r
+ADD_CUSTOM_TARGET(dist svn export --force -q "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}" \r
+ COMMAND tar -czf "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}.tar.gz" -C "${CMAKE_BINARY_DIR}" --exclude=".hidden" ${INKSCAPE_DIST_PREFIX}\r
+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")\r
+\r
+#make unistall target\r
+CONFIGURE_FILE(\r
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"\r
+ "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"\r
+ IMMEDIATE @ONLY)\r
+\r
+ADD_CUSTOM_TARGET(uninstall\r
+ "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")\r
+
+SET(folders
+src
+cxxtest
+share
+doc
+#doc-pak
+po
+)
+\r
+FOREACH(dirlist ${folders})
+ADD_SUBDIRECTORY(${dirlist})
+ENDFOREACH(dirlist)
+
diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake
--- /dev/null
@@ -0,0 +1,52 @@
+SET(INKSCAPE_DEPENDS gtk+-2.0 gtkmm-2.4 cairo cairomm-1.0 sigc++-2.0 lcms libgc1c2 libpng glib boost libxslt ImageMagick++ libpopt freetype2)
+SET(INKSCAPE_OPTIONAL gnome-vfs-2.0 libwpg-0.1 libssl)
+include(UsePkgConfig)
+
+# Dependencies Packages
+message(STATUS "")
+message(STATUS "")
+message(STATUS "Checking For REQUIRED Libraries for Building Inkscape.")
+FOREACH(dep ${INKSCAPE_DEPENDS})
+ # This is a hack due to a bug in Cmake vars system, Uncomment if using a version older than 2.4 //verbalshadow
+# IF("${dep}" MATCHES "gtk\\+-2.0")
+# SET(dep_name "GTK2")
+# ELSE("${dep}" MATCHES "gtk\\+-2.0")
+ SET(dep_name "${dep}")
+# ENDIF("${dep}" MATCHES "gtk\\+-2.0")
+
+ PKGCONFIG_FOUND(${dep} "${dep}_FOUND")
+ PKGCONFIG(${dep} "${dep_name}_INCLUDE_DIR" "${dep_name}_LINK_DIR" "${dep_name}_LINK_FLAGS" "${dep_name}_CFLAGS")
+# PKGCONFIG_VERSION(${dep} "${dep}_VERSION")
+ IF("${dep}_FOUND")
+ message(STATUS "${dep}: FOUND")
+ ELSE("${dep}_FOUND")
+ message(STATUS "${dep}: NOT FOUND")
+ ENDIF("${dep}_FOUND")
+ENDFOREACH(dep)
+# end Dependencies
+
+# Optional Dependencies Packages
+message(STATUS "")
+message(STATUS "")
+message(STATUS "Checking For OPTIONAL Libraries for Building Inkscape.")
+message(STATUS "These add additional functionality to Inkscape.")
+FOREACH(opt ${INKSCAPE_OPTIONAL})
+ SET(opt_name "${opt}")
+ PKGCONFIG_FOUND(${opt} "${opt}_FOUND")
+ PKGCONFIG(${opt} "${opt_name}_INCLUDE_DIR" "${opt_name}_LINK_DIR" "${opt_name}_LINK_FLAGS" "${opt_name}_CFLAGS")
+# PKGCONFIG_VERSION(${opt} "${opt}_VERSION")
+ IF("${opt}_FOUND")
+ message(STATUS "${opt}: FOUND")
+ ELSE("${opt}_FOUND")
+ message(STATUS "${opt}: NOT FOUND")
+ ENDIF("${opt}_FOUND")
+ENDFOREACH(opt)
+# end Optional Dependencies
+message(STATUS "")
+message(STATUS "")
+INCLUDE (CheckIncludeFiles)
+# usage: CHECK_INCLUDE_FILES (<header> <RESULT_VARIABLE> )
+
+#CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
+#CHECK_INCLUDE_FILES ("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
+#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
diff --git a/CMakeScripts/FindBoost.cmake b/CMakeScripts/FindBoost.cmake
--- /dev/null
@@ -0,0 +1,42 @@
+# - Find Boost libraries
+# Go hunting for boost compoments
+# Defines:
+# BOOST_INCLUDE
+
+FIND_PATH(BOOST_INCLUDE_DIR boost/weak_ptr.hpp
+ /usr/include
+ /usr/local/include
+ C:\\Boost\\Include
+ C:\\Boost\\include\\boost-1_33_1 )
+
+
+IF(MINGW)
+ SET (BOOST_ROOT C:\\Boost)
+ FIND_LIBRARY( BOOST_PYTHON_LIBRARY
+ libboost_python-mgw
+ PATHS ${BOOST_ROOT}\\lib )
+ FIND_LIBRARY( BOOST_PYTHON_LIBRARY_DEBUG
+ libboost_python-mgw-d
+ PATHS ${BOOST_ROOT}\\lib )
+ELSE(MINGW)
+ FIND_LIBRARY( BOOST_PYTHON_LIBRARY NAMES boost_python
+ PATHS /usr/lib /usr/local/lib C:\\Boost\\lib )
+ FIND_LIBRARY( BOOST_PYTHON_LIBRARY_DEBUG NAMES boost_python-d
+ PATHS /usr/lib /usr/local/lib C:\\Boost\\lib )
+ENDIF(MINGW)
+
+IF (BOOST_INCLUDE_DIR)
+ SET(BOOST_FOUND TRUE)
+ENDIF (BOOST_INCLUDE_DIR)
+
+IF (BOOST_FOUND)
+ IF (NOT Boost_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Boost: ${BOOST_INCLUDE_DIR}")
+ ENDIF (NOT Boost_FIND_QUIETLY)
+ELSE(BOOST_FOUND)
+ IF (Boost_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find Boost")
+ ENDIF (Boost_FIND_REQUIRED)
+ENDIF (BOOST_FOUND)
+
+
diff --git a/CMakeScripts/FindGTK2.cmake b/CMakeScripts/FindGTK2.cmake
--- /dev/null
@@ -0,0 +1,348 @@
+#
+# try to find GTK2 (and glib) and GTK2GLArea
+#
+# GTK2_INCLUDE_DIRS - Directories to include to use GTK2
+# GTK2_LIBRARIES - Files to link against to use GTK2
+# GTK2_FOUND - If false, don't try to use GTK2
+# GTK2_GL_FOUND - If false, don't try to use GTK2's GL features
+#
+###################################################################
+#
+# Copyright (c) 2004 Jan Woetzel
+# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+#
+###################################################################
+#
+# Copyright (c) 2004 Jan Woetzel
+# Copyright (c) 2006 Andreas Schneider <mail@cynapses.org>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+#
+# * Neither the name of the <ORGANIZATION> nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+
+IF (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
+ # in cache already
+ SET(GTK2_FOUND TRUE)
+ELSE (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
+ IF(UNIX)
+ # use pkg-config to get the directories and then use these values
+ # in the FIND_PATH() and FIND_LIBRARY() calls
+ INCLUDE(UsePkgConfig)
+
+ PKGCONFIG(gtk+-2.0 _GTK22IncDir _GTK22LinkDir _GTK22LinkFlags _GTK22Cflags)
+
+ FIND_PATH(GTK2_GTK_INCLUDE_PATH gtk/gtk.h
+ $ENV{GTK2_HOME}
+ ${_GTK22IncDir}
+ /usr/include/gtk-2.0
+ /usr/local/include/gtk-2.0
+ /opt/gnome/include/gtk-2.0
+ )
+
+ # Some Linux distributions (e.g. Red Hat) have glibconfig.h
+ # and glib.h in different directories, so we need to look
+ # for both.
+ # - Atanas Georgiev <atanas@cs.columbia.edu>
+ PKGCONFIG(glib-2.0 _GLIB2IncDir _GLIB2inkDir _GLIB2LinkFlags _GLIB2Cflags)
+ PKGCONFIG(gmodule-2.0 _GMODULE2IncDir _GMODULE2inkDir _GMODULE2LinkFlags _GMODULE2Cflags)
+ SET(GDIR /opt/gnome/lib/glib-2.0/include)
+ FIND_PATH(GTK2_GLIBCONFIG_INCLUDE_PATH glibconfig.h
+ ${_GLIB2IncDir}
+ /opt/gnome/lib64/glib-2.0/include
+ /opt/gnome/lib/glib-2.0/include
+ /usr/lib64/glib-2.0/include
+ /usr/lib/glib-2.0/include
+ )
+ #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}")
+
+ FIND_PATH(GTK2_GLIB_INCLUDE_PATH glib.h
+ ${_GLIB2IncDir}
+ /opt/gnome/include/glib-2.0
+ /usr/include/glib-2.0
+ )
+ #MESSAGE(STATUS "DEBUG: GTK2_GLIBCONFIG_INCLUDE_PATH = ${GTK2_GLIBCONFIG_INCLUDE_PATH}")
+
+ FIND_PATH(GTK2_GTKGL_INCLUDE_PATH gtkgl/gtkglarea.h
+ ${_GLIB2IncDir}
+ /usr/include
+ /usr/local/include
+ /usr/openwin/share/include
+ /opt/gnome/include
+ )
+
+ PKGCONFIG(pango _PANGOIncDir _PANGOinkDir _PANGOLinkFlags _PANGOCflags)
+
+ FIND_PATH(GTK2_PANGO_INCLUDE_PATH pango/pango.h
+ ${_PANGOIncDir}
+ /opt/gnome/include/pango-1.0
+ /usr/include/pango-1.0
+ )
+
+ PKGCONFIG(gdk-2.0 _GDK2IncDir _GDK2inkDir _GDK2LinkFlags _GDK2Cflags)
+
+ FIND_PATH(GTK2_GDKCONFIG_INCLUDE_PATH gdkconfig.h
+ ${_GDK2IncDir}
+ /opt/gnome/lib/gtk-2.0/include
+ /opt/gnome/lib64/gtk-2.0/include
+ /usr/lib/gtk-2.0/include
+ /usr/lib64/gtk-2.0/include
+ )
+
+ PKGCONFIG(cairo _CAIROIncDir _CAIROinkDir _CAIROLinkFlags _CAIROCflags)
+
+ FIND_PATH(GTK2_CAIRO_INCLUDE_PATH cairo.h
+ ${_CAIROIncDir}
+ /opt/gnome/include/cairo
+ /usr/include
+ /usr/include/cairo
+ )
+ #MESSAGE(STATUS "DEBUG: GTK2_CAIRO_INCLUDE_PATH = ${GTK2_CAIRO_INCLUDE_PATH}")
+
+ PKGCONFIG(atk _ATKIncDir _ATKinkDir _ATKLinkFlags _ATKCflags)
+
+ FIND_PATH(GTK2_ATK_INCLUDE_PATH atk/atk.h
+ ${_ATKIncDir}
+ /opt/gnome/include/atk-1.0
+ /usr/include/atk-1.0
+ )
+ #MESSAGE(STATUS "DEBUG: GTK2_ATK_INCLUDE_PATH = ${GTK2_ATK_INCLUDE_PATH}")
+
+ FIND_LIBRARY(GTK2_GTKGL_LIBRARY
+ NAMES
+ gtkgl
+ PATHS
+ ${_GTK22IncDir}
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_GTK_LIBRARY
+ NAMES
+ gtk-x11-2.0
+ PATHS
+ ${_GTK22LinkDir}
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_GDK_LIBRARY
+ NAMES
+ gdk-x11-2.0
+ PATHS
+ ${_GDK2LinkDir}
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_GMODULE_LIBRARY
+ NAMES
+ gmodule-2.0
+ PATHS
+ ${_GMODULE2inkDir}
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_GLIB_LIBRARY
+ NAMES
+ glib-2.0
+ PATHS
+ ${_GLIB2inkDir}
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_Xi_LIBRARY
+ NAMES
+ Xi
+ PATHS
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ FIND_LIBRARY(GTK2_GTHREAD_LIBRARY
+ NAMES
+ gthread-2.0
+ PATHS
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+
+ FIND_LIBRARY(GTK2_GOBJECT_LIBRARY
+ NAMES
+ gobject-2.0
+ PATHS
+ /usr/lib
+ /usr/local/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
+ /opt/gnome/lib
+ )
+
+ IF(GTK2_GTK_INCLUDE_PATH)
+ IF(GTK2_GLIBCONFIG_INCLUDE_PATH)
+ IF(GTK2_GLIB_INCLUDE_PATH)
+ IF(GTK2_GTK_LIBRARY)
+ IF(GTK2_GLIB_LIBRARY)
+ IF(GTK2_PANGO_INCLUDE_PATH)
+ IF(GTK2_ATK_INCLUDE_PATH)
+ IF(GTK2_CAIRO_INCLUDE_PATH)
+ # Assume that if gtk and glib were found, the other
+ # supporting libraries have also been found.
+
+ SET(GTK2_FOUND TRUE)
+
+ SET(GTK2_INCLUDE_DIRS
+ ${GTK2_GTK_INCLUDE_PATH}
+ ${GTK2_GLIBCONFIG_INCLUDE_PATH}
+ ${GTK2_GLIB_INCLUDE_PATH}
+ ${GTK2_PANGO_INCLUDE_PATH}
+ ${GTK2_GDKCONFIG_INCLUDE_PATH}
+ ${GTK2_ATK_INCLUDE_PATH}
+ ${GTK2_CAIRO_INCLUDE_PATH}
+ CACHE INTERNAL "The include directories for GTK2"
+ )
+
+ SET(GTK2_LIBRARIES
+ ${GTK2_GTK_LIBRARY}
+ ${GTK2_GDK_LIBRARY}
+ ${GTK2_GLIB_LIBRARY}
+ )
+ #${GTK2_GOBJECT_LIBRARY})
+
+ IF(GTK2_GMODULE_LIBRARY)
+ SET(GTK2_LIBRARIES
+ ${GTK2_LIBRARIES}
+ ${GTK2_GMODULE_LIBRARY}
+ )
+ ENDIF(GTK2_GMODULE_LIBRARY)
+
+ IF(GTK2_GTHREAD_LIBRARY)
+ SET(GTK2_LIBRARIES
+ ${GTK2_LIBRARIES}
+ ${GTK2_GTHREAD_LIBRARY}
+ )
+ SET(GTK2_LIBRARIES ${GTK2_LIBRARIES}
+ CACHE INTERNAL "The libraries for GTK2"
+ )
+ ENDIF(GTK2_GTHREAD_LIBRARY)
+ ELSE(GTK2_CAIRO_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find cairo")
+ ENDIF(GTK2_CAIRO_INCLUDE_PATH)
+ ELSE(GTK2_ATK_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find atk")
+ ENDIF(GTK2_ATK_INCLUDE_PATH)
+ ELSE(GTK2_PANGO_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find pango includes")
+ ENDIF(GTK2_PANGO_INCLUDE_PATH)
+ ELSE(GTK2_GLIB_LIBRARY)
+ MESSAGE(STATUS "Can not find glib lib")
+ ENDIF(GTK2_GLIB_LIBRARY)
+ ELSE(GTK2_GTK_LIBRARY)
+ MESSAGE(STATUS "Can not find gtk lib")
+ ENDIF(GTK2_GTK_LIBRARY)
+ ELSE(GTK2_GLIB_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find glib includes")
+ ENDIF(GTK2_GLIB_INCLUDE_PATH)
+ ELSE(GTK2_GLIBCONFIG_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find glibconfig")
+ ENDIF(GTK2_GLIBCONFIG_INCLUDE_PATH)
+ ELSE (GTK2_GTK_INCLUDE_PATH)
+ MESSAGE(STATUS "Can not find gtk includes")
+ ENDIF (GTK2_GTK_INCLUDE_PATH)
+
+ IF (GTK2_FOUND)
+ IF (NOT GTK2_FIND_QUIETLY)
+ MESSAGE(STATUS "Found GTK2: ${GTK2_LIBRARIES}")
+ ENDIF (NOT GTK2_FIND_QUIETLY)
+ ELSE (GTK2_FOUND)
+ IF (GTK2_FIND_REQUIRED)
+ MESSAGE(SEND_ERROR "Could NOT find GTK2")
+ ENDIF (GTK2_FIND_REQUIRED)
+ ENDIF (GTK2_FOUND)
+
+ MARK_AS_ADVANCED(
+ GTK2_GDK_LIBRARY
+ GTK2_GLIB_INCLUDE_PATH
+ GTK2_GLIB_LIBRARY
+ GTK2_GLIBCONFIG_INCLUDE_PATH
+ GTK2_GMODULE_LIBRARY
+ GTK2_GTHREAD_LIBRARY
+ GTK2_Xi_LIBRARY
+ GTK2_GTK_INCLUDE_PATH
+ GTK2_GTK_LIBRARY
+ GTK2_GTKGL_INCLUDE_PATH
+ GTK2_GTKGL_LIBRARY
+ GTK2_ATK_INCLUDE_PATH
+ GTK2_GDKCONFIG_INCLUDE_PATH
+ #GTK2_GOBJECT_LIBRARY
+ GTK2_PANGO_INCLUDE_PATH
+ )
+ ENDIF(UNIX)
+ENDIF (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
+
+# vim:et ts=2 sw=2 comments=\:\#
diff --git a/CMakeScripts/FindPython.cmake b/CMakeScripts/FindPython.cmake
--- /dev/null
@@ -0,0 +1,13 @@
+# figure out Python flags
+FIND_PACKAGE(PythonInterp)
+IF(PYTHONINTERP_FOUND)
+ EXEC_PROGRAM(${PYTHON_EXECUTABLE}
+ ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LIBS
+ OUTPUT_VARIABLE PYTHON_LINK_LIBRARIES )
+ EXEC_PROGRAM(${PYTHON_EXECUTABLE}
+ ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LINKFORSTATIC
+ OUTPUT_VARIABLE PYTHON_LINKFORSTATIC )
+ELSE(PYTHONINTERP_FOUND)
+ SET(PYTHON_LINK_LIBRARIES "")
+ SET(PYTHON_LINKFORSTATIC "")
+ENDIF(PYTHONINTERP_FOUND)
diff --git a/CMakeScripts/UsePkgConfig.cmake b/CMakeScripts/UsePkgConfig.cmake
--- /dev/null
@@ -0,0 +1,119 @@
+# - pkg-config module for CMake
+#
+# Defines the following macros:
+#
+# PKGCONFIG_FOUND(package found)
+# PKGCONFIG(package includedir libdir linkflags cflags)
+# PKGCONFIG_VERSION(package version)
+# PKGCONFIG_DEFINITION(package definition)
+
+# Calling PKGCONFIG_FOUND will fill into the argument the value of the package search's result
+# e.g. PKGCONFIG_FOUND(libart-2.0 LIBART_FOUND)
+#
+# Calling PKGCONFIG_VERSION will fill the desired version into the argument,
+# e.g. PKGCONFIG_VERSION(libart-2.0 LIBART_VERSION)
+# Calling PKGCONFIG will fill the desired information into the 4 given arguments,
+# e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS)
+# if pkg-config was NOT found or the specified software package doesn't exist, the
+# variable will be empty when the function returns, otherwise they will contain the respective information
+#
+# Calling PKGCONFIG_VERSION will fill the desired version into the argument,
+# e.g. PKGCONFIG_VERSION(libart-2.0 LIBART_VERSION)
+#
+# Calling PKGCONFIG_DEFINITION will fill the definition (e.g -D_REENTRANT) into the argument,
+# e.g. PKGCONFIG_DEFINITION(libart-2.0 LIBART_DEFINITION)
+
+FIND_PROGRAM(PKGCONFIG_EXECUTABLE NAMES pkg-config PATHS /usr/local/bin )
+
+MACRO(STRIP_NEWLINES _string_var)
+ STRING(REGEX REPLACE "[\n\r]+" "" ${_string_var} ${${_string_var}})
+ENDMACRO(STRIP_NEWLINES _string_var)
+
+MACRO(PKGCONFIG_FOUND _package _found)
+ # reset the variable at the beginning
+ SET(${_found})
+
+# if pkg-config has been found
+ IF(PKGCONFIG_EXECUTABLE)
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --print-errors --exists RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
+
+ IF(${_pkgconfigDevNull})
+ MESSAGE(STATUS "${_pkgconfigDevNull}")
+ ENDIF(${_pkgconfigDevNull})
+
+ IF(NOT _return_VALUE)
+ SET(${_found} "TRUE")
+ ENDIF(NOT _return_VALUE)
+ ENDIF(PKGCONFIG_EXECUTABLE)
+
+ENDMACRO(PKGCONFIG_FOUND _found)
+
+MACRO(PKGCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
+# reset the variables at the beginning
+ SET(${_include_DIR})
+ SET(${_link_DIR})
+ SET(${_link_FLAGS})
+ SET(${_cflags})
+
+ # if pkg-config has been found
+ IF(PKGCONFIG_EXECUTABLE)
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --exists RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
+
+ # and if the package of interest also exists for pkg-config, then get the information
+ IF(NOT _return_VALUE)
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --variable=includedir OUTPUT_VARIABLE ${_include_DIR} )
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --variable=libdir OUTPUT_VARIABLE ${_link_DIR} )
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --libs OUTPUT_VARIABLE ${_link_FLAGS} )
+
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS ${_package} --cflags OUTPUT_VARIABLE ${_cflags} )
+
+ STRIP_NEWLINES(${_cflags})
+
+ ENDIF(NOT _return_VALUE)
+
+ ENDIF(PKGCONFIG_EXECUTABLE)
+
+ENDMACRO(PKGCONFIG _include_DIR _link_DIR _link_FLAGS _cflags)
+
+MACRO(PKGCONFIG_VERSION _package _version)
+# reset the variables at the beginning
+ SET(${_version})
+
+# if pkg-config has been found
+ IF(PKGCONFIG_EXECUTABLE)
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --print-errors ${_package} --exists RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
+
+# and if the package of interest also exists for pkg-config, then get the information
+ IF(NOT _return_VALUE)
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --print-errors ${_package} --modversion OUTPUT_VARIABLE ${_version} )
+ ENDIF(NOT _return_VALUE)
+
+ ENDIF(PKGCONFIG_EXECUTABLE)
+
+ENDMACRO(PKGCONFIG_VERSION _package _version)
+
+MARK_AS_ADVANCED(PKGCONFIG_EXECUTABLE)
+
+MACRO(PKGCONFIG_DEFINITION _package _definition)
+# reset the variables at the beginning
+ SET(${_definition})
+
+# if pkg-config has been found
+ IF(PKGCONFIG_EXECUTABLE)
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --print-errors ${_package} --exists RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
+
+# and if the package of interest also exists for pkg-config, then get the information
+ IF(NOT _return_VALUE)
+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --print-errors ${_package} --cflags-only-other OUTPUT_VARIABLE ${_definition} )
+ ENDIF(NOT _return_VALUE)
+
+ ENDIF(PKGCONFIG_EXECUTABLE)
+
+ENDMACRO(PKGCONFIG_DEFINITION _package _definition)
+
+MARK_AS_ADVANCED(PKGCONFIG_EXECUTABLE)
diff --git a/cmake_uninstall.cmake.in b/cmake_uninstall.cmake.in
--- /dev/null
+++ b/cmake_uninstall.cmake.in
@@ -0,0 +1,23 @@
+IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+ MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
+ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+
+FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+STRING(REGEX REPLACE "\n" ";" files "${files}")
+FOREACH(file ${files})
+ MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
+ IF(EXISTS "$ENV{DESTDIR}${file}")
+ EXEC_PROGRAM(
+ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+ OUTPUT_VARIABLE rm_out
+ RETURN_VALUE rm_retval
+ )
+ IF("${rm_retval}" STREQUAL 0)
+ ELSE("${rm_retval}" STREQUAL 0)
+ MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
+ ENDIF("${rm_retval}" STREQUAL 0)
+ ELSE(EXISTS "$ENV{DESTDIR}${file}")
+ MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+ ENDIF(EXISTS "$ENV{DESTDIR}${file}")
+ENDFOREACH(file)
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,262 @@
+SET(INKSCAPE_SRC
+arc-context.cpp
+attributes.cpp
+axis-manip.cpp
+box3d-context.cpp
+box3d.cpp
+box3d-side.cpp
+color.cpp
+color-profile.cpp
+composite-undo-stack-observer.cpp
+conditions.cpp
+conn-avoid-ref.cpp
+connector-context.cpp
+console-output-undo-observer.cpp
+context-fns.cpp
+deptool.cpp
+desktop-affine.cpp
+desktop.cpp
+desktop-events.cpp
+desktop-handles.cpp
+desktop-style.cpp
+dir-util.cpp
+document.cpp
+document-subset.cpp
+document-undo.cpp
+doxygen-main.cpp
+draw-anchor.cpp
+draw-context.cpp
+dropper-context.cpp
+dyna-draw-context.cpp
+ege-adjustment-action.cpp
+ege-color-prof-tracker.cpp
+ege-output-action.cpp
+ege-select-one-action.cpp
+event-context.cpp
+event-log.cpp
+extract-uri.cpp
+file.cpp
+filter-chemistry.cpp
+filter-enums.cpp
+fixes.cpp
+flood-context.cpp
+fontsize-expansion.cpp
+gc-anchored.cpp
+gc.cpp
+gc-finalized.cpp
+gradient-chemistry.cpp
+gradient-context.cpp
+gradient-drag.cpp
+guide-snapper.cpp
+help.cpp
+ink-action.cpp
+inkscape.cpp
+inkscape-stock.cpp
+inkview.cpp
+interface.cpp
+knot.cpp
+knotholder.cpp
+layer-fns.cpp
+layer-manager.cpp
+line-geometry.cpp
+line-snapper.cpp
+main-cmdlineact.cpp
+main.cpp
+marker.cpp
+media.cpp
+message-context.cpp
+message-stack.cpp
+mod360.cpp
+node-context.cpp
+nodepath.cpp
+object-edit.cpp
+object-hierarchy.cpp
+object-snapper.cpp
+path-chemistry.cpp
+pencil-context.cpp
+pen-context.cpp
+persp3d.cpp
+persp3d-reference.cpp
+perspective-line.cpp
+preferences.cpp
+prefix.cpp
+prefs-utils.cpp
+print.cpp
+profile-manager.cpp
+proj_pt.cpp
+rect-context.cpp
+registrytool.cpp
+rubberband.cpp
+satisfied-guide-cns.cpp
+selcue.cpp
+select-context.cpp
+selection-chemistry.cpp
+selection.cpp
+selection-describer.cpp
+seltrans.cpp
+seltrans-handles.cpp
+shape-editor.cpp
+shortcuts.cpp
+snap.cpp
+snapped-line.cpp
+snapped-point.cpp
+snapper.cpp
+sp-anchor.cpp
+sp-animation.cpp
+sp-clippath.cpp
+sp-conn-end.cpp
+sp-conn-end-pair.cpp
+sp-cursor.cpp
+sp-defs.cpp
+sp-ellipse.cpp
+sp-feblend.cpp
+sp-fecolormatrix.cpp
+sp-fecomponenttransfer.cpp
+sp-fecomposite.cpp
+sp-feconvolvematrix.cpp
+sp-fediffuselighting.cpp
+sp-fedisplacementmap.cpp
+sp-fedistantlight.cpp
+sp-feflood.cpp
+sp-feimage.cpp
+sp-femerge.cpp
+sp-femergenode.cpp
+sp-femorphology.cpp
+sp-feoffset.cpp
+sp-fepointlight.cpp
+sp-fespecularlighting.cpp
+sp-fespotlight.cpp
+sp-fetile.cpp
+sp-feturbulence.cpp
+sp-filter.cpp
+sp-filter-primitive.cpp
+sp-filter-reference.cpp
+sp-flowdiv.cpp
+sp-flowregion.cpp
+sp-flowtext.cpp
+sp-gaussian-blur.cpp
+sp-gradient.cpp
+sp-gradient-reference.cpp
+sp-guide.cpp
+sp-image.cpp
+spiral-context.cpp
+sp-item.cpp
+sp-item-group.cpp
+sp-item-notify-moveto.cpp
+sp-item-rm-unsatisfied-cns.cpp
+sp-item-transform.cpp
+sp-item-update-cns.cpp
+sp-line.cpp
+splivarot.cpp
+sp-mask.cpp
+sp-metadata.cpp
+sp-metrics.cpp
+sp-namedview.cpp
+sp-object.cpp
+sp-object-group.cpp
+sp-object-repr.cpp
+sp-offset.cpp
+sp-paint-server.cpp
+sp-path.cpp
+sp-pattern.cpp
+sp-polygon.cpp
+sp-polyline.cpp
+sp-rect.cpp
+sp-root.cpp
+sp-shape.cpp
+sp-skeleton.cpp
+sp-spiral.cpp
+sp-star.cpp
+sp-string.cpp
+sp-style-elem.cpp
+sp-switch.cpp
+sp-symbol.cpp
+sp-text.cpp
+sp-tref.cpp
+sp-tref-reference.cpp
+sp-tspan.cpp
+sp-use.cpp
+sp-use-reference.cpp
+star-context.cpp
+streams-gzip.cpp
+streams-handles.cpp
+streams-jar.cpp
+streams-zlib.cpp
+style.cpp
+style-test.cpp
+svg-view.cpp
+svg-view-widget.cpp
+text-chemistry.cpp
+text-context.cpp
+text-editing.cpp
+tools-switch.cpp
+transf_mat_3x4.cpp
+tweak-context.cpp
+uri.cpp
+uri-references.cpp
+vanishing-point.cpp
+verbs.cpp
+version.cpp
+winmain.cpp
+zoom-context.cpp
+)
+
+# make executable for INKSCAPE
+ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})
+#TARGET_LINK_LIBRARIES(INKSCAPE blas gsl)
+#INSTALL(TARGETS INKSCAPE
+# RUNTIME DESTINATION bin
+# LIBRARY DESTINATION lib
+# ARCHIVE DESTINATION lib
+#)
+
+#FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+#INSTALL(FILES ${files} DESTINATION include/INKSCAPE/INKSCAPE)
+
+#CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/INKSCAPE.pc.in
+# ${CMAKE_BINARY_DIR}/INKSCAPE.pc @ONLY IMMEDIATE )
+#INSTALL(FILES "${CMAKE_BINARY_DIR}/INKSCAPE.pc" DESTINATION lib/pkgconfig)
+
+
+# Add New folders in src folder here
+SET(srcfolders
+2geom
+algorithms
+api
+application
+bind
+debug
+dialogs
+display
+dom
+extension
+graphlayout
+helper
+inkjar
+io
+jabber_whiteboard
+libavoid
+libcola
+libcroco
+libgdl
+libnr
+libnrtype
+libvpsc
+livarot
+live_effects
+pedro
+svg
+pixmaps
+trace
+traits
+ui
+removeoverlap
+utest
+util
+widgets
+xml
+)
+\r
+FOREACH(dirlist ${srcfolders})
+ADD_SUBDIRECTORY(${dirlist})
+ENDFOREACH(dirlist)
diff --git a/src/algorithms/CMakeLists.txt b/src/algorithms/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,5 @@
+SET(algorithms
+find-if-before.h
+find-last-if.h
+longest-common-suffix.h
+)
diff --git a/src/api/CMakeLists.txt b/src/api/CMakeLists.txt
--- /dev/null
+++ b/src/api/CMakeLists.txt
@@ -0,0 +1,3 @@
+SET(api
+inkscape.idl
+)
diff --git a/src/application/CMakeLists.txt b/src/application/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,9 @@
+SET(application
+editor.cpp
+editor.h
+application.cpp
+application.h
+app-prototype.cpp
+app-prototype.h
+)
+ADD_LIBRARY(inkapp STATIC ${application})
diff --git a/src/bind/CMakeLists.txt b/src/bind/CMakeLists.txt
--- /dev/null
+++ b/src/bind/CMakeLists.txt
@@ -0,0 +1,16 @@
+SET(BIND_SRC
+dobinding.cpp
+javabind.cpp
+#javabind.h
+#javabind-private.h
+)
+
+# Add New folders in src folder here
+SET(bindfolders
+java
+javainc
+)
+\r
+FOREACH(binddirlist ${bindfolders})
+ADD_SUBDIRECTORY(${binddirlist})
+ENDFOREACH(binddirlist)
diff --git a/src/debug/CMakeLists.txt b/src/debug/CMakeLists.txt
--- /dev/null
+++ b/src/debug/CMakeLists.txt
@@ -0,0 +1,20 @@
+SET(debug
+demangle.cpp
+#demangle.h
+#event.h
+#event-tracker.h
+#gc-heap.h
+heap.cpp
+#heap.h
+log-display-config.cpp
+#log-display-config.h
+logger.cpp
+#logger.h
+#simple-event.h
+sysv-heap.cpp
+#sysv-heap.h
+timestamp.cpp
+#timestamp.h
+)
+
+ADD_LIBRARY(inkdebug STATIC ${debug})
diff --git a/src/dialogs/CMakeLists.txt b/src/dialogs/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,29 @@
+SET(dialogs
+clonetiler.cpp
+debugdialog.cpp
+dialog-events.cpp
+eek-color-def.cpp
+eek-preview.cpp
+export.cpp
+extensions.cpp
+fill-style.cpp
+find.cpp
+guidelinedialog.cpp
+iconpreview.cpp
+in-dt-coordsys.cpp
+input.cpp
+item-properties.cpp
+layer-properties.cpp
+layers-panel.cpp
+object-attributes.cpp
+rdf.cpp
+sp-attribute-widget.cpp
+stroke-style.cpp
+swatches.cpp
+text-edit.cpp
+tiledialog.cpp
+unclump.cpp
+xml-tree.cpp
+)
+
+ADD_LIBRARY(inkdialogs STATIC ${dialogs})
diff --git a/src/display/CMakeLists.txt b/src/display/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,59 @@
+SET(display
+bezier-utils.cpp
+bezier-utils-test.cpp
+canvas-arena.cpp
+canvas-axonomgrid.cpp
+canvas-bpath.cpp
+canvas-grid.cpp
+canvas-temporary-item.cpp
+canvas-temporary-item-list.cpp
+curve.cpp
+gnome-canvas-acetate.cpp
+guideline.cpp
+inkscape-cairo.cpp
+nr-3dutils.cpp
+nr-arena.cpp
+nr-arena-glyphs.cpp
+nr-arena-group.cpp
+nr-arena-image.cpp
+nr-arena-item.cpp
+nr-arena-shape.cpp
+nr-filter-blend.cpp
+nr-filter-colormatrix.cpp
+nr-filter-component-transfer.cpp
+nr-filter-composite.cpp
+nr-filter-convolve-matrix.cpp
+nr-filter.cpp
+nr-filter-diffuselighting.cpp
+nr-filter-displacement-map.cpp
+nr-filter-flood.cpp
+nr-filter-gaussian.cpp
+nr-filter-getalpha.cpp
+nr-filter-image.cpp
+nr-filter-merge.cpp
+nr-filter-morphology.cpp
+nr-filter-offset.cpp
+nr-filter-primitive.cpp
+nr-filter-skeleton.cpp
+nr-filter-slot.cpp
+nr-filter-specularlighting.cpp
+nr-filter-tile.cpp
+nr-filter-turbulence.cpp
+nr-filter-units.cpp
+nr-filter-utils.cpp
+nr-light.cpp
+nr-plain-stuff.cpp
+nr-plain-stuff-gdk.cpp
+pixblock-scaler.cpp
+pixblock-transform.cpp
+snap-indicator.cpp
+sodipodi-ctrl.cpp
+sodipodi-ctrlrect.cpp
+sp-canvas.cpp
+sp-canvas-util.cpp
+sp-ctrlline.cpp
+sp-ctrlquadr.cpp
+testnr.cpp
+)
+
+ADD_LIBRARY(inkdisplay STATIC ${display})
diff --git a/src/dom/CMakeLists.txt b/src/dom/CMakeLists.txt
--- /dev/null
+++ b/src/dom/CMakeLists.txt
@@ -0,0 +1,37 @@
+SET(dom_SRC
+cssparser.cpp
+domimpl.cpp
+domptr.cpp
+domstring.cpp
+lsimpl.cpp
+minidom.cpp
+prop-css2.cpp
+prop-css.cpp
+prop-svg.cpp
+smilimpl.cpp
+svgimpl.cpp
+svgparser.cpp
+ucd.cpp
+uri.cpp
+xmlreader.cpp
+xmlwriter.cpp
+xpathimpl.cpp
+xpathparser.cpp
+xpathtoken.cpp
+${dom_io_SRC}
+${dom_odf_SRC}
+${dom_util_SRC}
+${dom_work_SRC}
+)
+# Add New folders in src folder here
+SET(domfolders
+io
+odf
+util
+work
+)
+\r
+FOREACH(domdirlist ${domfolders})
+ADD_SUBDIRECTORY(${domdirlist})
+ENDFOREACH(domdirlist)
+
diff --git a/src/dom/io/CMakeLists.txt b/src/dom/io/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,11 @@
+SET(dom_io_SRC
+base64stream.cpp
+bufferstream.cpp
+domstream.cpp
+gzipstream.cpp
+httpclient.cpp
+socket.cpp
+stringstream.cpp
+uristream.cpp
+)
+
diff --git a/src/dom/odf/CMakeLists.txt b/src/dom/odf/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,11 @@
+SET(dom_odf_SRC
+base64stream.cpp
+bufferstream.cpp
+domstream.cpp
+gzipstream.cpp
+httpclient.cpp
+socket.cpp
+stringstream.cpp
+uristream.cpp
+)
+
diff --git a/src/dom/util/CMakeLists.txt b/src/dom/util/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,6 @@
+SET(dom_util_SRC
+digest.cpp
+thread.cpp
+ziptool.cpp
+)
+
diff --git a/src/dom/work/CMakeLists.txt b/src/dom/work/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,12 @@
+SET(dom_work_SRC
+testdom.cpp
+testhttp.cpp
+testjs.cpp
+testodf.cpp
+testsvg.cpp
+testuri.cpp
+testxpath.cpp
+testzip.cpp
+xpathtests.cpp
+)
+
diff --git a/src/extension/CMakeLists.txt b/src/extension/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,42 @@
+SET(extension_SRC
+db.cpp
+dependency.cpp
+effect.cpp
+error-file.cpp
+execution-env.cpp
+extension.cpp
+init.cpp
+input.cpp
+output.cpp
+parambool.cpp
+paramcolor.cpp
+paramdescription.cpp
+paramenum.cpp
+parameter.cpp
+paramfloat.cpp
+paramint.cpp
+paramnotebook.cpp
+paramradiobutton.cpp
+paramstring.cpp
+patheffect.cpp
+prefdialog.cpp
+print.cpp
+system.cpp
+timer.cpp
+${extension_dxf2svg_SRC}
+${extension_implementation_SRC}
+${extension_internal_SRC}
+${extension_script_SRC}
+)
+# Add New folders in src folder here
+SET(extensionfolders
+dxf2svg
+implementation
+internal
+script
+)
+\r
+FOREACH(extensiondirlist ${extensionfolders})
+ADD_SUBDIRECTORY(${extensiondirlist})
+ENDFOREACH(extensiondirlist)
+
diff --git a/src/extension/dxf2svg/CMakeLists.txt b/src/extension/dxf2svg/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,11 @@
+SET(extension_dxf2svg_SRC
+aci2rgb.cpp
+entities2elements.cpp
+tables2svg_info.cpp
+blocks.cpp
+entities.cpp
+tables.cpp
+dxf2svg.cpp
+read_dxf.cpp
+test_dxf.cpp
+)
diff --git a/src/extension/implementation/CMakeLists.txt b/src/extension/implementation/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,5 @@
+SET(extension_implementation_SRC
+implementation.cpp
+xslt.cpp
+script.cpp
+)
diff --git a/src/extension/internal/CMakeLists.txt b/src/extension/internal/CMakeLists.txt
--- /dev/null
@@ -0,0 +1,27 @@
+SET(extension_internal_SRC
+bluredge.cpp
+cairo-pdf-out.cpp
+cairo-png-out.cpp
+cairo-ps-out.cpp
+cairo-render-context.cpp
+cairo-renderer.cpp
+cairo-renderer-pdf-out.cpp
+emf-win32-inout.cpp
+emf-win32-print.cpp
+eps-out.cpp
+gdkpixbuf-input.cpp
+gimpgrad.cpp
+grid.cpp
+latex-pstricks.cpp
+latex-pstricks-out.cpp
+odf.cpp
+pdf-cairo.cpp
+pdf-input-cairo.cpp
+pov-out.cpp
+ps.cpp
+ps-out.cpp
+svg.cpp
+svgz.cpp
+win32.cpp
+wpg-input.cpp
+)