You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are no CMake install rules for the binary & assets, I think that would be a good addition.
For that, some more sophisticated logic for finding the assets at runtime would be needed, so Unixoid-style FHS (or Darwin-style bundles ig) can work without cding to some weird directories. For example
Maybe search in a path passed via an envvar or switch first in case the normal mechanism needs to be overridden
Then in $CWD/res so Windows-style packaging (exe in a dir, assets next to it) works as expected
Then in a system path - CMake has a CMAKE_INSTALL_DATADIR / CMAKE_INSTALL_FULL_DATADIR for that sort of stuff when using GNUInstallDirs to specify install paths (dunno if it handles bundles on Darwin ottomh though)
(or some other path configured at build-time)
Also, some graceful error handling would help so missing assets don't lead to a SIGSEGV.
Currently there are no CMake
installrules for the binary & assets, I think that would be a good addition.For that, some more sophisticated logic for finding the assets at runtime would be needed, so Unixoid-style FHS (or Darwin-style bundles ig) can work without
cding to some weird directories. For example$CWD/resso Windows-style packaging (exe in a dir, assets next to it) works as expected$XDG_DATA_HOMEmaybe, related to Use XDG basedir specs for storing savedata #3)CMAKE_INSTALL_DATADIR/CMAKE_INSTALL_FULL_DATADIRfor that sort of stuff when usingGNUInstallDirsto specify install paths (dunno if it handles bundles on Darwin ottomh though)(or some other path configured at build-time)