mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 08:41:15 +01:00
39 lines
597 B
Bash
39 lines
597 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -x
|
||
|
|
||
|
install_zeromq() {
|
||
|
pushd .
|
||
|
|
||
|
mkdir libzmq
|
||
|
cd libzmq
|
||
|
curl -L https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION}/zeromq-${ZMQ_VERSION}.tar.gz >zeromq.tar.gz
|
||
|
tar -xvzf zeromq.tar.gz
|
||
|
cd zeromq-${ZMQ_VERSION}
|
||
|
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake ..
|
||
|
sudo make -j4 install
|
||
|
|
||
|
popd
|
||
|
}
|
||
|
|
||
|
# build zeromq first
|
||
|
|
||
|
if [ "${ZMQ_VERSION}" != "" ] ; then install_zeromq ; fi
|
||
|
|
||
|
# build cppzmq
|
||
|
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake ..
|
||
|
sudo make -j4 install
|
||
|
|
||
|
# build cppzmq tests
|
||
|
# cd tests
|
||
|
# mkdir build
|
||
|
# cd build
|
||
|
# cmake ..
|
||
|
# make -j5 test ARGS="-V"
|