# HG changeset patch # User Michiel Broek # Date 1648325597 -3600 # Node ID 2c503bf10a4f6e9834a017d9b30078afb620959d # Parent 6f744c60213918aad398504b3dddf94703bcf28a Added install option and a desktop file. diff -r 6f744c602139 -r 2c503bf10a4f CMakeLists.txt --- a/CMakeLists.txt Sat Mar 26 19:48:37 2022 +0100 +++ b/CMakeLists.txt Sat Mar 26 21:13:17 2022 +0100 @@ -209,6 +209,11 @@ qt5_add_translation(QM_FILES ${TS_FILES}) endif() +SET( bmsapp_DESKTOP + ${ROOTDIR}/bmsapp.desktop +) + + add_executable(${bmsapp_EXECUTABLE} ${SOURCE_FILES} ${QM_FILES}) target_link_libraries(${bmsapp_EXECUTABLE} Qt5::Core Qt5::Widgets Qt5::Network Qt5::Sql Qt5::PrintSupport) @@ -218,4 +223,10 @@ # ===== Install the application ===== +install(TARGETS ${bmsapp_EXECUTABLE} + RUNTIME DESTINATION bin +) +INSTALL( FILES ${bmsapp_DESKTOP} + DESTINATION "${DATAROOTDIR}/applications" +) diff -r 6f744c602139 -r 2c503bf10a4f bmsapp.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bmsapp.desktop Sat Mar 26 21:13:17 2022 +0100 @@ -0,0 +1,11 @@ +[Desktop Entry] +Categories=Qt;KDE;Education;Utility;Engineering; +Exec=bmsapp +Name=BMSapp +GenericName=Brewery Management System +Keywords=Beer;Ale;Lager;Cider;Brew;Brewing;Recipe;Beersmith; +X-KDE-StartupNotify=true +Icon=bmsapp +Terminal=false +Type=Application +