|
1 | | -configure_file(${CMAKE_SOURCE_DIR}/data/openbangla-keyboard.desktop.in ${CMAKE_BINARY_DIR}/data/openbangla-keyboard.desktop) |
2 | | - |
3 | | -## Install things |
4 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/32.png |
5 | | - DESTINATION ${PROJECT_DATADIR}/icons |
6 | | - RENAME OpenBangla-Keyboard.png) |
7 | | - |
8 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/1024.png |
9 | | - DESTINATION ${DATADIR}/pixmaps/ |
10 | | - RENAME openbangla-keyboard.png) |
11 | | - |
12 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/16.png |
13 | | - DESTINATION ${DATADIR}/icons/hicolor/16x16/apps/ |
14 | | - RENAME openbangla-keyboard.png) |
15 | | - |
16 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/32.png |
17 | | - DESTINATION ${DATADIR}/icons/hicolor/32x32/apps/ |
18 | | - RENAME openbangla-keyboard.png) |
19 | | - |
20 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/48.png |
21 | | - DESTINATION ${DATADIR}/icons/hicolor/48x48/apps/ |
22 | | - RENAME openbangla-keyboard.png) |
23 | | - |
24 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/128.png |
25 | | - DESTINATION ${DATADIR}/icons/hicolor/128x128/apps/ |
26 | | - RENAME openbangla-keyboard.png) |
27 | | - |
28 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/512.png |
29 | | - DESTINATION ${DATADIR}/icons/hicolor/512x512/apps/ |
30 | | - RENAME openbangla-keyboard.png) |
31 | | - |
32 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/1024.png |
33 | | - DESTINATION ${DATADIR}/icons/hicolor/1024x1024/apps/ |
34 | | - RENAME openbangla-keyboard.png) |
| 1 | +# This CMake module handles the installation of files |
| 2 | + |
| 3 | +if(OS_LINUX) |
| 4 | + configure_file(${CMAKE_SOURCE_DIR}/data/openbangla-keyboard.desktop.in ${CMAKE_BINARY_DIR}/data/openbangla-keyboard.desktop) |
| 5 | + |
| 6 | + install(FILES ${CMAKE_SOURCE_DIR}/data/32.png |
| 7 | + DESTINATION ${PROJECT_DATADIR}/icons |
| 8 | + RENAME OpenBangla-Keyboard.png) |
| 9 | + |
| 10 | + install(FILES ${CMAKE_SOURCE_DIR}/data/1024.png |
| 11 | + DESTINATION ${DATADIR}/pixmaps/ |
| 12 | + RENAME openbangla-keyboard.png) |
| 13 | + |
| 14 | + install(FILES ${CMAKE_SOURCE_DIR}/data/16.png |
| 15 | + DESTINATION ${DATADIR}/icons/hicolor/16x16/apps/ |
| 16 | + RENAME openbangla-keyboard.png) |
| 17 | + |
| 18 | + install(FILES ${CMAKE_SOURCE_DIR}/data/32.png |
| 19 | + DESTINATION ${DATADIR}/icons/hicolor/32x32/apps/ |
| 20 | + RENAME openbangla-keyboard.png) |
| 21 | + |
| 22 | + install(FILES ${CMAKE_SOURCE_DIR}/data/48.png |
| 23 | + DESTINATION ${DATADIR}/icons/hicolor/48x48/apps/ |
| 24 | + RENAME openbangla-keyboard.png) |
| 25 | + |
| 26 | + install(FILES ${CMAKE_SOURCE_DIR}/data/128.png |
| 27 | + DESTINATION ${DATADIR}/icons/hicolor/128x128/apps/ |
| 28 | + RENAME openbangla-keyboard.png) |
| 29 | + |
| 30 | + install(FILES ${CMAKE_SOURCE_DIR}/data/512.png |
| 31 | + DESTINATION ${DATADIR}/icons/hicolor/512x512/apps/ |
| 32 | + RENAME openbangla-keyboard.png) |
| 33 | + |
| 34 | + install(FILES ${CMAKE_SOURCE_DIR}/data/1024.png |
| 35 | + DESTINATION ${DATADIR}/icons/hicolor/1024x1024/apps/ |
| 36 | + RENAME openbangla-keyboard.png) |
| 37 | + |
| 38 | + install(FILES ${CMAKE_BINARY_DIR}/data/openbangla-keyboard.desktop |
| 39 | + DESTINATION "${DATADIR}/applications") |
| 40 | + |
| 41 | + install(FILES ${CMAKE_SOURCE_DIR}/data/io.github.openbangla.keyboard.metainfo.xml |
| 42 | + DESTINATION ${DATADIR}/metainfo) |
| 43 | +endif() |
35 | 44 |
|
36 | 45 | install(FILES ${CMAKE_SOURCE_DIR}/data/avrophonetic.json |
37 | 46 | DESTINATION ${PROJECT_DATADIR}/layouts) |
@@ -62,10 +71,3 @@ install(FILES ${CMAKE_SOURCE_DIR}/data/suffix.json |
62 | 71 |
|
63 | 72 | install(FILES ${CMAKE_SOURCE_DIR}/data/regex.json |
64 | 73 | DESTINATION ${PROJECT_DATADIR}/data) |
65 | | - |
66 | | -install(FILES ${CMAKE_BINARY_DIR}/data/openbangla-keyboard.desktop |
67 | | - DESTINATION "${DATADIR}/applications") |
68 | | - |
69 | | -install(FILES ${CMAKE_SOURCE_DIR}/data/io.github.openbangla.keyboard.metainfo.xml |
70 | | - DESTINATION ${DATADIR}/metainfo) |
71 | | - |
|
0 commit comments