summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPProvost <[email protected]>2020-05-14 16:44:51 -0600
committerPProvost <[email protected]>2020-05-14 16:44:51 -0600
commit4ae7acf831e738272f3480db1a7536247d6eb7d1 (patch)
tree2350ba71c0ffec5d1acd6f895cf8c58ec33a5354
parentda3020f280893d0fcf7e7868ec0492b1d756b730 (diff)
Added a zip cpack target
-rwxr-xr-xCMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 878b49b..d331df4 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,3 +49,17 @@ target_include_directories(${PROJECT_NAME}
${CUSTOM_INC_DIR}
)
target_compile_definitions(${PROJECT_NAME} PUBLIC "UX_INCLUDE_USER_DEFINE_FILE" )
+
+# 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