Fix mac build.

This commit is contained in:
John Maguire 2011-01-16 17:26:25 +00:00
parent 587a35eab4
commit d7df24816c
2 changed files with 2 additions and 8 deletions

View File

@ -1,12 +1,6 @@
function(install_script_files scriptname)
if(APPLE)
foreach(file ${ARGN})
configure_file(
"${file}"
"${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/${file}"
COPY_ONLY
)
endforeach(file)
install(FILES ${ARGN} DESTINATION ${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/)
else(APPLE)
install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/)
endif(APPLE)

View File

@ -78,7 +78,7 @@ ScriptManager::ScriptManager(QObject* parent)
#if defined(Q_OS_WIN32)
search_paths_ << QCoreApplication::applicationDirPath() + "/scripts";
#elif defined(Q_OS_MAC)
search_paths_ << mac::GetResourcesPath() + "/scripts");
search_paths_ << mac::GetResourcesPath() + "/scripts";
#endif
}