diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4ea7107..7fa7174 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -23,12 +23,17 @@ jobs: BUILD_TYPE: [Debug, Release] steps: - - uses: actions/checkout@v3 + - name: checkout + uses: actions/checkout@v3 + + - name: run-vcpkg + uses: lukka/run-vcpkg@v10.7 - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} + -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/external/vcpkg/scripts/buildsystems/vcpkg.cmake - name: Build # Build your program with the given configuration diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cda8672 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "external/vcpkg"] + path = external/vcpkg + url = https://github.com/Microsoft/vcpkg.git diff --git a/external/vcpkg b/external/vcpkg new file mode 160000 index 0000000..af031ae --- /dev/null +++ b/external/vcpkg @@ -0,0 +1 @@ +Subproject commit af031ae388730db1cf6d1d7b3752c74209d7bbe1