more on installer

This commit is contained in:
Martin Brodbeck 2018-08-07 16:14:47 +02:00
parent 18c2163318
commit bce771b46f

View file

@ -51,12 +51,19 @@ 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 "bin/kima2") #set(CPACK_CREATE_DESKTOP_LINKS "bin/kima2")
install(FILES "${CMAKE_SOURCE_DIR}/manual/Benutzerhandbuch.pdf"
DESTINATION bin
COMPONENT manualData)
set(CPACK_NSIS_MENU_LINKS "bin\\\\Benutzerhandbuch.pdf" "Handbuch")
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) install(FILES ${kima2_SHARE} DESTINATION share/applications)
install(FILES "${CMAKE_SOURCE_DIR}/manual/Benutzerhandbuch.pdf"
DESTINATION share
COMPONENT manualData)
endif (WIN32 AND NOT UNIX) endif (WIN32 AND NOT UNIX)
if( MINGW ) if( MINGW )