Browse Source

Meta+CMake: Add ruc library

master
Riyyi 2 years ago
parent
commit
478dccd3df
  1. 3
      .gitmodules
  2. 1
      README.org
  3. 1
      src/CMakeLists.txt
  4. 5
      vendor/CMakeLists.txt
  5. 1
      vendor/ruc

3
.gitmodules vendored

@ -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
README.org

@ -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
src/CMakeLists.txt

@ -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)

5
vendor/CMakeLists.txt vendored

@ -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)

1
vendor/ruc vendored

@ -0,0 +1 @@
Subproject commit 50fe09ee566a7ef38db3a32b347ca64ba12d2650
Loading…
Cancel
Save