summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPProvost <[email protected]>2020-05-14 16:44:55 -0600
committerPProvost <[email protected]>2020-05-14 16:44:55 -0600
commit42b54d662d2b08be84ea1461289b8298db175582 (patch)
treecf9d49e3e4f7e564f6a7e3f16ef6e5b1052c85f3
parent1d565a7657b6b3a903e89ea75315d3f60961737b (diff)
Added a zip cpack target
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6a08241..9b68574c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,3 +42,17 @@ target_include_directories(${PROJECT_NAME}
${CUSTOM_INC_DIR}
)
target_compile_definitions(${PROJECT_NAME} PUBLIC "TX_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