Skip to content

Add include_directories for OpenMP #159

Add include_directories for OpenMP

Add include_directories for OpenMP #159

Workflow file for this run

name: linux
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
os: [ubuntu-20.04]
include:
- os: ubuntu-20.04
c-compiler: "gcc"
cxx-compiler: "g++"
use_cuda: "OFF"
use_opencl: "OFF"
use_openmp: "ON"
steps:
- uses: actions/checkout@v3
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Install Catch2
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install --config Release
shell: bash
- name: Configure NiftyReg
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_ALL_DEP=ON \
-DUSE_CUDA=${{ matrix.use_cuda }} \
-DUSE_OPENCL=${{ matrix.use_opencl }} \
-DUSE_SSE=ON \
-DUSE_OPENMP=${{ matrix.use_openmp }} \
-DBUILD_TESTING=ON \
..
shell: bash
- name: Build NiftyReg
run: cmake --build build --config Release
shell: bash
- name: Run tests
run: ctest -V
working-directory: build
shell: bash