To use the cmake build system do something like this:

If you just want to build calice packages

flcini cmake
git clone /afs/desy.de/group/flc/hcal/calice_soft/git_repo/calice_userlib

Get s.th. similar to /afs/desy.de/group/flc/hcal/calice_soft/pro_test/user-pro-test.cmake (an older version: calicebuild.cmake) in which you define all the paths.

cd calice_userlib
mkdir build
cd build
cmake -C $full-path-to-calicebuild.cmake ../

Set your install prefix.

make install

If you want to do more

flcini cmake
export CVS_RSH=ccvssh
CVSROOT=:ext:anonymous@cvssrv.ifh.de:/lccd ccvssh login
CVSROOT=:ext:anonymous@cvssrv.ifh.de:/calice ccvssh login
CVSROOT=:ext:anonymous@cvssrv.ifh.de:/marlin ccvssh login
mkdir -p  /tmp/spielplatz2/build
cd /tmp/spielplatz2/build


touch calicebuild.cmake
echo 'SET( CMAKE_MODULE_PATH "/afs/desy.de/group/it/ilcsoft/CMakeModules/v01-01/" CACHE PATH "Path to CMake Modules" FORCE )' >>calicebuild.cmake
echo 'SET( CMAKE_INSTALL_PREFIX "/tmp/spielplatz2" CAHCE PATH "Install prefix" FORCE )' >>calicebuild.cmake

# 1) lcio
cvs -d :pserver:anonymous@cvs.freehep.org:/cvs/lcio co lcio

echo 'SET( CLHEP_HOME "/opt/products/CLHEP/2.0.3.1" CACHE PATH "Path to CLHEP" FORCE)' >> calicebuild.cmake

mkdir buildlcio
cd buildlcio
cmake -C ../calicebuild.cmake -DBUILD_WITH="CLHEP" ../lcio
make install
cd ..
echo 'SET( LCIO_HOME "/tmp/spielplatz2" CACHE PATH "Path to ILC Software" FORCE )' >> calicebuild.cmake


# 2a) conddb_mysql
cvs -d :ext:anonymous@cvssrv.ifh.de:/calice co CondDBMySQL
cd CondDBMySQL
./configure --prefix=/tmp/spielplatz2 --with-mysql-inc=/opt/products/mysql/5.0.45/include/mysql --with-mysql-lib=/opt/products/mysql/5.0.45/lib/mysql --with-conddbprofile=localhost:mydb:calvin:hobbes
make install
cd ..
echo 'SET( CondDBMySQL_HOME "/tmp/spielplatz2" CACHE PATH "Path to ILC Software" FORCE )' >> calicebuild.cmake

# 2b) lccd

cvs -d :ext:anonymous@cvssrv.ifh.de:/lccd co lccd
mkdir buildlccd
cd buildlccd
cmake -C ../calicebuild.cmake -DBUILD_WITH=CondDBMySQL ../lccd
make install
cd ..

echo 'SET( LCCD_HOME "/tmp/spielplatz2" CACHE PATH "Path to ILC Software" FORCE )' >> calicebuild.cmake


#3) Marlin (with lccd support )
cvs -d :ext:anonymous@cvssrv.ifh.de:/marlin co Marlin
mkdir buildMarlin
cd buildMarlin
cmake -C ../calicebuild.cmake -DBUILD_WITH="LCCD CondDBMySQL" ../Marlin
make install
cd ..

echo 'SET( Marlin_HOME "/tmp/spielplatz2" CACHE PATH "Path to ILC Software" FORCE )' >> calicebuild.cmake

#4) calice_userlib
cvs -d :ext:anonymous@cvssrv.ifh.de:/calice co -P calice_userlib
cd calice_userlib
tar xzvf /afs/desy.de/user/s/samson/public/CMake.calice-userlib.tgz
cd ..
mkdir buildcalice_userlib
cmake -C ../calicebuild.cmake ../calice_userlib
make install

HCAL Calice use CMake (last edited 2010-12-14 10:12:14 by NilsFeege)