diff options
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) + |
