diff --git a/CMakeLists.txt b/CMakeLists.txt index d01aaab..bea9fd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,17 @@ install(TARGETS vtex2) if (BUILD_GUI) install(TARGETS vtfview) + + install( + FILES ${CMAKE_BINARY_DIR}/vtfview.desktop + DESTINATION share/applications + ) + + install( + FILES res/icon.png + DESTINATION share/icons + RENAME vtfview.png + ) endif() ############################## @@ -108,3 +119,5 @@ if (GITD_RESULT) endif() configure_file(src/common/vtex2_version.h.in src/common/vtex2_version.h) + +configure_file(install/vtfview.desktop.in ${CMAKE_BINARY_DIR}/vtfview.desktop) diff --git a/install/vtfview.desktop.in b/install/vtfview.desktop.in new file mode 100644 index 0000000..9a9dd4f --- /dev/null +++ b/install/vtfview.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=${VTEX2_VERSION} +Name=vtfview +Comment=Viewer for Valve Texture Files (VTF) +Exec=${CMAKE_INSTALL_PREFIX}/bin/vtfview %f +Icon=vtfview.png +Type=Application +Categories=Utility;Development;