summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b426a9)
raw | patch | inline | side by side (parent: 4b426a9)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 31 Mar 2008 19:39:16 +0000 (19:39 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 31 Mar 2008 19:39:16 +0000 (19:39 +0000) |
CMakeLists.txt | patch | blob | history | |
CMakeScripts/ConfigCompileFlags.cmake | [new file with mode: 0644] | patch | blob |
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65cc2d4ac2844ef50b4769be54569335761ebbf1..5bb826bccc102e1c0d05570d987de1ef51accc10 100644 (file)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
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(ConfigCompileFlags)\r
INCLUDE(ConfigInkscapeDepends)\r
-SET(CONFIG_H
-"${CMAKE_CURRENT_BINARY_DIR}/config.h")\r
+SET(CONFIG_H "${CMAKE_CURRENT_BINARY_DIR}/config.h")\r
INCLUDE_DIRECTORIES (src/)\r
LINK_DIRECTORIES (src/)\r
\r
diff --git a/CMakeScripts/ConfigCompileFlags.cmake b/CMakeScripts/ConfigCompileFlags.cmake
--- /dev/null
@@ -0,0 +1,7 @@
+SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch")
+SET(COMPILE_OPTIMIZATION_FLAGS "-O2")
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\" ")
+
+SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
+