Reorganize CPack management
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 23 Sep 2014 04:18:12 +0000 (07:18 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 23 Sep 2014 09:05:23 +0000 (11:05 +0200)
commit496908b4bf980c0edd1b250a18783138aa84197d
tree8c515d997dda223aa947bbb8a2ead454261c4dda
parent89cfb2612760b1abf9cad7f94aa813d0a77d9c2b
Reorganize CPack management

- Move all CPack variable setting to a separate file to reduce clutter
  in the main CMakeLists.txt.
- Move calling CPack to the end of the build system, since this allows
  gathering information for CPack from other parts.  Also some other
  CPack features (like identifying the existing components) works better
  there.
- Instead of hard-coding the generated directories to include in the
  source package, add a helper function that can be called from the code
  that actually does the generation.  This makes it a lot easier to
  understand how this works from just reading the CMake code.
- Add some TODOs for further improvements.

Change-Id: I2ca76f0f3b3e848527f2340b4aab1d62a5de8328
CMakeLists.txt
CPackInit.cmake
cmake/gmxCPackUtilities.cmake [new file with mode: 0644]
docs/install-guide/CMakeLists.txt
docs/man/CMakeLists.txt
docs/old-html/CMakeLists.txt
src/programs/CMakeLists.txt