More robust handling for installed headers
commitbc9ba47edc5b12b5d4324bcdbf8c5cd3cb048c3d
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 19 Sep 2014 19:45:34 +0000 (19 22:45 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 3 Oct 2014 15:28:26 +0000 (3 17:28 +0200)
treec09df1f041c89b043fd1c8784a9cdddf075cd4d2
parenta1fbbb07241495656429dbb560e93769368609a4
More robust handling for installed headers

- Remove unnecessary first parameter from gmx_install_headers():
  it is possible to deduce the installation destination from the
  current CMake directory.  This eliminates the possibility of typos in
  this parameter that would break the installed headers.
- Make the gmx_install_headers() function also generate a global list of
  installed headers, which is then used to generate a file with this
  list, instead of globbing this information from the
  cmake_install.cmake files.  This ensures that obsolete files in the
  build tree should not affect the outcome.

Change-Id: I4d27accaebc14438acc5d290b25258b561ca04ea
24 files changed:
docs/doxygen/CMakeLists.txt
docs/doxygen/getInstalledHeaders.cmake [deleted file]
docs/doxygen/gmxtree.py
src/gromacs/CMakeLists.txt
src/gromacs/analysisdata/CMakeLists.txt
src/gromacs/analysisdata/modules/CMakeLists.txt
src/gromacs/commandline/CMakeLists.txt
src/gromacs/fft/CMakeLists.txt
src/gromacs/fileio/CMakeLists.txt
src/gromacs/gmxana/CMakeLists.txt
src/gromacs/legacyheaders/CMakeLists.txt
src/gromacs/legacyheaders/types/CMakeLists.txt [copied from src/gromacs/swap/CMakeLists.txt with 87% similarity]
src/gromacs/linearalgebra/CMakeLists.txt
src/gromacs/listed-forces/CMakeLists.txt
src/gromacs/math/CMakeLists.txt
src/gromacs/options/CMakeLists.txt
src/gromacs/pbcutil/CMakeLists.txt
src/gromacs/selection/CMakeLists.txt
src/gromacs/swap/CMakeLists.txt
src/gromacs/timing/CMakeLists.txt
src/gromacs/tools/CMakeLists.txt
src/gromacs/topology/CMakeLists.txt
src/gromacs/trajectoryanalysis/CMakeLists.txt
src/gromacs/utility/CMakeLists.txt