MODEL LOADING BABY WORKS
This commit is contained in:
@@ -6,6 +6,8 @@ set(SRC_FILES
|
||||
|
||||
"src/Components/MeshRendererComponent.cpp"
|
||||
"src/Components/Rotator.cpp"
|
||||
"src/Components/Spinner.cpp"
|
||||
"src/Components/OrbitAndSpin.cpp"
|
||||
|
||||
"src/Graphics/BindlessSetManager.cpp"
|
||||
"src/Graphics/Camera.cpp"
|
||||
@@ -38,6 +40,7 @@ set(SRC_FILES
|
||||
|
||||
|
||||
"src/FS/AssetFS.cpp"
|
||||
"src/FS/Manifest.cpp"
|
||||
)
|
||||
|
||||
add_library(destrum ${SRC_FILES})
|
||||
@@ -63,6 +66,7 @@ target_link_libraries(destrum
|
||||
nlohmann_json::nlohmann_json
|
||||
spdlog::spdlog
|
||||
stb::image
|
||||
tinygltf
|
||||
|
||||
PRIVATE
|
||||
freetype::freetype
|
||||
@@ -98,15 +102,23 @@ target_compile_definitions(destrum
|
||||
|
||||
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_LIST_DIR}/assets_src")
|
||||
set(ASSETS_RUNTIME_DIR "${CMAKE_CURRENT_LIST_DIR}/assets_runtime")
|
||||
set(OUTPUT_ENGINE_ASSETS_DIR "${CMAKE_BINARY_DIR}/assets/engine")
|
||||
|
||||
add_custom_target(cook_assets_clean
|
||||
add_custom_command(TARGET destrum POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E rm -rf "${OUTPUT_ENGINE_ASSETS_DIR}"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/assets"
|
||||
COMMAND ${CMAKE_COMMAND} -E create_symlink "${ASSETS_RUNTIME_DIR}" "${OUTPUT_ENGINE_ASSETS_DIR}"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
add_custom_target(_internal_clean_engine_assets
|
||||
COMMAND TheChef
|
||||
--input "${ASSETS_SRC_DIR}"
|
||||
--output "${ASSETS_RUNTIME_DIR}"
|
||||
--clean
|
||||
)
|
||||
|
||||
add_custom_target(cook_assets ALL
|
||||
add_custom_target(_internal_cook_engine_assets ALL
|
||||
COMMAND TheChef
|
||||
--input "${ASSETS_SRC_DIR}"
|
||||
--output "${ASSETS_RUNTIME_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user