-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
620705a
commit 71b0d93
Showing
645 changed files
with
967 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,9 @@ | ||
# egnine sources | ||
file(GLOB_RECURSE ENGINE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/**/*.cpp ${CMAKE_CURRENT_LIST_DIR}/**/*.hpp) | ||
########################################################### | ||
# Engine runtime source code | ||
|
||
# declare static engine library | ||
add_library(wmoge STATIC ${ENGINE_SOURCES}) | ||
add_subdirectory(code) | ||
|
||
# add interface to the engine for plugins | ||
add_library(wmoge_headers INTERFACE) | ||
########################################################### | ||
# Plugins sources (standard plugins for engine) | ||
|
||
# specify public include path, so user can reference engine files by modules names | ||
target_include_directories(wmoge_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/) | ||
|
||
# engine dependencies, which are also visible to the engine users | ||
target_link_libraries(wmoge_headers INTERFACE cxxopts) | ||
target_link_libraries(wmoge_headers INTERFACE tinyxml2) | ||
target_link_libraries(wmoge_headers INTERFACE ryml) | ||
target_link_libraries(wmoge_headers INTERFACE magic_enum) | ||
target_link_libraries(wmoge_headers INTERFACE robin_hood) | ||
target_link_libraries(wmoge_headers INTERFACE svector) | ||
target_link_libraries(wmoge_headers INTERFACE yamc) | ||
|
||
# generic functions to setup target | ||
wmoge_target_iface_defs(wmoge_headers) | ||
|
||
# engine headers target link to engine library | ||
target_link_libraries(wmoge PUBLIC wmoge_headers) | ||
|
||
# engine dependencies, private | ||
target_link_libraries(wmoge PRIVATE glfw) | ||
target_link_libraries(wmoge PRIVATE whereami) | ||
target_link_libraries(wmoge PRIVATE stbimage) | ||
target_link_libraries(wmoge PRIVATE filewatch) | ||
target_link_libraries(wmoge PRIVATE lz4) | ||
target_link_libraries(wmoge PRIVATE compressonator) | ||
target_link_libraries(wmoge PRIVATE base64) | ||
target_link_libraries(wmoge PRIVATE dynalo) | ||
target_link_libraries(wmoge PRIVATE sha256) | ||
|
||
# audio dependencies, private | ||
target_link_libraries(wmoge PRIVATE OpenAL) | ||
target_link_libraries(wmoge PRIVATE audio_file) | ||
|
||
# lua scripting dependencies, private | ||
target_link_libraries(wmoge PRIVATE lua_static) | ||
target_link_libraries(wmoge PRIVATE LuaBridge) | ||
|
||
# vulkan rendering backend related dependencies, private | ||
target_link_libraries(wmoge PRIVATE volk) | ||
target_link_libraries(wmoge PRIVATE vma) | ||
target_link_libraries(wmoge PRIVATE glslang) | ||
target_link_libraries(wmoge PRIVATE SPIRV) | ||
add_subdirectory(plugins) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# egnine sources | ||
file(GLOB_RECURSE ENGINE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/**/*.cpp ${CMAKE_CURRENT_LIST_DIR}/**/*.hpp) | ||
|
||
# declare static engine library | ||
add_library(wmoge STATIC ${ENGINE_SOURCES}) | ||
|
||
# add interface to the engine for plugins | ||
add_library(wmoge_headers INTERFACE) | ||
|
||
# specify public include path, so user can reference engine files by modules names | ||
target_include_directories(wmoge_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/) | ||
|
||
# engine dependencies, which are also visible to the engine users | ||
target_link_libraries(wmoge_headers INTERFACE cxxopts) | ||
target_link_libraries(wmoge_headers INTERFACE tinyxml2) | ||
target_link_libraries(wmoge_headers INTERFACE ryml) | ||
target_link_libraries(wmoge_headers INTERFACE magic_enum) | ||
target_link_libraries(wmoge_headers INTERFACE robin_hood) | ||
target_link_libraries(wmoge_headers INTERFACE svector) | ||
target_link_libraries(wmoge_headers INTERFACE yamc) | ||
|
||
# generic functions to setup target | ||
wmoge_target_iface_defs(wmoge_headers) | ||
|
||
# engine headers target link to engine library | ||
target_link_libraries(wmoge PUBLIC wmoge_headers) | ||
|
||
# engine dependencies, private | ||
target_link_libraries(wmoge PRIVATE glfw) | ||
target_link_libraries(wmoge PRIVATE whereami) | ||
target_link_libraries(wmoge PRIVATE stbimage) | ||
target_link_libraries(wmoge PRIVATE filewatch) | ||
target_link_libraries(wmoge PRIVATE lz4) | ||
target_link_libraries(wmoge PRIVATE compressonator) | ||
target_link_libraries(wmoge PRIVATE base64) | ||
target_link_libraries(wmoge PRIVATE dynalo) | ||
target_link_libraries(wmoge PRIVATE sha256) | ||
|
||
# audio dependencies, private | ||
target_link_libraries(wmoge PRIVATE OpenAL) | ||
target_link_libraries(wmoge PRIVATE audio_file) | ||
|
||
# lua scripting dependencies, private | ||
target_link_libraries(wmoge PRIVATE lua_static) | ||
target_link_libraries(wmoge PRIVATE LuaBridge) | ||
|
||
# vulkan rendering backend related dependencies, private | ||
target_link_libraries(wmoge PRIVATE volk) | ||
target_link_libraries(wmoge PRIVATE vma) | ||
target_link_libraries(wmoge PRIVATE glslang) | ||
target_link_libraries(wmoge PRIVATE SPIRV) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.