Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Emulators
stacer
stacer-cmake-install-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stacer-cmake-install-fix.patch of Package stacer
diff -rub a/stacer/CMakeLists.txt b/stacer/CMakeLists.txt --- a/stacer/CMakeLists.txt 2019-05-13 04:00:38.000000000 +0600 +++ b/stacer/CMakeLists.txt 2020-05-08 10:10:39.346313057 +0600 @@ -26,8 +26,35 @@ # Translations find_package(Qt5LinguistTools) -qt5_create_translation(QM_FILES ${PROJECT_NAME}_translations ${${PROJECT_NAME}_srcs}) -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${QM_FILES}") +if(Qt5LinguistTools_FOUND) + set(SRC_TRANSLATION_FILES + "${PROJECT_ROOT}/translations/stacer_ar.ts" + "${PROJECT_ROOT}/translations/stacer_ca-es.ts" + "${PROJECT_ROOT}/translations/stacer_de.ts" + "${PROJECT_ROOT}/translations/stacer_en.ts" + "${PROJECT_ROOT}/translations/stacer_es.ts" + "${PROJECT_ROOT}/translations/stacer_fr.ts" + "${PROJECT_ROOT}/translations/stacer_hi.ts" + "${PROJECT_ROOT}/translations/stacer_it.ts" + "${PROJECT_ROOT}/translations/stacer_kn.ts" + "${PROJECT_ROOT}/translations/stacer_ml.ts" + "${PROJECT_ROOT}/translations/stacer_nl.ts" + "${PROJECT_ROOT}/translations/stacer_oc.ts" + "${PROJECT_ROOT}/translations/stacer_pl.ts" + "${PROJECT_ROOT}/translations/stacer_pt.ts" + "${PROJECT_ROOT}/translations/stacer_ru.ts" + "${PROJECT_ROOT}/translations/stacer_sv.ts" + "${PROJECT_ROOT}/translations/stacer_tr.ts" + "${PROJECT_ROOT}/translations/stacer_ua.ts" + "${PROJECT_ROOT}/translations/stacer_vn.ts" + "${PROJECT_ROOT}/translations/stacer_zh-cn.ts" + "${PROJECT_ROOT}/translations/stacer_zh-tw.ts" + ) + set_source_files_properties(${SRC_TRANSLATION_FILES} PROPERTIES OUTPUT_LOCATION + ${CMAKE_CURRENT_BINARY_DIR}/translations) + qt5_create_translation(QM_FILES ${SRC_TRANSLATION_FILES} ${${PROJECT_NAME}_srcs}) + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${QM_FILES}") +endif(Qt5LinguistTools_FOUND) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) @@ -61,8 +88,14 @@ ) install( - FILES "${PROJECT_ROOT}/stacer/static/logo.png" + DIRECTORY "${PROJECT_ROOT}/icons/hicolor" DESTINATION share/icons CONFIGURATIONS Release RelWithDebInfo MinSizeRel RENAME stacer.png ) + +install( + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/translations" + DESTINATION share/qt5 + CONFIGURATIONS Release RelWithDebInfo MinSizeRel +)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor