diff --git a/CMakeLists.txt b/CMakeLists.txt index eb94a4405..3d0357e08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -455,5 +455,33 @@ if(MSVC) set_target_properties(emulationstation PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS") endif() -install (FILES emulationstation DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) +install(TARGETS emulationstation + RUNTIME + DESTINATION bin) + +INCLUDE(InstallRequiredSystemLibraries) + +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A flexible graphical emulator front-end") +SET(CPACK_PACKAGE_DESCRIPTION "EmulationStation is a flexible, graphical front-end designed for keyboardless navigation of your multi-platform retro game collection.") + +SET(CPACK_RESOURCE_FILE LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md") +SET(CPACK_RESOURCE_FILE README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") + +SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Alec Lofquist ") +SET(CPACK_DEBIAN_PACKAGE_SECTION "misc") +SET(CPACK_DEBIAN_PACKAGE_PRIORITY "extra") +SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libboost-system1.54.0, libboost-filesystem1.54.0, libfreeimage3, libfreetype6, libcurl3, libasound2") +SET(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libboost-system-dev, libboost-filesystem-dev, libboost-date-time-dev, libfreeimage-dev, libfreetype6-dev, libeigen3-dev, libcurl4-openssl-dev, libasound2-dev, libgl1-mesa-dev") + +SET(CPACK_PACKAGE_VENDOR "emulationstation.org") +SET(CPACK_PACKAGE_VERSION "2.0.0~rc1") +SET(CPACK_PACKAGE_VERSION_MAJOR "2") +SET(CPACK_PACKAGE_VERSION_MINOR "0") +SET(CPACK_PACKAGE_VERSION_PATCH "0") +SET(CPACK_PACKAGE_INSTALL_DIRECTORY "emulationstation_${CMAKE_PACKAGE_VERSION}") +SET(CPACK_PACKAGE_EXECUTABLES "emulationstation" "emulationstation") + +SET(CPACK_GENERATOR "TGZ;DEB") + +INCLUDE(CPack)