From e4d2987c546bee3c45571450f435de4bdd12651c Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 25 Jul 2023 22:47:22 +0200 Subject: [PATCH] add sdl --- external/CMakeLists.txt | 2 ++ external/sdl/CMakeLists.txt | 9 +++++++++ src/CMakeLists.txt | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 external/sdl/CMakeLists.txt diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index dfde631..d4af481 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -12,3 +12,5 @@ add_subdirectory(./toxcore) add_subdirectory(./solanaceae_toxcore) add_subdirectory(./solanaceae_tox) +add_subdirectory(./sdl) + diff --git a/external/sdl/CMakeLists.txt b/external/sdl/CMakeLists.txt new file mode 100644 index 0000000..c2a4084 --- /dev/null +++ b/external/sdl/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +set(SDL_SHARED OFF CACHE INTERNAL "") +set(SDL_STATIC ON CACHE INTERNAL "") +#TODO: pic ? + +add_subdirectory(./SDL EXCLUDE_FROM_ALL) +#add_subdirectory(./SDL) + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 56c2fa8..641ad36 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,8 @@ target_link_libraries(tomato PUBLIC solanaceae_tox_contacts solanaceae_tox_messages + SDL3::SDL3 + #imgui #imgui_backend_opengl3 )