Meta+CMake: Add ruc library

This commit is contained in:
Riyyi
2022-09-26 13:00:00 +02:00
parent edc0ef7203
commit 478dccd3df
5 changed files with 10 additions and 1 deletions
+3
View File
@@ -19,3 +19,6 @@
[submodule "inferno/vendor/stb/stb"] [submodule "inferno/vendor/stb/stb"]
path = vendor/stb/stb path = vendor/stb/stb
url = https://github.com/nothings/stb url = https://github.com/nothings/stb
[submodule "vendor/ruc"]
path = vendor/ruc
url = https://github.com/Riyyi/ruc
+1
View File
@@ -41,6 +41,7 @@ Or
- [[https://github.com/g-truc/glm][GLM]] - [[https://github.com/g-truc/glm][GLM]]
- [[https://github.com/nlohmann/json][JSON]] - [[https://github.com/nlohmann/json][JSON]]
- [[https://github.com/lua/lua][Lua]] - [[https://github.com/lua/lua][Lua]]
- [[https://github.com/riyyi/ruc][ruc]]
- [[https://github.com/ThePhD/sol2][sol3]] - [[https://github.com/ThePhD/sol2][sol3]]
- [[https://github.com/nothings/stb][stb]] - [[https://github.com/nothings/stb][stb]]
+1
View File
@@ -9,6 +9,7 @@ target_include_directories(${ENGINE} PRIVATE
"${CMAKE_SOURCE_DIR}/vendor/glm" "${CMAKE_SOURCE_DIR}/vendor/glm"
"${CMAKE_SOURCE_DIR}/vendor/json/include" "${CMAKE_SOURCE_DIR}/vendor/json/include"
"${CMAKE_SOURCE_DIR}/vendor/lua" "${CMAKE_SOURCE_DIR}/vendor/lua"
"${CMAKE_SOURCE_DIR}/vendor/ruc/src"
"${CMAKE_SOURCE_DIR}/vendor/sol2/include" "${CMAKE_SOURCE_DIR}/vendor/sol2/include"
"${CMAKE_SOURCE_DIR}/vendor/stb") "${CMAKE_SOURCE_DIR}/vendor/stb")
target_link_libraries(${ENGINE} ${ENGINE}-dependencies) target_link_libraries(${ENGINE} ${ENGINE}-dependencies)
+4 -1
View File
@@ -6,6 +6,9 @@ set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
# Add GLFW target to project # Add GLFW target to project
add_subdirectory(glfw) add_subdirectory(glfw)
# Add RUC target to project
add_subdirectory(ruc)
# Define engine source files # Define engine source files
file(GLOB_RECURSE GLAD "glad/*.c") file(GLOB_RECURSE GLAD "glad/*.c")
file(GLOB LUA "lua/lua/*.c") file(GLOB LUA "lua/lua/*.c")
@@ -18,4 +21,4 @@ add_library(${ENGINE}-dependencies ${ENGINE_SOURCES})
target_include_directories(${ENGINE}-dependencies PRIVATE target_include_directories(${ENGINE}-dependencies PRIVATE
"glad/include" "glad/include"
"lua") "lua")
target_link_libraries(${ENGINE}-dependencies glfw) target_link_libraries(${ENGINE}-dependencies glfw ruc)
Vendored Submodule
+1
Submodule vendor/ruc added at 50fe09ee56