From 478dccd3df075672e2f8ea9d76400b7bb97f8dc3 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 16 Sep 2022 20:52:38 +0200 Subject: [PATCH] Meta+CMake: Add ruc library --- .gitmodules | 3 +++ README.org | 1 + src/CMakeLists.txt | 1 + vendor/CMakeLists.txt | 5 ++++- vendor/ruc | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) create mode 160000 vendor/ruc diff --git a/.gitmodules b/.gitmodules index c69794b..5068a97 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "inferno/vendor/stb/stb"] path = vendor/stb/stb url = https://github.com/nothings/stb +[submodule "vendor/ruc"] + path = vendor/ruc + url = https://github.com/Riyyi/ruc diff --git a/README.org b/README.org index f7d0eb1..ad4199c 100644 --- a/README.org +++ b/README.org @@ -41,6 +41,7 @@ Or - [[https://github.com/g-truc/glm][GLM]] - [[https://github.com/nlohmann/json][JSON]] - [[https://github.com/lua/lua][Lua]] +- [[https://github.com/riyyi/ruc][ruc]] - [[https://github.com/ThePhD/sol2][sol3]] - [[https://github.com/nothings/stb][stb]] diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 102b8a9..4a6064a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,7 @@ target_include_directories(${ENGINE} PRIVATE "${CMAKE_SOURCE_DIR}/vendor/glm" "${CMAKE_SOURCE_DIR}/vendor/json/include" "${CMAKE_SOURCE_DIR}/vendor/lua" + "${CMAKE_SOURCE_DIR}/vendor/ruc/src" "${CMAKE_SOURCE_DIR}/vendor/sol2/include" "${CMAKE_SOURCE_DIR}/vendor/stb") target_link_libraries(${ENGINE} ${ENGINE}-dependencies) diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 9ec0057..a6bb551 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -6,6 +6,9 @@ set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # Add GLFW target to project add_subdirectory(glfw) +# Add RUC target to project +add_subdirectory(ruc) + # Define engine source files file(GLOB_RECURSE GLAD "glad/*.c") file(GLOB LUA "lua/lua/*.c") @@ -18,4 +21,4 @@ add_library(${ENGINE}-dependencies ${ENGINE_SOURCES}) target_include_directories(${ENGINE}-dependencies PRIVATE "glad/include" "lua") -target_link_libraries(${ENGINE}-dependencies glfw) +target_link_libraries(${ENGINE}-dependencies glfw ruc) diff --git a/vendor/ruc b/vendor/ruc new file mode 160000 index 0000000..50fe09e --- /dev/null +++ b/vendor/ruc @@ -0,0 +1 @@ +Subproject commit 50fe09ee566a7ef38db3a32b347ca64ba12d2650