]> sigrok.org Git - pulseview.git/commitdiff
Add a way to generate a tarball without requiring git
authorAlexandru Gagniuc <redacted>
Wed, 24 Oct 2012 15:12:40 +0000 (10:12 -0500)
committerUwe Hermann <redacted>
Sat, 19 Jan 2013 22:17:20 +0000 (23:17 +0100)
  $ make package_source

This will use CPack to generate tarballs of the source directory.

Signed-off-by: Alexandru Gagniuc <redacted>
CMakeLists.txt

index b2196e4eaba5ce397016f15cc0ad892072f2f98c..f498110cd3bf46694fe5fffcc0f80860f2f510f0 100644 (file)
@@ -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