diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-12 12:54:05 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-12 12:54:05 +0100 |
| commit | 7ed4b197db16f0df3ddfddb4cfe6078a96d7e9ec (patch) | |
| tree | 772c7cd781afc746df50566798c3acaf194911f1 /README.md | |
| parent | d497196768cebb2f82151b0788ad69fa9d871fae (diff) | |
Updated README.md; Updated main.cpp;
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -57,25 +57,7 @@ make run **Note**: Make sure `SDL2.dll` from `SDL2/bin` is in the same directory as the executable or in your PATH. -#### Option 2: Using CMake - -```bash -mkdir build -cd build - -# If SDL2 is in a standard location (C:/SDL2 or D:/SDL2) -cmake .. - -# If SDL2 is elsewhere -cmake .. -DCMAKE_PREFIX_PATH=D:/path/to/SDL2 - -# Build -cmake --build . -``` - -The CMakeLists.txt will automatically copy SDL2.dll to the build directory. - -#### Option 3: Manual compilation with g++/MinGW +#### Option 2: Manual compilation with g++/MinGW ```bash # Adjust paths to match your SDL2 installation @@ -88,7 +70,7 @@ g++ -std=c++11 -DUSE_SDL -o GraphicsDemo.exe main.cpp graphics.cpp ^ copy C:\SDL2\bin\SDL2.dll . ``` -#### Option 4: Manual compilation with MSVC +#### Option 3: Manual compilation with MSVC ```bash cl /EHsc /DUSE_SDL main.cpp graphics.cpp ^ |
