Merge pull request #1049 from thochstein/cross-compile-install
Fix install location for assets and shaders
This commit is contained in:
commit
e2093e845c
1 changed files with 2 additions and 2 deletions
|
|
@ -121,8 +121,8 @@ endfunction(buildExamples)
|
|||
if(RESOURCE_INSTALL_DIR)
|
||||
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${RESOURCE_INSTALL_DIR}/\")
|
||||
add_definitions(-DVK_EXAMPLE_SHADERS_DIR=\"${RESOURCE_INSTALL_DIR}/\")
|
||||
install(DIRECTORY assets/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
|
||||
install(DIRECTORY shaders/ DESTINATION ${RESOURCE_INSTALL_DIR}/)
|
||||
install(DIRECTORY assets/ DESTINATION ${RESOURCE_INSTALL_DIR}/assets/)
|
||||
install(DIRECTORY shaders/ DESTINATION ${RESOURCE_INSTALL_DIR}/shaders/)
|
||||
else()
|
||||
add_definitions(-DVK_EXAMPLE_ASSETS_DIR=\"${CMAKE_SOURCE_DIR}/assets/\")
|
||||
add_definitions(-DVK_EXAMPLE_SHADERS_DIR=\"${CMAKE_SOURCE_DIR}/shaders/\")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue