Improve Cmake target for translations. Still not perfect.
This commit is contained in:
parent
24d66e74fe
commit
11f2068b76
@ -1,4 +1,16 @@
|
|||||||
add_custom_target(translations ALL
|
add_custom_target(translations
|
||||||
COMMAND ./generate-mo.sh "${PROJECT_BINARY_DIR}/translations/output"
|
DEPENDS
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
"${PROJECT_BINARY_DIR}/translations/output/"
|
||||||
COMMENT "Generating translation locales")
|
)
|
||||||
|
|
||||||
|
add_custom_command(DEPENDS
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/pot/po/*"
|
||||||
|
OUTPUT
|
||||||
|
"${PROJECT_BINARY_DIR}/translations/output/"
|
||||||
|
COMMAND
|
||||||
|
COMMAND ./generate-mo.sh "${PROJECT_BINARY_DIR}/translations/output"
|
||||||
|
WORKING_DIRECTORY
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
COMMENT
|
||||||
|
"Generating translation locales"
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user