Commit 6d17236b authored by plyatov's avatar plyatov

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

parent 0ff83cba
...@@ -38,6 +38,7 @@ if(UNIX) ...@@ -38,6 +38,7 @@ if(UNIX)
# When used later, "bin" and others with no leading / is relative to CMAKE_INSTALL_PREFIX. # 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_PLUGINS lib/kicad/plugins CACHE PATH "Location of KiCad plugins.")
set(KICAD_DATA share/kicad CACHE PATH "Location of KiCad data files.") 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(APPLE)
endif(UNIX) endif(UNIX)
...@@ -47,6 +48,7 @@ if(WIN32) ...@@ -47,6 +48,7 @@ if(WIN32)
# When used later, "winexe" and others with no leading / is relative to CMAKE_INSTALL_PREFIX. # When used later, "winexe" and others with no leading / is relative to CMAKE_INSTALL_PREFIX.
set(KICAD_PLUGINS ${KICAD_BIN}/plugins) set(KICAD_PLUGINS ${KICAD_BIN}/plugins)
set(KICAD_DATA share CACHE PATH "Location of KiCad data files.") set(KICAD_DATA share CACHE PATH "Location of KiCad data files.")
SET(KICAD_DOCS doc)
endif(WIN32) endif(WIN32)
set(KICAD_DEMOS ${KICAD_DATA}/demos) set(KICAD_DEMOS ${KICAD_DATA}/demos)
...@@ -103,3 +105,10 @@ add_subdirectory(polygon) ...@@ -103,3 +105,10 @@ add_subdirectory(polygon)
add_subdirectory(demos) add_subdirectory(demos)
add_subdirectory(internat) add_subdirectory(internat)
add_subdirectory(template) 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)
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
COMMON_GLOBL wxString g_BuildVersion COMMON_GLOBL wxString g_BuildVersion
#ifdef EDA_BASE #ifdef EDA_BASE
(wxT("(20080311-r876)")) (wxT("(20080313-r890)"))
#endif #endif
; ;
......
[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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment