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 /libs/CMakeLists.txt | |
| parent | 31fe77e83a23cf7fa72b7adfd7d7c8d226cefe0c (diff) | |
| download | snake.s-ee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2.tar.xz snake.s-ee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2.zip | |
refactor: extract SDL2 bindings build configuration
Diffstat (limited to 'libs/CMakeLists.txt')
| -rw-r--r-- | libs/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt new file mode 100644 index 0000000..9c1ac14 --- /dev/null +++ b/libs/CMakeLists.txt @@ -0,0 +1,22 @@ +find_package("SDL2" REQUIRED) + +add_library("bindings_SDL2" INTERFACE + "SDL.S" + + "SDL/error.S" + "SDL/events.S" + "SDL/init.S" + "SDL/rect.S" + "SDL/render.S" + "SDL/video.S" +) + +target_include_directories("bindings_SDL2" INTERFACE + "${CMAKE_CURRENT_SOURCE_DIR}" +) + +target_link_libraries("bindings_SDL2" INTERFACE + "SDL2::SDL2" +) + +add_library("bindings::SDL2" ALIAS "bindings_SDL2")
\ No newline at end of file |
