2014-09-19 08:26:06 +08:00
|
|
|
rm -fr build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-11-30 11:38:12 +08:00
|
|
|
|
|
|
|
export CC=mpicc
|
|
|
|
|
|
|
|
for p in /usr/local/lib /usr/lib ; do
|
|
|
|
if test -z "$ZP" -a -f $p/libz.so ; then ZP=$p; fi
|
|
|
|
if test -z "$HP" -a -f $p/libhdf5.so ; then HP=$p; fi
|
|
|
|
if test -z "$CP" -a -f $p/libcurl.so ; then CP=$p; fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
ZLIB="-DZLIB_LIBRARY=${ZP}/libz.so -DZLIB_INCLUDE_DIR=${ZP}/include -DZLIB_INCLUDE_DIRS=${ZP}/include"
|
|
|
|
HDF5="-DHDF5_LIB=${HP}/libhdf5.so -DHDF5_HL_LIB=${HP}/libhdf5_hl.so -DHDF5_INCLUDE_DIR=${HP}/include"
|
|
|
|
CURL="-DCURL_LIBRARY=${CP}/libcurl.so -DCURL_INCLUDE_DIR=${CP}/include -DCURL_INCLUDE_DIRS=${CP}/include"
|
|
|
|
FLAGS="$FLAGS -DCMAKE_INSTALL_PREFIX=/usr/local"
|
|
|
|
#FLAGS="-DCMAKE_PREFIX_PATH=$PPATH"
|
|
|
|
#FLAGS="$FLAGS -DCMAKE_PREFIX_PATH=$PPATH"
|
2015-08-16 06:26:35 +08:00
|
|
|
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
2015-01-01 13:53:03 +08:00
|
|
|
FLAGS="$FLAGS -DENABLE_DAP_AUTH_TESTS=true"
|
2015-11-30 11:38:12 +08:00
|
|
|
|
2015-09-16 05:18:59 +08:00
|
|
|
cmake $FLAGS ${ZLIB} ${HDF5} ${CURL} ..
|
2015-11-30 11:38:12 +08:00
|
|
|
cmake --build .
|
|
|
|
cmake --build . --target test
|