3
# Jim Nelson <jim@yorba.org>
4
# Copyright 2012 Yorba Foundation
6
find_program (INTLTOOL_MERGE_EXECUTABLE intltool-merge)
8
if (INTLTOOL_MERGE_EXECUTABLE)
9
set (INTLTOOL_MERGE_FOUND TRUE)
10
else (INTLTOOL_MERGE_EXECUTABLE)
11
set (INTLTOOL_MERGE_FOUND FALSE)
12
endif (INTLTOOL_MERGE_EXECUTABLE)
14
if (INTLTOOL_MERGE_FOUND)
15
macro (INTLTOOL_MERGE_DESKTOP desktop_id po_dir)
16
add_custom_target (geary.desktop ALL
17
${INTLTOOL_MERGE_EXECUTABLE} --desktop-style ${CMAKE_SOURCE_DIR}/${po_dir}
18
${CMAKE_CURRENT_SOURCE_DIR}/${desktop_id}.desktop.in ${desktop_id}.desktop
20
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/geary.desktop DESTINATION /usr/share/applications)
21
endmacro (INTLTOOL_MERGE_DESKTOP desktop_id po_dir)
22
endif (INTLTOOL_MERGE_FOUND)