mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Require KF518n only with downloaded translations
This commit is contained in:
parent
bf0043e16c
commit
265c67f173
@ -86,8 +86,10 @@ endif()
|
||||
# Mandatory: OpenSSL
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
# Mandatory: KF5I18n (only for ki18n_install)
|
||||
find_package(KF5I18n REQUIRED)
|
||||
# KF5I18n: Mandatory with downloaded translations (only for ki18n_install)
|
||||
if (EXISTS "${CMAKE_SOURCE_DIR}/po")
|
||||
find_package(KF5I18n REQUIRED)
|
||||
endif()
|
||||
|
||||
# Optional: GnomeKeyring
|
||||
find_package(PkgConfig)
|
||||
|
@ -32,7 +32,9 @@ endif()
|
||||
if (UNIX AND NOT APPLE)
|
||||
install(TARGETS falkon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/falkon)
|
||||
if (KF5I18n_FOUND)
|
||||
ki18n_install(${CMAKE_SOURCE_DIR}/po)
|
||||
endif()
|
||||
ecm_install_po_files_as_qm(${CMAKE_SOURCE_DIR}/poqm)
|
||||
|
||||
install(PROGRAMS ../../linux/applications/org.kde.falkon.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
|
Loading…
Reference in New Issue
Block a user