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

« back to all changes in this revision

Viewing changes to cmake/FindIntltool.cmake

  • Committer: Charles Kerr
  • Date: 2013-07-02 00:26:11 UTC
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130702002611-lhtxz8ouz9uc2ldx
in cmake/Translations.cmake, use the GNUInstallDirs variables

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