git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
279f5b8
)
Add 'make dist' target
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 26 Sep 2011 09:05:30 +0000 (11:05 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 26 Sep 2011 09:08:29 +0000 (11:08 +0200)
CMakeLists.txt
patch
|
blob
|
blame
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
30f8a9f
..
37243a9
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-101,6
+101,12
@@
add_subdirectory(examples)
add_subdirectory(packages)
add_subdirectory(test)
+# "make dist" target
+set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION_STRING})
+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