From 9a77ee20087719e3c739dd0ace9f3efdf470b7b3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 29 Oct 2024 07:40:14 -0700 Subject: [PATCH] Added instructions for creating Visual Studio projects for examples --- examples/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index ff5758938f..dd971c10e1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -143,6 +143,16 @@ add_sdl_example_executable(pen-drawing-lines SOURCES pen/01-drawing-lines/drawin add_sdl_example_executable(game-snake SOURCES game/01-snake/snake.c) add_sdl_example_executable(game-woodeneye-008 SOURCES game/02-woodeneye-008/woodeneye-008.c) +# When you add an example, remember to add the Visual Studio project as well: +# - Add a new example in examples/ +# - Run python VisualC/examples/generate.py +# - Take note of the newly generated .vcxproj files +# - Modify the .vcxproj files if necessary (adding content such as BMP or WAV files) +# - Open VisualC/SDL.sln in Visual Studio or JetBrains Rider +# - Locate the appropriate folder in the Solution Explorer +# - Add the newly generated projects: Right click -> Add -> Existing project... +# - Test if they work +# - Save the SDL.sln solution if(PSP) # Build EBOOT files if building for PSP