diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 20:02:46 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 20:02:46 +0100 |
| commit | ee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2 (patch) | |
| tree | 19d935b6f4ce6d3ede7dad1c21cb427fd7cd9f48 /CMakeLists.txt | |
| parent | 31fe77e83a23cf7fa72b7adfd7d7c8d226cefe0c (diff) | |
| download | snake.s-ee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2.tar.xz snake.s-ee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2.zip | |
refactor: extract SDL2 bindings build configuration
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d8f7928..9e2baef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,18 +6,7 @@ project("snake.s" LANGUAGES ASM ) -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_subdirectory("libs") add_executable("snake.s" "src/error.S" @@ -25,8 +14,7 @@ add_executable("snake.s" ) target_link_libraries("snake.s" PRIVATE - "SDL2::SDL2" - "SDL2_bindings" + "bindings::SDL2" ) install(TARGETS "snake.s") |
