[wip] Include resources

This commit is contained in:
Berkus Decker 2017-11-22 05:02:32 +02:00
parent 08da461a0e
commit a2ba90a56b
1 changed files with 14 additions and 0 deletions

View File

@ -435,6 +435,7 @@ if (APPLE)
SourceFiles/platform/mac/specific_mac_p.mm SourceFiles/platform/mac/specific_mac_p.mm
SourceFiles/platform/mac/window_title_mac.mm SourceFiles/platform/mac/window_title_mac.mm
) )
set(tg_RESOURCES Resources/qrc/telegram_mac.qrc)
endif() endif()
if (WIN32) if (WIN32)
set(PLAT_SRC ${PLAT_SRC} set(PLAT_SRC ${PLAT_SRC}
@ -448,6 +449,7 @@ if (WIN32)
SourceFiles/platform/win/windows_dlls.cpp SourceFiles/platform/win/windows_dlls.cpp
SourceFiles/platform/win/windows_event_filter.cpp SourceFiles/platform/win/windows_event_filter.cpp
) )
set(tg_RESOURCES Resources/qrc/telegram_wnd.qrc)
endif() endif()
if (WINRT) if (WINRT)
set(PLAT_SRC ${PLAT_SRC} set(PLAT_SRC ${PLAT_SRC}
@ -465,8 +467,18 @@ if (LINUX)
SourceFiles/platform/linux/notifications_manager_linux.cpp SourceFiles/platform/linux/notifications_manager_linux.cpp
SourceFiles/platform/linux/specific_linux.cpp SourceFiles/platform/linux/specific_linux.cpp
) )
set(tg_RESOURCES Resources/qrc/telegram_linux.qrc)
endif() endif()
list(APPEND tg_RESOURCES
Resources/qrc/telegram.qrc
Resources/qrc/telegram_sounds.qrc
Resources/qrc/telegram_emoji.qrc
Resources/qrc/telegram_emoji_large.qrc
)
qt5_add_resources(tg_RESOURCES_RCC ${tg_RESOURCES})
set(THIRD_PARTY_SRC) set(THIRD_PARTY_SRC)
if (APPLE) if (APPLE)
@ -522,6 +534,8 @@ add_executable(Telegram ${GUI_TYPE}
${APP_SRC} ${APP_SRC}
${PLAT_SRC} ${PLAT_SRC}
${THIRD_PARTY_SRC} ${THIRD_PARTY_SRC}
${tg_RESOURCES}
${tg_RESOURCES_RCC}
${APPLE_BUNDLE_SRC} ${APPLE_BUNDLE_SRC}
) )
target_link_libraries(Telegram tg_boxes) target_link_libraries(Telegram tg_boxes)