X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=CMakeLists.txt;h=37243a95769f9f62808092a76212570005478e97;hp=30f8a9fbdc0746ed0a3ed107a992f0d206fa0544;hb=5c561052c19bcc6a3591afaddf2068c427fbabe5;hpb=279f5b84cdde81140cb028747343e63afc952d99 diff --git a/CMakeLists.txt b/CMakeLists.txt index 30f8a9f..37243a9 100644 --- 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