diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b8806b6eb14bf8d76eaaa357f8576f2f1214b87..e3327eb2f5c74c4c1576b7b79533c4ae99e5d2ac 100644 (file)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-PROJECT(inkscape CXX C)\r
+PROJECT(inkscape)\r
+\r
SET(INKSCAPE_VERSION 0.46+devel)\r
SET(INKSCAPE_VERSION 0.46+devel)\r
-SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4)\r
+SET(PROJECT_NAME inkscape)\r
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)\r
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)\r
\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
-
-SET(CONFIG_H
-../config.h)\r
-INCLUDE_DIRECTORIES (src/)\r
-LINK_DIRECTORIES (src/)\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
+LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")
+INCLUDE(ConfigPaths)
+INCLUDE(DefineDependsandFlags)\r
+INCLUDE(HelperMacros)
+\r# Set to true if compiler/linker should enable profiling:\r
+#SET(ENABLE_PROFILING TRUE)\r
\r
#make dist target\r
SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")\r
\r
#make dist target\r
SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")\r
\r
ADD_CUSTOM_TARGET(uninstall\r
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")\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
\r
-FOREACH(dirlist ${folders})
-ADD_SUBDIRECTORY(${dirlist})
+SET(folders\r
+src\r
+cxxtest\r
+share\r
+doc\r
+#doc-pak\r
+po\r
+)\r
+\r
+FOREACH(dirlist ${folders})\r
+ADD_SUBDIRECTORY(${dirlist})\r
ENDFOREACH(dirlist)
ENDFOREACH(dirlist)
-