Link resources into library & init in main().

This commit is contained in:
John Maguire 2010-03-01 12:15:15 +00:00
parent 461157bbc9
commit e7c064809c
2 changed files with 4 additions and 1 deletions

View File

@ -162,6 +162,7 @@ target_link_libraries(clementine_lib
${XINE_LIBRARIES}
${LIBNOTIFY_LIBRARIES}
${TAGLIB_LIBRARIES}
${CLEMENTINE-SOURCES-RESOURCE}
lastfm
)
if (APPLE)
@ -174,7 +175,6 @@ add_dependencies(clementine_lib qtsingleapplication qxt)
add_executable(clementine
MACOSX_BUNDLE
${CLEMENTINE-SOURCES-RESOURCE}
main.cpp
)
target_link_libraries(clementine clementine_lib)

View File

@ -35,6 +35,9 @@ int main(int argc, char *argv[]) {
// Couldn't send the message so start anyway
}
// Resources
Q_INIT_RESOURCE(data);
// Translations
QTranslator qt_translator;
qt_translator.load("qt_" + QLocale::system().name(),