diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2010-05-12 23:11:26 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2010-05-12 23:11:26 -0500 |
commit | e682cc225da8d66e7b7f517c176e47f507dc9b59 (patch) | |
tree | bbd6a374bc56f5aa8a4bfb39fdc26e4cb04c5448 /CMakeLists.txt | |
parent | b7e49e10152135b5532e473027ba422e22da1735 (diff) | |
download | zcomp-e682cc225da8d66e7b7f517c176e47f507dc9b59.tar.gz zcomp-e682cc225da8d66e7b7f517c176e47f507dc9b59.tar.bz2 |
add a simple `make dist` target
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4848e66..a1ae281 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,12 @@ add_subdirectory (src) add_subdirectory (xslt) add_subdirectory (plugins) +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}) + compiz_package_generation ("Compiz") compiz_add_uninstall () |