|
Live Cells C++
Reactive Programming for C++
|
Live Cells is a reactive programming library for C++ ported from Live Cells for Dart.
cells for your dataThis library requires the following:
The following dependencies are not required to use the library, but are required for running the unit tests.
To begin using Live Cells:
Install the library by running the following commands in the directory where you unpacked the tar archive:
This will install Live Cells at /usr/local. You can choose an alternative prefix with:
Live Cells should now be installed at /usr/local or the prefix you've given to configure.
The Live Cells library consists of headers, installed in <prefix>/include/live_cells, and a static library liblive_cells.a installed in <prefix>/lib.
<prefix> is /usr/local, unless specified otherwise with the --prefix argument to the configure script.To use live cells in your C++ project, you'll need to do the following:
<prefix>/include/live_cells to your include path.<prefix>/lib/liblive_cells.a into your compiled binaryAdd the following to your configure.ac:
This searches for the liblive_cells.a in the default library search paths (or the paths specified by the user), adds the necessary linker options to the variable LIBLIVE_CELLS and adds the directory where the header files were installed to the project's include path.
Add the following to your Makefile.am
where target is the name of your compilation target.
Add the following to your CMakeLists.txt file:
<prefix> with the install prefix given to the configure script.Add ${LIVE_CELLS_LIBRARY} to your compilation target with the following:
<target> with your compilation targetNow that your project is set up, all you need to do is include the live_cells.hpp header file:
You're all set to start following the introductory tutorial.