Riyyi
2 years ago
14 changed files with 43 additions and 31 deletions
@ -1,21 +1,21 @@
|
||||
[submodule "inferno/vendor/glfw"] |
||||
path = inferno/vendor/glfw |
||||
path = vendor/glfw |
||||
url = https://github.com/glfw/glfw |
||||
[submodule "inferno/vendor/glm"] |
||||
path = inferno/vendor/glm |
||||
path = vendor/glm |
||||
url = https://github.com/g-truc/glm |
||||
[submodule "inferno/vendor/json"] |
||||
path = inferno/vendor/json |
||||
path = vendor/json |
||||
url = https://github.com/nlohmann/json |
||||
[submodule "inferno/vendor/entt"] |
||||
path = inferno/vendor/entt |
||||
path = vendor/entt |
||||
url = https://github.com/skypjack/entt |
||||
[submodule "inferno/vendor/lua/lua"] |
||||
path = inferno/vendor/lua/lua |
||||
path = vendor/lua/lua |
||||
url = https://github.com/lua/lua |
||||
[submodule "inferno/vendor/sol2"] |
||||
path = inferno/vendor/sol2 |
||||
path = vendor/sol2 |
||||
url = https://github.com/ThePhD/sol2 |
||||
[submodule "inferno/vendor/stb/stb"] |
||||
path = inferno/vendor/stb/stb |
||||
path = vendor/stb/stb |
||||
url = https://github.com/nothings/stb |
||||
|
@ -0,0 +1,21 @@
|
||||
# GLFW options |
||||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) |
||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) |
||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) |
||||
|
||||
# Add GLFW target to project |
||||
add_subdirectory(glfw) |
||||
|
||||
# Define engine source files |
||||
file(GLOB_RECURSE GLAD "glad/*.c") |
||||
file(GLOB LUA "lua/lua/*.c") |
||||
list(REMOVE_ITEM LUA "${CMAKE_CURRENT_SOURCE_DIR}/lua/lua/onelua.c") # Do not compile single file variant |
||||
list(REMOVE_ITEM LUA "${CMAKE_CURRENT_SOURCE_DIR}/lua/lua/ltests.c") # Do not compile internal debugging |
||||
list(REMOVE_ITEM LUA "${CMAKE_CURRENT_SOURCE_DIR}/lua/lua/lua.c") # Do not compile interpreter |
||||
set(ENGINE_SOURCES ${GLAD} ${LUA}) |
||||
|
||||
add_library(${ENGINE}-dependencies ${ENGINE_SOURCES}) |
||||
target_include_directories(${ENGINE}-dependencies PRIVATE |
||||
"glad/include" |
||||
"lua") |
||||
target_link_libraries(${ENGINE}-dependencies glfw) |
Loading…
Reference in new issue