~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: verbalshadow
  • Date: 2008-03-27 21:33:21 UTC
  • Revision ID: verbalshadow@users.sourceforge.net-20080327213321-lweqdlhn39i4915v
Cmake Build system - Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROJECT(inkscape CXX)
 
2
SET(INKSCAPE_VERSION 0.46+devel)
 
3
SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
 
4
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
 
5
 
 
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)
 
10
 
 
11
INCLUDE_DIRECTORIES (src/)
 
12
LINK_DIRECTORIES (src/)
 
13
 
 
14
# Set Compiler Flags
 
15
SET(CMAKE_CXX_FLAGS "${GTK2_CFLAGS} ${cairo_CFLAGS} -Wall")
 
16
SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
 
17
 
 
18
#SET(CMAKE_MAJOR_MINOR "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}")
 
19
#IF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")
 
20
#    SET(CMAKE_AR "ar")
 
21
#    SET(CMAKE_RANLIB "ranlib")
 
22
#ENDIF("${CMAKE_MAJOR_MINOR}" STREQUAL "2.2")
 
23
 
 
24
#make dist target
 
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}")
 
29
 
 
30
#make unistall target
 
31
CONFIGURE_FILE(
 
32
  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
 
33
  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
 
34
  IMMEDIATE @ONLY)
 
35
 
 
36
ADD_CUSTOM_TARGET(uninstall
 
37
  "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
 
38
 
 
39
SET(folders
 
40
src
 
41
cxxtest
 
42
share
 
43
doc
 
44
#doc-pak
 
45
po
 
46
)
 
47
 
 
48
FOREACH(dirlist ${folders})
 
49
ADD_SUBDIRECTORY(${dirlist})
 
50
ENDFOREACH(dirlist)
 
51