From 66d305f76596ebd929b3b0e4a8c9a790c9633fd5 Mon Sep 17 00:00:00 2001 From: McMassiveNZ <12842622+McMassiveNZ@users.noreply.github.com> Date: Wed, 14 Dec 2022 02:53:37 +0100 Subject: [PATCH] vcpkg integration add vcpkg as a package manager --- .github/workflows/cmake.yml | 9 +++++++-- .gitmodules | 3 +++ external/vcpkg | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 external/vcpkg 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