1
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:
David Rosca 2018-03-24 08:09:42 +01:00
parent bf0043e16c
commit 265c67f173
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 7 additions and 3 deletions

View File

@ -86,8 +86,10 @@ endif()
# Mandatory: OpenSSL # Mandatory: OpenSSL
find_package(OpenSSL REQUIRED) find_package(OpenSSL REQUIRED)
# Mandatory: KF5I18n (only for ki18n_install) # KF5I18n: Mandatory with downloaded translations (only for ki18n_install)
find_package(KF5I18n REQUIRED) if (EXISTS "${CMAKE_SOURCE_DIR}/po")
find_package(KF5I18n REQUIRED)
endif()
# Optional: GnomeKeyring # Optional: GnomeKeyring
find_package(PkgConfig) find_package(PkgConfig)

View File

@ -32,7 +32,9 @@ endif()
if (UNIX AND NOT APPLE) if (UNIX AND NOT APPLE)
install(TARGETS falkon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) install(TARGETS falkon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/falkon) install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/falkon)
ki18n_install(${CMAKE_SOURCE_DIR}/po) if (KF5I18n_FOUND)
ki18n_install(${CMAKE_SOURCE_DIR}/po)
endif()
ecm_install_po_files_as_qm(${CMAKE_SOURCE_DIR}/poqm) ecm_install_po_files_as_qm(${CMAKE_SOURCE_DIR}/poqm)
install(PROGRAMS ../../linux/applications/org.kde.falkon.desktop DESTINATION ${KDE_INSTALL_APPDIR}) install(PROGRAMS ../../linux/applications/org.kde.falkon.desktop DESTINATION ${KDE_INSTALL_APPDIR})