if(${HOTRELOAD})
  add_library(game SHARED main.c)
  get_target_property(ENGINE_INCLUDES engine INCLUDE_DIRECTORIES)
  target_include_directories(game PRIVATE ${ENGINE_INCLUDES})
else()
  add_executable(game main.c)
  target_link_libraries(game PRIVATE engine)
endif()
set_default_target_options(game)
target_compile_definitions(game PRIVATE
  MAP_DIR="${CMAKE_SOURCE_DIR}/map"
  ASSET_DIR="${ASSET_DIR}")
target_include_directories(game PUBLIC include)

target_link_libraries(game PRIVATE
  m
  LibXml2::LibXml2
  SDL2::SDL2
  SDL2_image::SDL2_image
)
