From: Hrvoje Senjan Date: Mon, 09 Mar 2015 17:34:14 +0000 Subject: Install translations if available X-Git-Url: http://quickgit.kde.org/?p=kxmlrpcclient.git&a=commitdiff&h=5c4860018c74992f8acf225aa6644f9cb65a8387 --- Install translations if available CCMAIL: faure@kde.org CCMAIL: dvratil@redhat.com --- --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,9 +27,13 @@ ) ########### Find packages ########### +find_package(KF5I18n ${KF5_DEP_VERSION} CONFIG REQUIRED) find_package(KF5KIO ${KF5_DEP_VERSION} CONFIG REQUIRED) ########### Targets ########### +if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") + ki18n_install(po) +endif() add_subdirectory(src) add_subdirectory(autotests)