Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ jobs:
-DTRX_BUILD_TESTS=ON \
-DTRX_BUILD_EXAMPLES=ON \
-DTRX_ENABLE_NIFTI=ON \
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/install" \
-DCMAKE_BUILD_TYPE=Release \
${{ runner.os == 'Windows' && format('-DCMAKE_TOOLCHAIN_FILE={0}/vcpkg/scripts/buildsystems/vcpkg.cmake', github.workspace) || '' }}

Expand Down Expand Up @@ -311,10 +312,15 @@ jobs:
}
EOF

prefix_path="${GITHUB_WORKSPACE}/install"
if [[ "$RUNNER_OS" == "macOS" ]]; then
prefix_path="$(brew --prefix);${prefix_path}"
fi
cmake -S "$consumer" -B "$consumer/build" \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/build"
-DCMAKE_PREFIX_PATH="$prefix_path" \
${{ runner.os == 'Windows' && format('-DCMAKE_TOOLCHAIN_FILE={0}/vcpkg/scripts/buildsystems/vcpkg.cmake', github.workspace) || '' }}

- name: Build downstream consumer
run: cmake --build ci-consumer/build --config Release
3 changes: 2 additions & 1 deletion cmake/trx-cppConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

include(CMakeFindDependencyMacro)
find_dependency(Eigen3)
find_dependency(libzip CONFIG)
# mio and json11 are header-only and vendored; no package required
# libzip is a PRIVATE dependency — consumers do not need it
# libzip is a transitive dependency of the static library

include("${CMAKE_CURRENT_LIST_DIR}/trx-cppTargets.cmake")

Expand Down
Loading