Changed assets and shader path functions, removed asset download script

This commit is contained in:
Sascha Willems 2023-05-09 21:05:01 +02:00
parent 99b226237a
commit c13ba757b7
4 changed files with 26 additions and 42 deletions

View file

@ -120,10 +120,10 @@ function(buildExamples)
endfunction(buildExamples)
if(RESOURCE_INSTALL_DIR)
add_definitions(-DVK_EXAMPLE_DATA_DIR=\"${RESOURCE_INSTALL_DIR}/\")
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${RESOURCE_INSTALL_DIR}/\")
install(DIRECTORY data/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
else()
add_definitions(-DVK_EXAMPLE_DATA_DIR=\"${CMAKE_SOURCE_DIR}/data/\")
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${CMAKE_SOURCE_DIR}/assets/\")
endif()
# Compiler specific stuff