~elementary-pantheon/contractor/master

1 by am.monkeyd@gmail.com
let's roll
1
# Check http://elementaryos.org/docs/developer-guide/cmake for documentation
2
3
cmake_minimum_required (VERSION 2.6)
4
cmake_policy(VERSION 2.6)
5
project(contractor)
16.1.1 by Corentin Noël
Contractor now use X-GNOME-Gettext-Domain to translate contracts
6
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
140 by Corentin Noël
Create the default contractor directory
7
include(GNUInstallDirs)
1 by am.monkeyd@gmail.com
let's roll
8
139 by Cody Garver
Release 0.3.2
9
set (VERSION "0.3.2")
65 by Michael Lazarski
merged fix for
10
11
# Add 'make dist' command for creating release tarball
12
set (CPACK_PACKAGE_VERSION ${VERSION})
13
set (CPACK_SOURCE_GENERATOR "TGZ")
14
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
15
set (CPACK_SOURCE_IGNORE_FILES "/build/;/.bzr/;/.bzrignore;~$;${CPACK_SOURCE_IGNORE_FILES}")
16
17
include (CPack)
18
add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
19
1 by am.monkeyd@gmail.com
let's roll
20
add_subdirectory (src)
21
add_subdirectory (data)
140 by Corentin Noël
Create the default contractor directory
22
23
install (DIRECTORY DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/contractor)