summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPProvost <[email protected]>2020-05-14 16:44:48 -0600
committerPProvost <[email protected]>2020-05-14 16:44:48 -0600
commit7c84790dd8303cf7a5da310acab551a12fa712ba (patch)
tree42c2206f1091425a57eb9921104ca2fad9ad6434
parent89cb8202798dd5b7e189e33d967b4be0d54e9aee (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 3f3c2209..3f5d0e5d 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,3 +56,17 @@ target_include_directories(${PROJECT_NAME}
${CUSTOM_INC_DIR}
)
target_compile_definitions(${PROJECT_NAME} PUBLIC "NX_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