Skip to content

Commit

Permalink
[INFRA] configure cpack for source builds
Browse files Browse the repository at this point in the history
Usage:

Make a fresh clone of the repository and create a build folder (out-of-source).

```bash
mkdir package-build

git clone https://github.com/seqan/seqan3.git
cd seqan3

git checkout 3.0.2 # version to pack

git submodule init
git submodule update

cd ../package-build

cmake ../seqan3 # configure

cpack # builds binary package, e.g. seqan3-3.0.2-Linux.tar.xz{,.sha265}

cmake --build . --target package_source # builds source package, e.g. seqan3-3.0.2-Source.tar.xz{,.sha265}
```

Note: Do not do `git clone -recurse-submodules https://github.com/seqan/seqan3.git` because it will recursively
pull sub-submodules which we do not want!
  • Loading branch information
marehr committed Oct 13, 2020
1 parent 5d64899 commit 1a350c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_system/seqan3-package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

cmake_minimum_required (VERSION 3.7)

set (CPACK_GENERATOR "ZIP" "TXZ")
set (CPACK_GENERATOR "TXZ")

set (CPACK_PACKAGE_VENDOR "seqan")
# A description of the project, used in places such as the introduction screen of CPack-generated Windows installers.
Expand All @@ -19,4 +19,8 @@ set (CPACK_PACKAGE_ICON "${SEQAN3_CLONE_DIR}/test/documentation/seqan_logo.png")
set (CPACK_RESOURCE_FILE_LICENSE "${SEQAN3_CLONE_DIR}/LICENSE.md")
set (CPACK_RESOURCE_FILE_README "${SEQAN3_CLONE_DIR}/README.md")

# Source Package
set (CPACK_SOURCE_GENERATOR "TXZ")
set (CPACK_SOURCE_IGNORE_FILES "\\\\.git($|/)")

include (CPack)

0 comments on commit 1a350c7

Please sign in to comment.