Skip to content
Snippets Groups Projects
Commit 48608576 authored by Antoine Lorence's avatar Antoine Lorence
Browse files

[i18n] Improve the copy translations files to the deployment folder

parent 014d5e78
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ You may use the developer packages from your distribution. Module needed are Cor
### RandomLib
Download the RandomLib C++ library from the official website: http://randomlib.sourceforge.net/. Generates compilation environment with CMake and build the library. Default options works well.
RandomLib 1.7, 1.8 and 1.9 are known to work. More recent versions should also work.
RandomLib 1.7, 1.8 and 1.9 are known to work. More recent versions should also be ok.
### Qwt
Download Qwt 6.0 or newer from the official website: http://sourceforge.net/projects/qwt/
......
......@@ -186,10 +186,6 @@ qt5_add_translation(QM_FILES ${TS_FILES})
# -2- Update translations files with changes from c++ sources
# qt5_create_translation(QM_FILES ${eiimage_SOURCES} ${TS_FILES})
foreach(__FILE ${QM_FILES})
file(COPY ${__FILE} DESTINATION ${DEPLOY_OUTPUT_DIRECTORY})
endforeach()
# Avoid awful console on Windows
if(WIN32)
set(EXTRA_FLAGS WIN32)
......@@ -207,3 +203,12 @@ target_link_libraries(eiimage
GenericInterface
ImageIn
)
add_custom_command(TARGET eiimage COMMAND POST_BUILD
${CMAKE_COMMAND} -E make_directory ${DEPLOY_OUTPUT_DIRECTORY}/lang
COMMENT "Create directory ${DEPLOY_OUTPUT_DIRECTORY}/lang")
foreach(__FILE ${QM_FILES})
add_custom_command(TARGET eiimage POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${__FILE} ${DEPLOY_OUTPUT_DIRECTORY}/lang
COMMENT "Copy ${__FILE} to ${DEPLOY_OUTPUT_DIRECTORY}/lang")
endforeach()
Subproject commit 10011e3f08cdd573f5b486802182e7bfabbe936d
Subproject commit 1597854502dc79b30e476b199ba88e3518ef9b3c
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment