mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-26 00:46:59 +00:00
Trying to honor debian copyright requirements
This commit is contained in:
parent
318d24c9fe
commit
dcd6c74461
@ -257,15 +257,14 @@ if(CPACK_GENERATOR STREQUAL "DEB")
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/scripts/fixup_deb_permissions.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
endif(CPACK_GENERATOR STREQUAL "DEB")
|
||||
|
||||
file(COPY ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
|
||||
file(COPY ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_SOURCE_DIR}/docs/debian
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
|
||||
file(RENAME ${CMAKE_CURRENT_BINARY_DIR}/COPYING ${CMAKE_CURRENT_BINARY_DIR}/copyright)
|
||||
file(RENAME ${CMAKE_SOURCE_DIR}/docs/debian/COPYING ${CMAKE_SOURCE_DIR}/docs/debian/copyright)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/copyright"
|
||||
DESTINATION "share/doc/${CPACK_DEBIAN_PACKAGE_NAME}")
|
||||
|
||||
install(FILES "${CMAKE_SOURCE_DIR}/docs/debian/copyright"
|
||||
DESTINATION "share/doc/${CPACK_PACKAGE_NAME}")
|
||||
endif(CPACK_GENERATOR STREQUAL "DEB")
|
||||
|
||||
include(CPack)
|
||||
|
Loading…
Reference in New Issue
Block a user