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

@ -518,7 +518,10 @@ void gui_application::OnChangeStyleSheetRequest()
locs << m_gui_settings->GetSettingsDir();
#if !defined(_WIN32)
#ifdef __APPLE__
#if defined(DATADIR)
const QString dataPath = (DATADIR);
locs << dataPath + "/GuiConfigs/";
#elif defined(__APPLE__)
locs << QCoreApplication::applicationDirPath() + "/../Resources/GuiConfigs/";
#else
locs << QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";