1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
libpmemobj-cpp
===============
[](https://travis-ci.org/pmem/libpmemobj-cpp)
[](https://ci.appveyor.com/project/pmem/libpmemobj-cpp/branch/master)
[](https://scan.coverity.com/projects/pmem-libpmemobj-cpp)
[](https://codecov.io/gh/pmem/libpmemobj-cpp/branch/master)
C++ bindings for libpmemobj (https://github.com/pmem/pmdk)
More informations in include/libpmemobj++/README.md
# How to build #
Requirements:
- cmake >= 3.3
- libpmemobj-dev(el) >= 1.4 (http://pmem.io/pmdk/)
### On Linux ###
```sh
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make install
```
When developing:
```sh
$ ...
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DDEVELOPER_MODE=1
$ ...
$ ctest --output-on-failure
```
To build packages
```sh
...
cmake .. -DCPACK_GENERATOR="$GEN" -DCMAKE_INSTALL_PREFIX=/usr
make package
```
$GEN is type of package generator and can be RPM or DEB
CMAKE_INSTALL_PREFIX must be set to a destination were packages will be installed
### On Windows ###
Install libpmemobj via vcpkg
```sh
vcpkg install pmdk:x64-windows
vcpkg integrate install
```
```sh
...
cmake . -Bbuild -G "Visual Studio 14 2015 Win64"
-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
msbuild build/ALL_BUILD.vcxproj
```
|