Commits

sbl5007  committed f82ef32

add debian cpack rules to cmakelists

  • Participants
  • Parent commits b2e2c0f

Comments (0)

Files changed (1)

File CMakeLists.txt

 endif()
   
 # only CPack code below this line
+SET(CPACK_PACKAGE_NAME "sumwars")
 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Summoning Wars Role-Playing Game")
 SET(CPACK_PACKAGE_VENDOR "Sumwars team")
 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
 SET(CPACK_PACKAGE_VERSION_PATCH "${SUMWARS_VERSION_PATCH}")
 
 SET(CPACK_SOURCE_GENERATOR TBZ2 ZIP)
-SET(CPACK_GENERATOR NSIS)
+SET(CPACK_GENERATOR NSIS DEB)
+
+set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sumwars team")
+set(CPACK_DEBIAN_PACKAGE_DEPENDS "libogremain-1.7.3, libcegui, libois-1.3.0, libalut0, liblua5.1-0, libopenal1, libvorbis0a, libfreeimage3, libphysfs1, libxrandr2")
+SET(CPACK_DEBIAN_PACKAGE_SECTION "games")
+SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
+set(CPACK_SET_DESTDIR "ON")
+
 
 set(CPACK_SOURCE_PACKAGE_FILE_NAME "sumwars-${SUMWARS_SHORT_VERSION}" CACHE INTERNAL "tarball basename")
 
 
 "\\\\.sumwars"
 )
-
 INCLUDE(CPack)