~bookworm-team/bookworm/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Raphael Isemann
  • Date: 2013-11-28 11:16:16 UTC
  • mfrom: (21.2.1 bookworm)
  • Revision ID: teemperor@googlemail.com-20131128111616-xacgees1lx04vvf1
First version of the Property Dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#We define out project name.
 
2
project(bookworm)
1
3
 
2
4
# We define the minimum cmake. This is standard for Elementary OS
3
5
cmake_minimum_required (VERSION 2.8)
5
7
#We define the minimum policy version
6
8
cmake_policy(VERSION 2.8)
7
9
 
8
 
 
9
 
#We define out project name.
10
 
project(BookWorm)
 
10
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
 
11
 
 
12
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
 
13
set (PKGDATADIR "${DATADIR}/bookworm")
 
14
set (CMAKE_INSTALL_PREFIX /usr)
 
15
set (VERSION "0.1")
 
16
 
 
17
# Add 'make dist' command for creating release tarball
 
18
set (CPACK_PACKAGE_VERSION ${VERSION})
 
19
set (CPACK_SOURCE_GENERATOR "TGZ")
 
20
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
 
21
set (CPACK_SOURCE_IGNORE_FILES "/build/;/.bzr/;/.bzrignore;~$;${CPACK_SOURCE_IGNORE_FILES}")
 
22
 
 
23
include (CPack)
 
24
add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
11
25
 
12
26
set (GLOBAL_VALAC_OPTIONS
13
27
  --vapidir=${CMAKE_SOURCE_DIR}/vapi
20
34
#Here we add the src directory. CMake will look for the CMakeLists.txt in this folder
21
35
#and work from there
22
36
add_subdirectory (src)
 
37
 
 
38
add_subdirectory (po)
 
39
 
 
40
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/default.png DESTINATION share/bookworm)
 
41