summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeScripts/ConfigChecks.cmake1
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake1
-rw-r--r--CMakeScripts/FindBoost.cmake2
-rw-r--r--src/libavoid/CMakeLists.txt15
4 files changed, 2 insertions, 17 deletions
diff --git a/CMakeScripts/ConfigChecks.cmake b/CMakeScripts/ConfigChecks.cmake
index 184239cd8..026fa5d01 100644
--- a/CMakeScripts/ConfigChecks.cmake
+++ b/CMakeScripts/ConfigChecks.cmake
@@ -68,3 +68,4 @@ ENDIF(HAVE_CAIRO_PDF)
# 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)
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index 3ca3695fe..1a690abd3 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -39,7 +39,6 @@ LIST(APPEND INKSCAPE_LIBS
INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}
${PROJECT_SOURCE_DIR}
-"${CMAKE_BINARY_DIR}/src"
${GTK2_INCLUDE_DIRS}
${GTKMM_INCLUDE_DIRS}
${SIGC++_INCLUDE_DIRS}
diff --git a/CMakeScripts/FindBoost.cmake b/CMakeScripts/FindBoost.cmake
index 20bf27ab8..b1a83803a 100644
--- a/CMakeScripts/FindBoost.cmake
+++ b/CMakeScripts/FindBoost.cmake
@@ -159,7 +159,7 @@ IF (_boost_IN_CACHE)
FOREACH(COMPONENT ${Boost_FIND_COMPONENTS})
STRING(TOUPPER ${COMPONENT} COMPONENT)
_Boost_ADJUST_LIB_VARS( ${COMPONENT} )
- FOREACH(COMPONENT)
+ ENDFOREACH(COMPONENT)
SET(Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIR})
ELSE (_boost_IN_CACHE)
# Need to search for boost
diff --git a/src/libavoid/CMakeLists.txt b/src/libavoid/CMakeLists.txt
index 403ceca73..db24527f1 100644
--- a/src/libavoid/CMakeLists.txt
+++ b/src/libavoid/CMakeLists.txt
@@ -1,30 +1,15 @@
SET(libavoid_SRC
connector.cpp
-connector.h
-debug.h
geometry.cpp
-geometry.h
-geomtypes.h
graph.cpp
-graph.h
-libavoid.h
makepath.cpp
-makepath.h
polyutil.cpp
-polyutil.h
region.cpp
-region.h
router.cpp
-router.h
shape.cpp
-shape.h
static.cpp
-static.h
timer.cpp
-timer.h
vertices.cpp
-vertices.h
visibility.cpp
-visibility.h
)
ADD_LIBRARY(avoid STATIC ${libavoid_SRC})