mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
10 lines
297 B
CMake
10 lines
297 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"
|
|
cmake -DCMAKE_INSTALL_PREFIX=${UL} -DCMAKE_PREFIX_PATH="$PPATH" ${HDF5} ..
|
|
cmake --build .
|
|
#cmake --build . --target RUN_TESTS
|