add_library(engine STATIC
    src/Engine.cpp
)

target_compile_features(engine PUBLIC cxx_std_23)

target_include_directories(engine
    PUBLIC  ${CMAKE_CURRENT_SOURCE_DIR}/include
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
)

target_link_libraries(engine PUBLIC
    ${SDL_TARGET}
)

target_compile_definitions(engine PRIVATE
    $<$<STREQUAL:${SDL_LINK_TYPE},static>:SDL_STATIC_LIB>
)