All: Add CPack variables
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Dec 2014 19:25:13 -0800
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.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}")