aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2010-05-08 14:32:12 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2010-05-08 14:32:12 -0300
commit41791eab560f6c76d18470815c060911584d20de (patch)
tree39ca53dc6b6f2d5b15503f7a5c356367ff719a3c
parent63175de3340817e6e91353d345c10bbcf5a69f62 (diff)
Configure/install hardinfo.desktop in ${PREFIX}/share/applications.
-rw-r--r--CMakeLists.txt7
-rw-r--r--hardinfo.desktop.cmake9
2 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b706f804..323672e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -162,7 +162,7 @@ add_executable(hardinfo
hardinfo/util.c
hardinfo/vendor.c
)
-target_link_libraries(hardinfo
+target_link_libraries(hardinfo
${GTK_LIBRARIES}
${LIBSOUP_LIBRARIES}
hardinfo-shell
@@ -173,12 +173,17 @@ target_link_libraries(hardinfo-shell
)
configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h @ONLY)
+configure_file(hardinfo.desktop.cmake ${CMAKE_BINARY_DIR}/hardinfo.desktop @ONLY)
install(TARGETS hardinfo ${HARDINFO_MODULES}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/hardinfo/modules
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
+install(FILES ${CMAKE_BINARY_DIR}/hardinfo.desktop
+ DESTINATION share/applications
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+)
install(FILES ${HARDINFO_RESOURCES}
DESTINATION share/hardinfo
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
diff --git a/hardinfo.desktop.cmake b/hardinfo.desktop.cmake
new file mode 100644
index 00000000..2732910a
--- /dev/null
+++ b/hardinfo.desktop.cmake
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=System Profiler and Benchmark
+Name[pt_BR]=Informações e Testes do Sistema
+Exec=@CMAKE_INSTALL_PREFIX@/bin/hardinfo
+Icon=@CMAKE_INSTALL_PREFIX@/share/hardinfo/pixmaps/logo.png
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=System;