Skip to content

Commit

Permalink
reorganize and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
msclock committed Sep 2, 2024
1 parent fc29456 commit 3350cde
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions cmake/install/Cpack.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set(CPACK_SOURCE_IGNORE_FILES /.git /dist /.*build.* /\\\\.DS_Store)
#[[
Package generation using CPack

References:
- https://github.com/MangaD/cpp-project-template/blob/main/cmake/cpack_module.cmake
- https://github.com/gabime/spdlog/blob/v1.x/cmake/spdlogCPack.cmake
- https://github.com/retifrav/cmake-cpack-example/tree/master
]]
include_guard(GLOBAL)

set(CPACK_RESOURCE_FILE_README
"${CMAKE_CURRENT_SOURCE_DIR}/README.md"
CACHE STRING "Readme")
set(CPACK_RESOURCE_FILE_LICENSE
"${CMAKE_CURRENT_SOURCE_DIR}/LICENSE"
CACHE STRING "License")
set(CPACK_SOURCE_GENERATOR
"TGZ;ZIP"
CACHE STRING "Source generator")
# cmake-format: off
set(CPACK_SOURCE_IGNORE_FILES
/.git
/dist
/.*build.*
/\\\\.DS_Store
)
# cmake-format: on

include(CPack)
# https://github.com/MangaD/cpp-project-template/blob/main/cmake/cpack_module.cmake
# https://github.com/gabime/spdlog/blob/v1.x/cmake/spdlogCPack.cmake
# https://github.com/retifrav/cmake-cpack-example/tree/master

0 comments on commit 3350cde

Please sign in to comment.