2014-09-19 08:26:06 +08:00
|
|
|
rm -fr build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
UL=/usr/local
|
|
|
|
PPATH="$UL"
|
2015-09-16 05:18:59 +08:00
|
|
|
ZLIB="-DZLIB_LIBRARY=${UL}/lib/libz.so -DZLIB_INCLUDE_DIR=${UL}/include"
|
2014-09-19 08:26:06 +08:00
|
|
|
HDF5="-DHDF5_LIB=${UL}/lib/libhdf5.so -DHDF5_HL_LIB=${UL}/lib/libhdf5_hl.so -DHDF5_INCLUDE_DIR=${UL}/include"
|
2015-11-20 04:44:07 +08:00
|
|
|
CURL="-DCURL_LIBRARY=${UL}/lib/libcurl.so -DCURL_INCLUDE_DIR=${UL}/include -DCURL_INCLUDE_DIRS=${UL}/include"
|
2015-01-01 13:53:03 +08:00
|
|
|
FLAGS="-DCMAKE_PREFIX_PATH=$PPATH"
|
|
|
|
FLAGS="$FLAGS -DCMAKE_INSTALL_PREFIX=${UL}"
|
2015-08-16 06:26:35 +08:00
|
|
|
FLAGS="$FLAGS -DCMAKE_PREFIX_PATH=$PPATH"
|
|
|
|
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
2015-01-01 13:53:03 +08:00
|
|
|
FLAGS="$FLAGS -DENABLE_DAP_AUTH_TESTS=true"
|
2015-09-16 05:18:59 +08:00
|
|
|
cmake $FLAGS ${ZLIB} ${HDF5} ${CURL} ..
|
|
|
|
#cmake --build .
|
|
|
|
#cmake --build . --target test
|