diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-06-22 19:30:26 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-06-28 15:04:08 +0300 |
commit | 025345351762602a435e58014650266674801ff3 (patch) | |
tree | f19764e85c247bf7739c982cd6fc8de16ed13b7e /src/gui/CMakeLists.txt | |
parent | 44a72a011342711d7b663fc8a0f9639485d6b591 (diff) |
Move resources to a shared libary
This allows us to use resources in the cmd app and the unit tests.
Fixes: #8839
Diffstat (limited to 'src/gui/CMakeLists.txt')
-rw-r--r-- | src/gui/CMakeLists.txt | 22 |
1 files changed, 1 insertions, 21 deletions
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}") |