From 901ffa5051d02120f14fe99bf66cb8a32ec0b6f5 Mon Sep 17 00:00:00 2001 From: PProvost Date: Thu, 14 May 2020 16:44:42 -0600 Subject: [PATCH] Added a zip cpack target --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ccdd201..4e3d198 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,3 +27,16 @@ target_link_libraries(${PROJECT_NAME} PUBLIC # Pick up the common stuff add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/common) +# Enable a build target that produces a ZIP file of all sources +set(CPACK_SOURCE_GENERATOR "ZIP") +set(CPACK_SOURCE_IGNORE_FILES + \\.git/ + \\.github/ + _build/ + \\.git + \\.gitattributes + \\.gitignore + ".*~$" +) +set(CPACK_VERBATIM_VARIABLES YES) +include(CPack) \ No newline at end of file