Commit 37dc2645 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: More po generation fixes.

parent 889cd240
......@@ -6,13 +6,13 @@
#FIXME: detection ?
set( GMSGFMT msgfmt )
set( MSGFMT msgfmt )
set( XGETTEXT xgettext )
set( MSGMERGE_UPDATE msgmerge --update )
set( MSGINIT msginit )
set( MSGCONV msgconv )
set( MSGFILTER msgfilter )
find_program( GMSGFMT msgfmt )
find_program( MSGFMT msgfmt )
find_program( XGETTEXT xgettext )
find_program( MSGMERGE_UPDATE msgmerge --update )
find_program( MSGINIT msginit )
find_program( MSGCONV msgconv )
find_program( MSGFILTER msgfilter )
set( POFILES
af
......@@ -67,11 +67,11 @@ set( POFILES
)
FOREACH( pofile ${POFILES} )
set( po-target ${po-target} ${pofile}.gmo )
set( po-target ${po-target} ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo )
ENDFOREACH( pofile)
ADD_CUSTOM_TARGET( all-po ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${po-target}
DEPENDS ${po-target}
)
foreach( pofile ${POFILES} )
......@@ -79,6 +79,6 @@ foreach( pofile ${POFILES} )
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
COMMAND ${GMSGFMT} -c --statistics -o ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
DEPENDS ${pofile}.po
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
)
endforeach( pofile )
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