cmake_minimum_required(VERSION 3.25)

project(Phoenix)

find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)

include_directories(${SDL2_INCLUDE_DIRS})
include_directories(${SDL2_image_INCLUDE_DIRS})
include_directories("include")
include_directories("imgui")
include_directories("imgui/backends")

file(GLOB_RECURSE source_files "src/*.cpp" "src/*.hpp")

add_executable(PhoenixGame ${source_files} imgui/imgui.cpp imgui/imgui_draw.cpp imgui/imgui_widgets.cpp imgui/imgui_demo.cpp imgui/imgui_tables.cpp imgui/backends/imgui_impl_sdl2.cpp imgui/backends/imgui_impl_sdlrenderer.cpp imgui/misc/cpp/imgui_stdlib.cpp)
target_link_libraries(PhoenixGame ${SDL2_LIBRARIES} SDL2_image)