diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-30 11:29:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-30 11:29:24 +0200 |
commit | b09f2c2d699dff8c61eb0a83143c5930c005703f (patch) | |
tree | 8596aa62db53a7dcd8b8113115ebe061e4708544 /cmake/opentrack-boilerplate.cmake | |
parent | 819e635af2b64213f1076eb4a99bba8c48cfdb68 (diff) |
cmake: split i18n into own file
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index f8c3eaa6..cc197657 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -98,7 +98,7 @@ function(otr_compat target) set(l-props "-Wl,--as-needed") endif() - otr_prop(TARGET ${target} COMPILE_FLAGS "${c-props} ${arg_COMPILE}" + otr_prop(TARGET ${target} COMPIcLE_FLAGS "${c-props} ${arg_COMPILE}" LINK_FLAGS "${l-props} ${arg_LINK}") endfunction() @@ -110,28 +110,6 @@ function(otr_install_pdb_current_project target) endif() endfunction() -function(otr_i18n_for_target_directory n) - set(k "opentrack-${n}") - - get_property(lupdate-binary TARGET "${Qt5_LUPDATE_EXECUTABLE}" PROPERTY IMPORTED_LOCATION) - - foreach(i ${opentrack_all-translations}) - set(t "${CMAKE_CURRENT_SOURCE_DIR}/lang/${i}.ts") - set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" PROPERTY CLEAN_NO_CUSTOM 1) - if(NOT opentrack_disable-i18n-update) - add_custom_command(OUTPUT "${t}" - COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/lang" - COMMAND "${lupdate-binary}" -silent -recursive -no-obsolete -locations relative . -ts "${t}" - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - DEPENDS ${${k}-cc} ${${k}-hh} ${${k}-ui} ${${k}-rc} - COMMENT "Running lupdate for ${n}/${i}") - set(target-name "i18n-lang-${i}-module-${n}") - add_custom_target(${target-name} DEPENDS "${t}") - endif() - set_property(GLOBAL APPEND PROPERTY "opentrack-ts-files-${i}" "${t}") - endforeach() -endfunction() - function(otr_module n_) message(STATUS "module ${n_}") cmake_parse_arguments(arg |