~unity8-desktop-session-team/indicator-session/indicator-session-using-upstart

« back to all changes in this revision

Viewing changes to cmake/FindIntltool.cmake

  • Committer: Ted Gould
  • Date: 2013-08-27 20:09:48 UTC
  • mto: This revision was merged to the branch mainline in revision 418.
  • Revision ID: ted@gould.cx-20130827200948-f57l9e2rcekcy92r
Dropping debugging for system-wide support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# FindIntltool.cmake
 
2
#
 
3
# Jim Nelson <jim@yorba.org>
 
4
# Copyright 2012 Yorba Foundation
 
5
 
 
6
find_program (INTLTOOL_MERGE_EXECUTABLE intltool-merge)
 
7
 
 
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)
 
13
 
 
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
 
19
        )
 
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)
 
23