Link resources into library & init in main().
This commit is contained in:
parent
461157bbc9
commit
e7c064809c
@ -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)
|
||||
|
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user