Path lookup
This commit is contained in:
parent
a124271b7e
commit
69bb4d6ac0
1 changed files with 4 additions and 1 deletions
|
|
@ -121,9 +121,12 @@ endfunction(buildExamples)
|
|||
|
||||
if(RESOURCE_INSTALL_DIR)
|
||||
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${RESOURCE_INSTALL_DIR}/\")
|
||||
install(DIRECTORY data/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
|
||||
add_definitions(-DVK_EXAMPLE_SHADERS_DIR=\"${RESOURCE_INSTALL_DIR}/\")
|
||||
install(DIRECTORY assets/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
|
||||
install(DIRECTORY shader/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
|
||||
else()
|
||||
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${CMAKE_SOURCE_DIR}/assets/\")
|
||||
add_definitions(-DVK_EXAMPLE_SHADERS_DIR=\"${CMAKE_SOURCE_DIR}/shaders/\")
|
||||
endif()
|
||||
|
||||
# Compiler specific stuff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue