projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.22k stars 364 forks source link

Add vcpkg.json #739

Closed insel-maz closed 7 months ago

insel-maz commented 8 months ago

Use vcpkg in (the recommended) manifest mode.

This allows the library to be build by running the following commands in the Developer PowerShell for VS 2022:

cd projectm
cmake . -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$PWD/dist" "-DCMAKE_TOOLCHAIN_FILE=$Env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build --target install --config Release
kblaschke commented 8 months ago

Good thing to have! Yould you mind changing the GitHub Actions Windows workflow accordingly? I think we can then omit the "install dependencies" phase, right?

Blaquewithaq commented 7 months ago

I'll finish this PR off sometime today

kblaschke commented 7 months ago

Done in PR #744, so closing this one. Still thanks for the great idea!