X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=CMakeLists.txt;h=e3327eb2f5c74c4c1576b7b79533c4ae99e5d2ac;hb=a95be1234ba4df33d6d074589edaa56f0d546069;hp=2631073621c4cbdd9343fb487356ad46e4b75a05;hpb=9623bd180bdb07cc5d969f4708c195a3e283ec76;p=inkscape.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 263107362..e3327eb2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,44 +1,17 @@ -PROJECT(inkscape CXX C) +PROJECT(inkscape) -MESSAGE(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}") - -SET(INKSCAPE_VERSION 0.46+devel) +SET(INKSCAPE_VERSION 0.46+devel) SET(PROJECT_NAME inkscape) -SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4) +CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6) SET(CMAKE_INCLUDE_CURRENT_DIR TRUE) -# Set to true if compiler/linker should enable profiling: +LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts") +INCLUDE(ConfigPaths) +INCLUDE(DefineDependsandFlags) +INCLUDE(HelperMacros) + # Set to true if compiler/linker should enable profiling: #SET(ENABLE_PROFILING TRUE) -#Pretty colors -SET(CMAKE_COLOR_MAKEFILE ON) -#Choose verbosity level -#SET(CMAKE_VERBOSE_MAKEFILE ON) - -# Probably best to move all these path things to a single file -IF(WIN32) - SET(PACKAGE_LOCALE_DIR "locale") -ELSEIF(WIN32) - # TODO: check and change this to correct value: - SET(PACKAGE_LOCALE_DIR "locale") -ENDIF(WIN32) - - -SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) -SET(CMAKE_SKIP_RPATH:BOOL OFF) -SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) -INCLUDE(ConfigCompileFlags) -INCLUDE(ConfigInkscapeDepends) - -INCLUDE_DIRECTORIES (src/ ${CMAKE_CURRENT_BINARY_DIR} ) -LINK_DIRECTORIES (src/) - -#SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}") -#IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2") -# SET(CMAKE_AR "ar") -# SET(CMAKE_RANLIB "ranlib") -#ENDIF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2") - #make dist target SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}") ADD_CUSTOM_TARGET(dist svn export --force -q "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}" @@ -53,17 +26,16 @@ CONFIGURE_FILE( ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") - -SET(folders -src -cxxtest -share -doc -#doc-pak -po -) -FOREACH(dirlist ${folders}) -ADD_SUBDIRECTORY(${dirlist}) +SET(folders +src +cxxtest +share +doc +#doc-pak +po +) + +FOREACH(dirlist ${folders}) +ADD_SUBDIRECTORY(${dirlist}) ENDFOREACH(dirlist) -