Commit 714e3fdf authored by David Faure's avatar David Faure

port to ecm_install_po_files_as_qm

parent e51158e6
......@@ -58,7 +58,7 @@ option(WITH_SOLID_UDISKS2 "Enable the udisks2 solid backend instead" "ON")
############### Give the user the option to build the deprecated WMI solid backend instead of the new win backend ###############
option(WITH_SOLID_WMI "Enables the deprecated WMI backend on Windows")
include(ECMCreateQmFromPoFiles)
include(ECMPoQmTools)
set(KF5_VERSION "4.99.0") # handled by release scripts
......@@ -75,9 +75,8 @@ remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src)
file(GLOB PO_FILES "po/*.po")
if (PO_FILES)
ecm_create_qm_from_po_files(PO_FILES ${PO_FILES} CATALOG_NAME solid5_qt)
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ecm_install_po_files_as_qm(po)
endif()
add_subdirectory(src)
add_subdirectory(autotests)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment