From: Alexandru Gagniuc Date: Wed, 24 Oct 2012 15:12:40 +0000 (-0500) Subject: Add a way to generate a tarball without requiring git X-Git-Tag: pulseview-0.1.0~151 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cd6606c22e9fa9c3b70be856d9ed3843e7793b06;p=pulseview.git Add a way to generate a tarball without requiring git $ make package_source This will use CPack to generate tarballs of the source directory. Signed-off-by: Alexandru Gagniuc --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b2196e4e..f498110c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -199,7 +199,17 @@ target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) #= Installation #------------------------------------------------------------------------------- -install(PROGRAMS ${PROJECT_NAME} DESTINATION bin/) +install(TARGETS ${PROJECT_NAME} DESTINATION bin/) + +#=============================================================================== +#= Packaging (handled by CPack) +#------------------------------------------------------------------------------- + +set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README) +set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/COPYING) +set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_CURRENT_BINARY_DIR} ".gitignore" ".git") + +include(CPack) #=============================================================================== #= Tests