Skip to content
Snippets Groups Projects
Verified Commit b2070feb authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#26] Added STB as dependency for texture loading later on

parent 5b87ee71
No related branches found
No related tags found
1 merge request!19Resolve "Asset Loading"
Pipeline #25180 passed
......@@ -7,3 +7,6 @@
[submodule "modules/asset_loader/lib/json"]
path = modules/asset_loader/lib/json
url = https://github.com/nlohmann/json.git
[submodule "modules/asset_loader/lib/stb"]
path = modules/asset_loader/lib/stb
url = https://github.com/nothings/stb.git
......@@ -27,8 +27,14 @@ include(config/NLOHMANN_JSON.cmake)
# Check and load FX-GLTF
include(config/FX_GLTF.cmake)
# Check and load STB
include(config/STB.cmake)
# link the required libraries to the module
target_link_libraries(vkcv_asset_loader ${vkcv_asset_loader_libraries})
# including headers of dependencies and the VkCV framework
target_include_directories(vkcv_asset_loader SYSTEM BEFORE PRIVATE ${vkcv_asset_loader_includes})
# add the own include directory for public headers
target_include_directories(vkcv_asset_loader BEFORE PUBLIC ${vkcv_asset_loader_include})
if (EXISTS "${vkcv_asset_loader_lib_path}/stb")
list(APPEND vkcv_asset_loader_includes ${vkcv_asset_loader_lib}/stb)
else()
message(WARNING "STB is required..! Update the submodules!")
endif ()
Subproject commit c9064e317699d2e495f36ba4f9ac037e88ee371a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment