From 8bc01fccc138461f3bd58cd9d2707309fe745a43 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 19 Jan 2025 02:30:20 +0500 Subject: feat: raygui dependency --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4617332..be2f5b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,4 +36,15 @@ if (NOT raylib_FOUND) FetchContent_MakeAvailable(raylib) endif() -target_link_libraries(sillyeditor PRIVATE raylib) +# raygui +include(FetchContent) +FetchContent_Declare( + raygui + GIT_REPOSITORY https://github.com/raysan5/raygui.git + GIT_TAG 4.0 +) +FetchContent_MakeAvailable(raygui) + +target_include_directories(sillyeditor PRIVATE ${raygui_SOURCE_DIR}/src) + +target_link_libraries(sillyeditor PRIVATE raylib m) -- cgit v1.2.3