all repos — mgba @ 9a61475229b9bb40c4dbaaf37de9588ca953728c

mGBA Game Boy Advance Emulator

All: Add CPack variables
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Dec 2014 19:25:13 -0800
commit

9a61475229b9bb40c4dbaaf37de9588ca953728c

parent

5a9cf992491d492037bd52c70fda57d8d17abfe0

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -210,6 +210,16 @@ install(TARGETS ${BINARY_NAME}-perf DESTINATION bin)

install(FILES ${CMAKE_SOURCE_DIR}/tools/perf.py DESTINATION "${CMAKE_INSTALL_LIBDIR}/${BINARY_NAME}") endif() +# Packaging +set(CPACK_PACKAGE_VERSION_MAJOR ${LIB_VERSION_MAJOR}) +set(CPACK_PACKAGE_VERSION_MINOR ${LIB_VERSION_MINOR}) +set(CPACK_PACKAGE_VERSION_PATCH ${LIB_VERSION_PATCH}) +set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE) + +set(CPACK_STRIP_FILES ${BINARY_NAME}) + +include(CPack) + # Summaries message(STATUS "Feature summary:") message(STATUS " CLI debugger: ${USE_CLI_DEBUGGER}")