summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-12 12:54:05 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-12 12:54:05 +0100
commit7ed4b197db16f0df3ddfddb4cfe6078a96d7e9ec (patch)
tree772c7cd781afc746df50566798c3acaf194911f1 /CMakeLists.txt
parentd497196768cebb2f82151b0788ad69fa9d871fae (diff)
Updated README.md; Updated main.cpp;
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt43
1 files changed, 0 insertions, 43 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
deleted file mode 100644
index 9711922..0000000
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-cmake_minimum_required(VERSION 3.10)
-project(GraphicsDemo)
-
-# Set C++ standard
-set(CMAKE_CXX_STANDARD 11)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
-
-# Define USE_SDL for compilation
-add_definitions(-DUSE_SDL)
-
-# Find SDL2
-find_package(SDL2 REQUIRED)
-
-# Include SDL2 headers
-include_directories(${SDL2_INCLUDE_DIRS})
-
-# Add executable
-add_executable(GraphicsDemo
- main.cpp
- graphics.cpp
- graphics.h
-)
-
-# Link SDL2
-target_link_libraries(GraphicsDemo ${SDL2_LIBRARIES})
-
-# For Windows, add necessary flags
-if(WIN32)
- # This ensures we get a console window for debugging
- # Remove this line to create a GUI-only application
- set_target_properties(GraphicsDemo PROPERTIES
- WIN32_EXECUTABLE FALSE
- )
-endif()
-
-# Platform-specific configurations
-if(MSVC)
- # MSVC specific flags
- target_compile_options(GraphicsDemo PRIVATE /W4)
-else()
- # GCC/Clang flags
- target_compile_options(GraphicsDemo PRIVATE -Wall -Wextra)
-endif() \ No newline at end of file