Another "Cmake" vs. "Configure" question

Hi all,

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
WITH CONFIGURE :

./configure linuxx8664gcc --prefix=$LOCAL --enable-minuit2 --enable-mathmore --enable-gsl-shared --enable-fftw3
($LOCAL = ~/local is empty)
make -j4
make install

this install :
~/local/bin/…lotsofexecutables…
~/local/include/root/…lotsofheaders…
~/local/lib/root/…lotsofsharedlibraries…rootmapfiles…pcmfiles…
~/local/etc/root/…
~/local/share/…

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

WITH CMAKE : (with external build directory)
cmake -DCMAKE_INSTALL_PREFIX=$LOCAL -Dfftw3=ON -Dgsl_shared=ON -Dmathmore=ON -Dminuit2=ON …/root/
($LOCAL = ~/local is empty)
make -j4
make install

this install :
~/local/ aclocal bin cmake config emacs etc fonts icons include lib LICENSE macros man README test tmva tutorials
with
~/local/include/…lotsofheaders…
~/local/lib/…lotsoflibs…

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
What is the recommended install directories hierarchy : ~/local/include/root vs ~/local/include ?
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Thanks for your advices…

My system is :
ROOT commit d289750cc20e11b2deed3f0ea0d0bf93d5bc3937
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86_64 GNU/Linux
g++ (Debian 4.9.2-10) 4.9.2
ldd (Debian GLIBC 2.19-13) 2.19

If you want to achieve the similar installation behavior as ./configure --prefix=$LOCAL with the CMake build you need to use the option -Dgnuinstall=ON. For example:

cmake -DCMAKE_INSTALL_PREFIX=$LOCAL  -Dgnuinstall=ON -Dfftw3=ON -Dgsl_shared=ON -Dmathmore=ON -Dminuit2=ON ../root/

You have in addition a bunch of variables to fine control the installation location of each component.
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_SYSCONFDIR
CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_DATADIR
CMAKE_INSTALL_MACRODIR
CMAKE_INSTALL_CINTINCDIR
CMAKE_INSTALL_ICONDIR
CMAKE_INSTALL_FONTDIR
CMAKE_INSTALL_SRCDIR
CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_TESTDIR
CMAKE_INSTALL_TUTDIR
CMAKE_INSTALL_ACLOCALDIR
CMAKE_INSTALL_ELISPDIR
CMAKE_INSTALL_CMAKEDIR

I hope this helps.