]> git.sesse.net Git - vlc/blobdiff - extras/buildsystem/cmake/CMakeLists/po_CMakeLists.txt
Add missing config.h
[vlc] / extras / buildsystem / cmake / CMakeLists / po_CMakeLists.txt
index 54f9f83ee44670c4afa732f5d16c637a2d2eaf25..950f0471829145b99fe7e8e94599d112e2ba4f91 100644 (file)
@@ -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,7 +67,7 @@ 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
@@ -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 )