2
SET(INKSCAPE_VERSION 0.46+devel)
3
SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
4
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
6
SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
7
SET(CMAKE_SKIP_RPATH:BOOL OFF)
8
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts)
9
INCLUDE(ConfigInkscapeDepends)
11
INCLUDE_DIRECTORIES (src/)
12
LINK_DIRECTORIES (src/)
15
SET(CMAKE_CXX_FLAGS "${GTK2_CFLAGS} ${cairo_CFLAGS} -Wall")
16
SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
18
#SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}")
19
#IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")
21
# SET(CMAKE_RANLIB "ranlib")
22
#ENDIF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")
25
SET(INKSCAPE_DIST_PREFIX "${PROJECT_NAME}-${INKSCAPE_VERSION}")
26
ADD_CUSTOM_TARGET(dist svn export --force -q "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}"
27
COMMAND tar -czf "${CMAKE_BINARY_DIR}/${INKSCAPE_DIST_PREFIX}.tar.gz" -C "${CMAKE_BINARY_DIR}" --exclude=".hidden" ${INKSCAPE_DIST_PREFIX}
28
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
32
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
33
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
36
ADD_CUSTOM_TARGET(uninstall
37
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
48
FOREACH(dirlist ${folders})
49
ADD_SUBDIRECTORY(${dirlist})