Merge pull request #435 from Ygrik2003/Refactoring-cmake

Refactoring cmake
This commit is contained in:
Ygrik2003 2025-03-20 20:59:19 +03:00 • committed by GitHub
parent a8eda192af
commit 6c3d2d0907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 210 additions and 185 deletions

View file

@ -28,9 +28,7 @@ jobs:
msystem: clang64
install: >-
mingw-w64-clang-x86_64-toolchain
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-make
mingw-w64-clang-x86_64-luajit
mingw-w64-clang-x86_64-cmake
git
- name: Set up vcpkg
shell: msys2 {0}
@ -41,11 +39,12 @@ jobs:
./vcpkg integrate install
cd ..
- name: Configure project with CMake and vcpkg
env:
VCPKG_DEFAULT_TRIPLET: x64-mingw-static
VCPKG_DEFAULT_HOST_TRIPLET: x64-mingw-static
shell: msys2 {0}
run: |
export VCPKG_DEFAULT_TRIPLET=x64-mingw-static
export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static
export VCPKG_ROOT=./vcpkg
export VCPKG_ROOT=$(pwd)/vcpkg
mkdir build
cd build
cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake ..