mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
15 lines
451 B
CMake
15 lines
451 B
CMake
rm -fr build
|
|
mkdir build
|
|
cd build
|
|
UL=/usr/local
|
|
PPATH="$UL"
|
|
HDF5="-DHDF5_LIB=${UL}/lib/libhdf5.so -DHDF5_HL_LIB=${UL}/lib/libhdf5_hl.so -DHDF5_INCLUDE_DIR=${UL}/include"
|
|
FLAGS="-DCMAKE_PREFIX_PATH=$PPATH"
|
|
FLAGS="$FLAGS -DCMAKE_INSTALL_PREFIX=${UL}"
|
|
FLAGS="$FLAGS -DCMAKE_PREFIX_PATH=$PPATH"
|
|
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
|
FLAGS="$FLAGS -DENABLE_DAP_AUTH_TESTS=true"
|
|
cmake $FLAGS ${HDF5} ..
|
|
cmake --build .
|
|
cmake --build . --target test
|