Fulcrum/config.tests/zmq/main.cpp
Calin Culianu e00c03171c
Added zmq support to the app, plus building zmq static in docker
- New class: ZmqSubNotifier which only does something if libzmq was
  enabled at compile-time
- Fulcrum.pro now tries to auto-detect libzmq using pkg-config (on
  unix). One can override this auto-detection with `LIBS=-L/path/to/zmqlibdir -lzmq`
- App now compiles-in the commit hash used to build it (Unix only).
  Auto-detected on unix only. On Windows the commit hash must be
  specified as a DEFINE.
- Added -v/--version CLI arg to print extended information about which
  libs the app was built against, including Fulcrum's own commit hash.
- Updated static docker builds to link-in a statically built libzmq
- App now prints what libs it contains / is using at startup to the log.
2021-02-07 01:07:28 +02:00

10 lines
213 B
C++

#include <iostream>
#include <zmq.h>
int main()
{
int maj, min, patch;
zmq_version(&maj, &min, &patch);
std::cout << "ZMQ Version: " << maj << "." << min << "." << patch << std::endl;
return 0;
}