more on installer
This commit is contained in:
parent
f7c87b4547
commit
fc590ca527
2 changed files with 15 additions and 1 deletions
|
@ -46,14 +46,17 @@ set(CPACK_SOURCE_IGNORE_FILES "/.git/;/.vscode")
|
||||||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
||||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "KIMA2")
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "KIMA2")
|
||||||
|
|
||||||
|
set(kima2_SHARE kima2.desktop)
|
||||||
|
|
||||||
if (WIN32 AND NOT UNIX)
|
if (WIN32 AND NOT UNIX)
|
||||||
set(CPACK_GENERATOR "NSIS;ZIP")
|
set(CPACK_GENERATOR "NSIS;ZIP")
|
||||||
set(CPACK_CREATE_DESKTOP_LINKS ON)
|
set(CPACK_CREATE_DESKTOP_LINKS "bin/kima2.exe")
|
||||||
else(WIN32 AND NOT UNIX)
|
else(WIN32 AND NOT UNIX)
|
||||||
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
||||||
set(CPACK_GENERATOR "RPM;DEB")
|
set(CPACK_GENERATOR "RPM;DEB")
|
||||||
set(CPACK_STRIP_FILES "bin/kima2")
|
set(CPACK_STRIP_FILES "bin/kima2")
|
||||||
set(CPACK_SOURCE_STRIP_FILES "")
|
set(CPACK_SOURCE_STRIP_FILES "")
|
||||||
|
install(FILES ${kima2_SHARE} DESTINATION share/applications)
|
||||||
endif (WIN32 AND NOT UNIX)
|
endif (WIN32 AND NOT UNIX)
|
||||||
|
|
||||||
if( MINGW )
|
if( MINGW )
|
||||||
|
|
11
kima2.desktop
Normal file
11
kima2.desktop
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=KIMA2
|
||||||
|
GenericName=Bible Reading
|
||||||
|
GenericName[de]=Kassenprogramm
|
||||||
|
Comment="A small cash point program for markets about children's things"
|
||||||
|
Comment[de]=Ein kleines Kassenprogramm für Kindersachenmärkte
|
||||||
|
Exec=kima2
|
||||||
|
Categories=Utility;
|
||||||
|
Name[de_DE]=kima2.desktop
|
Loading…
Reference in a new issue