diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-29 18:57:06 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-29 18:57:06 +0100 |
| commit | 99261f17e85aa0a7409bb2688fcddae4a3adea9e (patch) | |
| tree | 3e1d84572ac616229bfaf09dc27abd70e5841ac1 /CMakeLists.txt | |
| parent | bdbe7c53ff848a253d0f27adfa9e92caa391e5d1 (diff) | |
added cpack support to generate deb packages (make package)
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc0f022..769d663 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6) # Set the project name. This will be used by CMake to name project related variables. -project(OXEN) +project(oxen) # Set C compiler flags set(CMAKE_C_FLAGS "-Wall -pedantic -g -std=c99 -D_POSIX_SOURCE") @@ -41,3 +41,16 @@ target_link_libraries( ${CURSES_LIBRARIES} ) +install(TARGETS oxen RUNTIME DESTINATION bin) + +# package generator (see also http://www.cmake.org/Wiki/CMake:Packaging_With_CPack) +SET(CPACK_PACKAGE_VERSION_MAJOR "0") +SET(CPACK_PACKAGE_VERSION_MINOR "1") +SET(CPACK_PACKAGE_VERSION_PATCH "0") +SET(CPACK_GENERATOR "DEB") +SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Multiplayer card game for up to 10 players") +SET(CPACK_DEBIAN_PACKAGE_SECTION "games") +SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libncurses5 (>= 5.6)") +SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "hornoxe") +INCLUDE(CPack) + |
