From 2a1f31365dade481c32efc3307f94cc052d00f7f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 18 Feb 2026 13:19:52 +0100 Subject: refactor: split SDL bindings --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d88dcf..d8f7928 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,17 @@ project("snake.s" find_package("SDL2" REQUIRED) +add_library("SDL2_bindings" INTERFACE + "libs/SDL.S" + "libs/SDL/init.S" + "libs/SDL/render.S" + "libs/SDL/video.S" +) + +target_include_directories("SDL2_bindings" INTERFACE + "${CMAKE_CURRENT_SOURCE_DIR}/libs" +) + add_executable("snake.s" "src/error.S" "src/main.S" @@ -15,6 +26,7 @@ add_executable("snake.s" target_link_libraries("snake.s" PRIVATE "SDL2::SDL2" + "SDL2_bindings" ) install(TARGETS "snake.s") -- cgit v1.2.3