From 025345351762602a435e58014650266674801ff3 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 22 Jun 2022 18:30:26 +0200 Subject: Move resources to a shared libary This allows us to use resources in the cmd app and the unit tests. Fixes: #8839 --- src/gui/CMakeLists.txt | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/gui/CMakeLists.txt') diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 43c283d04..b87a44404 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -186,28 +186,8 @@ set_target_properties(owncloud PROPERTIES AUTOUIC ON AUTORCC ON ) -target_link_libraries(owncloud owncloudCore) - - -find_package(Qt5LinguistTools) -if(Qt5LinguistTools_FOUND) - # Handle Translations, pick all client_* files from trans directory. - file(GLOB client_translations ${CMAKE_SOURCE_DIR}/translations/client_*.ts) - qt5_add_translation(client_compiled_translations ${client_translations}) - target_sources(owncloud PRIVATE ${client_compiled_translations}) - add_resources_to_target( - TARGET owncloud - PREFIX translations - FILES "${client_compiled_translations}" - ) -endif() - -#TODO Move resources files -target_sources(owncloud PRIVATE - ${PROJECT_SOURCE_DIR}/client.qrc - ${PROJECT_SOURCE_DIR}/core_theme.qrc) +target_link_libraries(owncloud owncloudCore owncloudResources) -generate_theme(owncloud OWNCLOUD_SIDEBAR_ICONS) MESSAGE(STATUS "OWNCLOUD_SIDEBAR_ICONS: ${APPLICATION_ICON_NAME}: ${OWNCLOUD_SIDEBAR_ICONS}") ecm_add_app_icon(appIcons ICONS "${OWNCLOUD_ICONS}" SIDEBAR_ICONS "${OWNCLOUD_SIDEBAR_ICONS}" OUTFILE_BASENAME "${APPLICATION_ICON_NAME}") -- cgit v1.2.3