Overview Tutorial API reference Examples Build Download | ZmqMessage 0.1 - 21 Oct 2011 |
After you have downloaded an archive or cloned a git repository, you may build the shared library, examples and tests.
Go to zmqmessage directory and do following:
$ mkdir build $ cd build //configure CMAKE: This command generates makefiles. $ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install .. //or just "cmake ..". /path/to/install by default is /usr/local //or type "ccmake .." for more control, or when zeromq library is installed in non-standard places //then just make and install: $ make $ make install //or "sudo make install" depending on permissions
That's all.
If you wish to build shared library with custom exceptions (ZMQMESSAGE_EXCEPTION_MACRO) or with ZMQMESSAGE_WRAP_ZMQ_ERROR defined, you may create .hpp file with definitions of these exceptions.
//@file mydefs.hpp #define ZMQMESSAGE_WRAP_ZMQ_ERROR #define ZMQMESSAGE_EXCEPTION_MACRO(name) \ class name \ { \ .... \ }
On "cmake" step you can force include the file:
$ cmake -DZMQMESSAGE_CONFIGURATION_HEADER=/path/to/mydefs.hpp ..
Note, that building shared library is not really necessary, as ZmqMessage library may be compiled in your binary. See linking options section in tutorial for details.
If you want to generate offline documentation:
$ make doc
Documentation is generated at doc/html/index.html.
Note, that you need Doxygen to be installed in order to generate documentation.