diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 4912c0113..13351d1e1 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -46,6 +46,21 @@ jobs: ninja --version clang --version + - name: Install dependencies (Windows) + if: runner.os == 'Windows' + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Setup MSVC + if: runner.os == 'Windows' + uses: ilammy/msvc-dev-cmd@v1 + + - name: Install CMake and Ninja (Windows) + if: runner.os == 'Windows' + run: | + choco install cmake ninja + cmake --version + ninja --version + - name: Setup vcpkg uses: lukka/run-vcpkg@v11 with: diff --git a/omnn/rt/CMakeLists.txt b/omnn/rt/CMakeLists.txt index e0f49cf6b..07de44810 100644 --- a/omnn/rt/CMakeLists.txt +++ b/omnn/rt/CMakeLists.txt @@ -10,10 +10,15 @@ if(Boost_FOUND) ) endif() endif() + if (OPENMIND_USE_VCPKG) + list(APPEND DEPENDENCIES Boost::multiprecision) + endif() endif() if(OPENMIND_USE_OPENCL) - set(DEPENDENCIES ${DEPENDENCIES} OpenCL) + list(APPEND DEPENDENCIES + Boost::compute + OpenCL) endif() lib(${DEPENDENCIES})