Commit cab7c28
authored
Add CPack to CMakeLists.txt for binary and source package generation (#4645)
Add CPack to CMakeLists.txt.
All default package exports are enabled for tiledb project so the superbuild's `package` command generates outputs based on the current platform (TGZ for Linux).
Usage:
- *Superbuild*
- `make package` invokes `cpack` inside of the EP tiledb.
- *Build*
- `cpack` for default behaviour or `cpack -G <GENERATOR>` for specific
output
- `make package`
- `make package_source`
Example output from Superbuild's `make package`:
```
TGZ
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: TileDB
CPack: - Install project: TileDB []
CPack: Create package
CPack: - package: /mnt/c/Users/dbara/CLionProjects/TileDB/build_superbuild/tiledb/tiledb-linux-x86_64-2.20.0.tar.gz generated.
CPack: - checksum file: /mnt/c/Users/dbara/CLionProjects/TileDB/build_superbuild/tiledb/tiledb-linux-x86_64-2.20.0.tar.gz.sha1 generated.
```
---
TYPE: FEATURE
DESC: Add CPack to CMakeLists.txt1 parent 74ebc44 commit cab7c28
File tree
3 files changed
+43
-0
lines changed- cmake
- inputs
- tiledb
3 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
0 commit comments