source: robolliurex/trunk/fuentes/rsrc/CMakeLists.txt @ 4393

Last change on this file since 4393 was 4393, checked in by hectorgh, 2 years ago

fixing udev rule

File size: 1.5 KB
Line 
1
2#resource build
3set(RSRC banner.robolliurex.png;robolliurex-48.png;robolliurex-32.png)
4
5add_custom_command(OUTPUT banner.robolliurex.png COMMAND rsvg-convert -o ${CMAKE_CURRENT_BINARY_DIR}/banner.robolliurex.png ${CMAKE_SOURCE_DIR}/rsrc/banner.robolliurex.svg)
6add_custom_command(OUTPUT robolliurex-48.png COMMAND rsvg-convert -o ${CMAKE_CURRENT_BINARY_DIR}/robolliurex-48.png -w 48 -h 48 ${CMAKE_SOURCE_DIR}/rsrc/icon.robolliurex.svg)
7add_custom_command(OUTPUT robolliurex-32.png COMMAND rsvg-convert -o ${CMAKE_CURRENT_BINARY_DIR}/robolliurex-32.png -w 32 -h 32 ${CMAKE_SOURCE_DIR}/rsrc/icon.robolliurex.svg)
8
9add_custom_target(resources ALL DEPENDS ${RSRC})
10
11
12#resource install
13install(FILES ${CMAKE_CURRENT_BINARY_DIR}/banner.robolliurex.png DESTINATION /usr/share/banners/lliurex-neu/ RENAME robolliurex.png)
14install(FILES ${CMAKE_CURRENT_BINARY_DIR}/robolliurex-48.png DESTINATION /usr/share/icons/hicolor/48x48/apps/ RENAME robolliurex.png)
15install(FILES ${CMAKE_CURRENT_BINARY_DIR}/robolliurex-32.png DESTINATION /usr/share/icons/hicolor/32x32/apps/ RENAME robolliurex.png)
16
17#unprocessed files
18install(FILES ${CMAKE_SOURCE_DIR}/rsrc/icon.robolliurex.svg DESTINATION share/icons/hicolor/scalable/apps/ RENAME robolliurex.svg)
19install(FILES ${CMAKE_SOURCE_DIR}/rsrc/robolliurex.desktop DESTINATION share/applications/)
20install(FILES ${CMAKE_SOURCE_DIR}/rsrc/10-robolliurex.rules DESTINATION /lib/udev/rules.d/)
21install(FILES ${CMAKE_SOURCE_DIR}/rsrc/FIRM0309.lgo DESTINATION /lib/firmware/rcx/)
22install(FILES ${CMAKE_SOURCE_DIR}/rsrc/FIRM0328.lgo DESTINATION /lib/firmware/rcx/)
Note: See TracBrowser for help on using the repository browser.