Given a CMakeLists.txt
like:
PROJECT(asdf NONE)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
INSTALL(FILES CMakeLists.txt DESTINATION share/doc/asdf/whatever)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_CONTACT "asdf@example.com")
INCLUDE(CPack)
The package generated by make package
has following contents:
$ dpkg-deb --contents asdf-0.1.1-Linux.deb
drwx------ root/root 0 2017-12-20 10:50 ./usr/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/asdf/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/asdf/whatever/
-rw-r--r-- root/root 235 2017-12-20 10:50 ./usr/share/doc/asdf/whatever/CMakeLists.txt
with the parent directories having only permission bits for the owner. How do I correct these so that the world could read the files I install, e.g. for these to be something like drwxr-xr-x
instead?