cmake: Use GNUInstalldirs

This commit is contained in:
orbea 2021-11-18 13:46:41 -08:00 committed by Megamouse
parent c52d447381
commit 59f253ba24
4 changed files with 24 additions and 11 deletions

View file

@ -116,7 +116,10 @@ namespace rsx
if (success)
{
std::string executablePath = dirname(result);
#ifdef __APPLE__
#if defined(DATADIR)
const std::string dataPath (DATADIR);
src = dataPath + "/Icons/ui/" + res;
#elif defined(__APPLE__)
src = executablePath + "/../Resources/Icons/ui/" + res;
#else
src = executablePath + "/../share/rpcs3/Icons/ui/" + res;