if(UNIX)
install(FILES vncviewer.man DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man1 RENAME vncviewer.1)
+ file(STRINGS ${CMAKE_SOURCE_DIR}/po/LINGUAS LINGUAS)
+ set(po_FILES "")
+ foreach(lang ${LINGUAS})
+ list(APPEND po_FILES "${CMAKE_SOURCE_DIR}/po/${lang}.po")
+ endforeach()
+
configure_file(vncviewer.desktop.in.in vncviewer.desktop.in)
find_program(INTLTOOL_MERGE_EXECUTABLE intltool-merge)
if("${GETTEXT_VERSION_STRING}" VERSION_GREATER 0.18.99)
--desktop --template vncviewer.desktop.in
-d ${CMAKE_SOURCE_DIR}/po -o vncviewer.desktop
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vncviewer.desktop.in
- ${CMAKE_SOURCE_DIR}/po/*.po
+ ${po_FILES}
)
elseif(INTLTOOL_MERGE_EXECUTABLE)
add_custom_command(OUTPUT vncviewer.desktop
-d ${CMAKE_SOURCE_DIR}/po
vncviewer.desktop.intl vncviewer.desktop
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vncviewer.desktop.in
- ${CMAKE_SOURCE_DIR}/po/*.po
+ ${po_FILES}
)
else()
add_custom_command(OUTPUT vncviewer.desktop
--xml --template ${CMAKE_CURRENT_SOURCE_DIR}/org.tigervnc.vncviewer.metainfo.xml.in
-d ${CMAKE_SOURCE_DIR}/po -o org.tigervnc.vncviewer.metainfo.xml
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/org.tigervnc.vncviewer.metainfo.xml.in
- ${CMAKE_SOURCE_DIR}/po/*.po
+ ${po_FILES}
)
elseif(INTLTOOL_MERGE_EXECUTABLE)
add_custom_command(OUTPUT org.tigervnc.vncviewer.metainfo.xml
-x ${CMAKE_SOURCE_DIR}/po
org.tigervnc.vncviewer.metainfo.xml.intl org.tigervnc.vncviewer.metainfo.xml
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/org.tigervnc.vncviewer.metainfo.xml.in
- ${CMAKE_SOURCE_DIR}/po/*.po
+ ${po_FILES}
)
else()
add_custom_command(OUTPUT org.tigervnc.vncviewer.metainfo.xml