Code

Made some improvements to the osx-build.sh script to use BZR and to be able
[inkscape.git] / CMakeLists.txt
1 PROJECT(inkscape)
3 SET(INKSCAPE_VERSION 0.47+devel)
4 SET(PROJECT_NAME inkscape)
5 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
6 SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
8 IF(COMMAND cmake_policy)
9   CMAKE_POLICY(SET CMP0003 NEW)
10 ENDIF(COMMAND cmake_policy)
12 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")
14 INCLUDE(ConfigPaths) #Installation Paths
15 INCLUDE(DefineDependsandFlags) #Includes, Compiler Flags, and Link Libraries
16 INCLUDE(HelperMacros) #Misc Utility Macros
18 OPTION(ENABLE_PROFILING "Turn on profiling" OFF) # Set to true if compiler/linker should enable profiling
20 #make dist target
21 SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")
22 ADD_CUSTOM_TARGET(dist svn export --force -q "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}" 
23                 COMMAND tar -czf "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}.tar.gz" -C "${CMAKE_BINARY_DIR}" --exclude=".hidden" ${INKSCAPE_DIST_PREFIX}
24                 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
26 #make unistall target
27 CONFIGURE_FILE(
28   "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
29   "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
30   IMMEDIATE @ONLY)
32 ADD_CUSTOM_TARGET(uninstall
33   "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
35 SET(folders
36 src
37 cxxtest
38 share
39 doc
40 #doc-pak
41 po
42 )
44 FOREACH(dirlist ${folders})
45 ADD_SUBDIRECTORY(${dirlist})
46 ENDFOREACH(dirlist)