~compiz-team/compiz/0.9.12

« back to all changes in this revision

Viewing changes to gtk/gnome/CMakeLists.txt

MergeĀ GLESĀ support

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        DESTINATION ${datadir}/applications
10
10
    )
11
11
 
 
12
    set (_keybindings_files
 
13
         50-compiz-launchers.xml.in
 
14
         50-compiz-navigation.xml.in
 
15
         50-compiz-screenshot.xml.in
 
16
         50-compiz-system.xml.in
 
17
         50-compiz-windows.xml.in)
 
18
 
 
19
    set (_keybindings_files_translated "")
 
20
 
 
21
    foreach (_keybinding_file ${_keybindings_files})
 
22
        string (LENGTH ${_keybinding_file} _str_len)
 
23
        math (EXPR _str_len_no_in "${_str_len} - 3")
 
24
        string (SUBSTRING ${_keybinding_file} 0 ${_str_len_no_in} _keybinding_file_no_in)
 
25
 
 
26
        compiz_translate_xml (${CMAKE_CURRENT_SOURCE_DIR}/${_keybinding_file}
 
27
                              ${CMAKE_CURRENT_BINARY_DIR}/${_keybinding_file_no_in} NOTRANSLATIONS)
 
28
 
 
29
        list (APPEND _keybindings_files_translated ${CMAKE_CURRENT_BINARY_DIR}/${_keybinding_file_no_in})
 
30
    endforeach (_keybinding_file ${keybinding_files})
 
31
 
 
32
    add_custom_target (compiz-gnome-keybindings ALL DEPENDS
 
33
                       ${_keybindings_files_translated})
 
34
 
 
35
    install (
 
36
        FILES ${_keybinding_files_translated}
 
37
        DESTINATION ${datadir}/gnome-control-center/keybindings
 
38
    )
 
39
 
12
40
    add_custom_target (compiz.desktop ALL SOURCES ${desktop_file})
13
41
endif (BUILD_GNOME)