netcdf-c/wjna
2014-04-09 19:57:00 -06:00

34 lines
659 B
Bash

#!/bin/bash
JNADIR="c:/opt/jna"
PREFIX="${JNADIR}"
CPP="${JNADIR}/deps/shared"
FLAGS=""
FLAGS="-DCMAKE_INSTALL_PREFIX=${PREFIX} ${FLAGS}"
FLAGS="-DCMAKE_PREFIX_PATH=${CPP} ${FLAGS}"
FLAGS="-DHDF5_DIR=${CPP}/cmake/hdf5 ${FLAGS}"
FLAGS="-DENABLE_CONVERSION_WARNINGS=OFF ${FLAGS}"
FLAGS="-DBUILD_UTILITIES=OFF ${FLAGS}"
FLAGS="-DENABLE_EXAMPLES=OFF ${FLAGS}"
<<<<<<< HEAD
FLAGS="-DENABLE_V2_API=OFF ${FLAGS}"
=======
>>>>>>> 211004898fffc575fc12dbaa6cc51d165669c3bd
FLAGS="-DENABLE_JNA=ON ${FLAGS}"
rm -fr ./build
mkdir build
pushd build
cmake -G"Visual Studio 12" ${FLAGS} ..
cmake --build . --config Release
cmake --build . --target INSTALL
popd
exit