add_library(engine STATIC
    src/Engine.cpp
)

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

# SDL_TARGET is set by cmake/SDLSetup.cmake
target_link_libraries(engine PUBLIC ${SDL_TARGET})

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