Commit c95f306d authored by Jan Möbius's avatar Jan Möbius

Added function to copy translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6701 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 72bb8f7e
......@@ -32,6 +32,17 @@ macro (acg_modify_project_dirs)
endif ()
endmacro ()
# function to copy all translation files from one directory to the OpenFlipper translation directory
# parameters: BuildTarget .. The command will be executed after the target is build
function ( of_copy_translations _target)
add_custom_command (TARGET ${_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/*.qm
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Translations/ )
endfunction ()
# search all plugins and add them to build
function (of_add_plugins)
file (
......
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