This is a mockup project to learn proper environment configuration for an ImGUI application.
cd /path/to/install/to # i.e "~/dev/"
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
export VCPKG_DIR=$(pwd)
cd /path/to/this/repo
cmake -B ./build -S . "-DCMAKE_TOOLCHAIN_FILE=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake"
cmake --build ./build
To automatically configure, add this in .vscode/settings.json
:
{
"cmake.configureOnOpen": false,
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "$VCPKG_DIR/vcpkg/scripts/buildsystems/vcpkg.cmake"
}
}
This should allow you to build and run through VSCode.