| 1 |
# this assumes ITS files are located in ${CMAKE_SOURCE_DIR}/its |
| 2 |
function(gettext_merge_xml_translations source_files) |
| 3 |
foreach(source_file ${source_files}) |
| 4 |
add_custom_target("${source_file}" ALL |
| 5 |
COMMENT "Merging translations into ${source_file}" |
| 6 |
COMMAND ${CMAKE_COMMAND} -E env "GETTEXTDATADIRS=${CMAKE_SOURCE_DIR}" |
| 7 |
${GETTEXT_MSGFMT_EXECUTABLE} |
| 8 |
--xml |
| 9 |
--template=${CMAKE_CURRENT_SOURCE_DIR}/${source_file}.in |
| 10 |
-d ${CMAKE_SOURCE_DIR}/po |
| 11 |
-o ${source_file} |
| 12 |
) |
| 13 |
endforeach() |
| 14 |
endfunction() |
| 15 |
|
| 16 |
add_subdirectory(plugin) |
| 17 |
add_subdirectory(services) |