Skip to content

Commit

Permalink
fix(vcpkg): add cte-hermes-shm port
Browse files Browse the repository at this point in the history
close #4
  • Loading branch information
hyoklee committed Feb 28, 2025
1 parent f2a3e53 commit 4c2fe1a
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ports/cte-hermes-shm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO iowarp/cte-hermes-shm
REF "98c368e98d948e4f6e2fc74e48ddb7161c505eed"
SHA512 83b9253b2172587ac60a75f1501417d42bc0fe7045291a66aad1bb196eb7ff26d67cdd8fafce8fbeb412decd52d82a9df7fefed227a5eb8bcf212c058520bf60
HEAD_REF main
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
bench BUILD_HSHM_BENCHMARKS
boost BUILD_Boost_TESTS
cereal HERMES_ENABLE_CEREAL
coverage HERMES_ENABLE_COVERAGE
doxygen HERMES_ENABLE_DOXYGEN
elf HERMES_USE_ELF
mpi BUILD_MPI_TESTS
openmp BUILD_OpenMP_TESTS
pthread HERMES_PTHREADS_ENABLED
shared BUILD_SHARED_LIBS
test BUILD_HSHM_TESTS
thallium HERMES_RPC_THALLIUM
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
57 changes: 57 additions & 0 deletions ports/cte-hermes-shm/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "cte-hermes-shm",
"version": "1.1.0",
"homepage": "https://grc.iit.edu/cte-hermes-shm/",
"description": "This library contains a variety of data structures and synchronization primitives which are compatible with shared memory.",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
"catch2"
],
"default-features": ["bench","boost","cereal","doxygen","elf","mpi","openmp","pthread","shared","test","thallium"],
"features": {
"bench": {
"description": "Build benchmarks"
},
"boost": {
"description": "Build Boost tests",
"dependencies": ["boost"]
},
"cereal": {
"description": "Enable serialization using cereal",
"dependencies": ["cereal"]
},
"coverage": {
"description": "Check how well tests cover code"
},
"doxygen": {
"description": "Check how well the code is documented"
},
"elf": {
"description": "Enable ELF"
},
"mpi": {
"description": "Build MPI tests",
"dependencies": ["mpi"]
},
"openmp": {
"description": "Build OpenMP tests"
},
"pthread": {
"description": "Support spawning pthreads"
},
"shared": {
"description": "Build shared libraries"
},
"test": {
"description": "Build tests"
},
"thallium": {
"description": "Test with Thallium",
"dependencies": ["thallium"]
}
}
}

0 comments on commit 4c2fe1a

Please sign in to comment.