Skip to content

Developer Getting Started: Visual Studio

Cong edited this page Feb 15, 2020 · 35 revisions

For pre-2017 Visual Studios, see Visual Studio Setup.

Prerequisites

  1. Clone repo

  2. Setup vcpkg

  3. Run vcpkg install sdl2 sdl2-image sdl2-mixer

  4. Generate the project using CMake, with -DCMAKE_TOOLCHAIN_FILE=C:/Users/User/Documents/GitHub/vcpkg/scripts/buildsystems/vcpkg.cmake (replace with your installed location as prompted by vcpkg integrate install

  5. Open the generated .sln file using Visual Studio

  6. Set the cdogs-sdl project as the startup project

  7. Press F5 to compile and run. You are ready to go!