exclude some paths from rpm

This commit is contained in:
Martin Brodbeck 2018-08-16 15:23:23 +02:00
parent 0ee9c0d3bb
commit 1c9cf8e1a9

View file

@ -58,6 +58,12 @@ else(WIN32 AND NOT UNIX)
set(CPACK_GENERATOR "RPM;DEB") set(CPACK_GENERATOR "RPM;DEB")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64) set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5printsupport5 (>= 5.4), libjsoncpp1, libusb-1.0-0") set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5printsupport5 (>= 5.4), libjsoncpp1, libusb-1.0-0")
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
"/usr/share/applications"
"/usr/share/icons"
"/usr/share/icons/hicolor"
"/usr/share/icons/hicolor/scalable"
"/usr/share/icons/hicolor/scalable/apps")
set(CPACK_STRIP_FILES "bin/kima2") set(CPACK_STRIP_FILES "bin/kima2")
set(CPACK_SOURCE_STRIP_FILES "") set(CPACK_SOURCE_STRIP_FILES "")
install(FILES ${CMAKE_SOURCE_DIR}/misc/kima2.desktop DESTINATION share/applications) install(FILES ${CMAKE_SOURCE_DIR}/misc/kima2.desktop DESTINATION share/applications)