Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active November 16, 2022 15:28
Show Gist options
  • Save scivision/4230fac074bbe895c3ad684fb30ca21b to your computer and use it in GitHub Desktop.
Save scivision/4230fac074bbe895c3ad684fb30ca21b to your computer and use it in GitHub Desktop.
CPack template
# do this after all install(...) commands so that all targets are finalized.
# Essentially, the last thing included at the end of the top-level CMakeLists.txt
set(CPACK_GENERATOR "TBZ2")
set(CPACK_SOURCE_GENERATOR "TBZ2")
set(CPACK_PACKAGE_DIRECTORY ${PROJECT_BINARY_DIR}/package)
set(CPACK_SOURCE_IGNORE_FILES .git/ .github/ .vscode/ .mypy_cache/ _CPack_Packages/
${CMAKE_BINARY_DIR}/ ${PROJECT_BINARY_DIR}/
)
include(CPack)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment