title: cmake : How to change file permissions when installing?
body: <p>I have a file with <code>660</code> flags set, but I want to install it with <code>700</code> flags set.</p>
  
  <p>How do I do it? How to change the file permission, without changing the permissions of the source file?</p>
  
  <hr>
  
  <p>My install command is this :</p>
  
  <pre><code>install(
      FILES common.sh
      DESTINATION /rootfs/usr/bin
  )
  </code></pre>
  
  <p>and this is what I tried (but it doesn't work) :</p>
  
  <pre><code>install(
      FILES common.sh
      FILE_PERMISSIONS "600"
      DESTINATION /rootfs/usr/bin
  )
  </code></pre>