Code

remove dependency on INVALID_LPE a bit
[inkscape.git] / CMakeLists.txt
1 PROJECT(inkscape)
3 SET(INKSCAPE_VERSION 0.46+devel)
4 SET(PROJECT_NAME inkscape)
5 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
6 SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
8 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")
9 INCLUDE(ConfigPaths)
10 INCLUDE(DefineDependsandFlags)
11 INCLUDE(HelperMacros)
12 \r# Set to true if compiler/linker should enable profiling:
13 #SET(ENABLE_PROFILING TRUE)
15 #make dist target
16 SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")
17 ADD_CUSTOM_TARGET(dist svn export --force -q "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}" 
18                 COMMAND tar -czf "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}.tar.gz" -C "${CMAKE_BINARY_DIR}" --exclude=".hidden" ${INKSCAPE_DIST_PREFIX}
19                 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
21 #make unistall target
22 CONFIGURE_FILE(
23   "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
24   "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
25   IMMEDIATE @ONLY)
27 ADD_CUSTOM_TARGET(uninstall
28   "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
30 SET(folders
31 src
32 cxxtest
33 share
34 doc
35 #doc-pak
36 po
37 )
39 FOREACH(dirlist ${folders})
40 ADD_SUBDIRECTORY(${dirlist})
41 ENDFOREACH(dirlist)