git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
7050bac
)
Add 'make dist' target
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 12:28:17 +0000 (14:28 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 12:28:17 +0000 (14:28 +0200)
CMakeLists.txt
patch
|
blob
|
blame
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
90cc27a
..
444d603
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-58,6
+58,13
@@
set(CPACK_SOURCE_IGNORE_FILES
)
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME})
+# "make dist" target
+set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
+add_custom_target(dist
+ COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
+ | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+
# documentation
option(DOCUMENTATION "Generate API documentation with Doxygen" ON)
find_package(Doxygen)