Use CMake install for install-mdrun (bugs #549, #555)
authorTeemu Murtola <teemu.murtola@cbr.su.se>
Mon, 18 Oct 2010 10:47:18 +0000 (12:47 +0200)
committerTeemu Murtola <teemu.murtola@cbr.su.se>
Mon, 18 Oct 2010 10:47:18 +0000 (12:47 +0200)
commit36133dbe2037f86b2791771259cbed6058886948
tree733a1fd6964593f365a99ef5355006c9aa145120
parenta9e3563a0e8accbe0d4e77ede2f0ab34189077a5
Use CMake install for install-mdrun (bugs #549, #555)

The custom target install-mdrun now invokes the cmake_install.cmake
script that is generated by CMake to perform the actual installation.
Adds support for DESTDIR and RPATH rewriting (see bug #570).

To implement this, all installation targets are now grouped into
components: "data" for shared data, "development" for headers and
pkgconfig files, "libraries" for libraries needed by mdrun, "mdrun" for
mdrun itself, and "runtime" for other binaries and libraries.  Only
"mdrun" and "libraries" are used at the moment (the latter only when
installing with shared libraries).

Haven't tested this with Visual Studio, but if it doesn't work, it
should be easy to adapt.
include/CMakeLists.txt
man/CMakeLists.txt
scripts/CMakeLists.txt
share/CMakeLists.txt
src/gmxlib/CMakeLists.txt
src/kernel/CMakeLists.txt
src/mdlib/CMakeLists.txt
src/ngmx/CMakeLists.txt
src/tools/CMakeLists.txt