Added icon and "kicad.desktop" for Gnome/KDE menu.

This commit is contained in:
plyatov 2008-03-18 21:16:49 +00:00
parent 0ff83cbab7
commit 6d17236b0d
4 changed files with 24 additions and 1 deletions

View File

@ -38,6 +38,7 @@ if(UNIX)
# When used later, "bin" and others with no leading / is relative to CMAKE_INSTALL_PREFIX.
set(KICAD_PLUGINS lib/kicad/plugins CACHE PATH "Location of KiCad plugins.")
set(KICAD_DATA share/kicad CACHE PATH "Location of KiCad data files.")
SET(KICAD_DOCS share/doc/kicad CACHE PATH "Location of KiCad documentation files.")
endif(APPLE)
endif(UNIX)
@ -47,6 +48,7 @@ if(WIN32)
# When used later, "winexe" and others with no leading / is relative to CMAKE_INSTALL_PREFIX.
set(KICAD_PLUGINS ${KICAD_BIN}/plugins)
set(KICAD_DATA share CACHE PATH "Location of KiCad data files.")
SET(KICAD_DOCS doc)
endif(WIN32)
set(KICAD_DEMOS ${KICAD_DATA}/demos)
@ -103,3 +105,10 @@ add_subdirectory(polygon)
add_subdirectory(demos)
add_subdirectory(internat)
add_subdirectory(template)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/install.txt DESTINATION ${KICAD_DOCS} COMPONENT resources)
if(UNIX)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/share/kicad.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications COMPONENT resources)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bitmaps/kicad.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps COMPONENT resources)
endif(UNIX)

BIN
bitmaps/kicad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -5,7 +5,7 @@
COMMON_GLOBL wxString g_BuildVersion
#ifdef EDA_BASE
(wxT("(20080311-r876)"))
(wxT("(20080313-r890)"))
#endif
;

14
share/kicad.desktop Normal file
View File

@ -0,0 +1,14 @@
[Desktop Entry]
Encoding=UTF-8
GenericName[en]=KiCad - project manager
GenericName[ru]=KiCad - менеджер проектов
Comment[en]=Electrical schematic and PCB design suite
Comment[ru]=Комплекс для разработки электрических схем и печатных плат
MimeType=text/pro
Name=KiCad
Exec=kicad
Icon=kicad
Type=Application
Terminal=false
Categories=Scientific;