29 lines
715 B
CMake
29 lines
715 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(observations-on-the-sublime-dynamics-of-eroding-matter)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Find SDL2
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
# Collect all source files
|
|
set(SOURCES
|
|
src/main.cpp
|
|
src/core/Application.cpp
|
|
src/window/Window.cpp
|
|
src/renderer/Renderer.cpp
|
|
src/events/EventManager.cpp
|
|
)
|
|
|
|
# Add executable
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
|
|
|
# Link SDL2
|
|
target_link_libraries(${PROJECT_NAME} SDL2::SDL2)
|
|
|
|
# Include directories for SDL2
|
|
target_include_directories(${PROJECT_NAME} PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
# Set include directories for our source files
|
|
target_include_directories(${PROJECT_NAME} PRIVATE src)
|