Support installing demos, support out-of-tree builds
This is especially useful for cross-compile situation where testing happens on target. -DRESOURCE_INSTALL_DIR=<path> decides where data is installed (and where the binaries will load the data from): if it's left empty, then nothing will be installed and binaries will load the data from CMAKE_SOURCE_DIR. Binaries are now correctly built in CMAKE_BINARY_DIR.
This commit is contained in:
parent
18df00c7b4
commit
7798901a46
2 changed files with 16 additions and 1 deletions
|
|
@ -83,6 +83,8 @@ const std::string VulkanExampleBase::getAssetPath()
|
|||
{
|
||||
#if defined(__ANDROID__)
|
||||
return "";
|
||||
#elif defined(VK_EXAMPLE_DATA_DIR)
|
||||
return VK_EXAMPLE_DATA_DIR;
|
||||
#else
|
||||
return "./../data/";
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue