summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-29 18:59:03 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-29 18:59:03 +0100
commitb0b17a7b076c0191d860f764ba23194d2b1f2d3f (patch)
treed4528de0b5dabb96fda74013c68f55883b71e892
parent98407de7864cefbe305bbc48f4acc59d3c8308b1 (diff)
parent99261f17e85aa0a7409bb2688fcddae4a3adea9e (diff)
Merge branch 'master' of ssh://git@wg.reiner-h.de:22003/~git/oxen
-rw-r--r--CMakeLists.txt15
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)
+