Ver Fonte

Added a zip cpack target

PProvost há 5 anos atrás
pai
commit
901ffa5051
1 ficheiros alterados com 13 adições e 0 exclusões
  1. 13 0
      CMakeLists.txt

+ 13 - 0
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)