Official ProximaX Sirius Blockchain SDK Library in C++.
- C++ compliler with C++17 support
- CMake 3.8 or higher
- Conan
Following variables can be used to control build process:
- XPX_CHAIN_SDK_BUILD_STATIC - build static version of library (default - OFF)
- XPX_CHAIN_SDK_BUILD_TESTS - set to ON if you want to build tests (default - OFF)
- XPX_CHAIN_SDK_BUILD_EXAMPLES - set to ON if you want to build the example programs (default - OFF)
- other well-known CMake variables (CMAKE_INSTALL_PREFIX, CMAKE_BUILD_TYPE, etc.)
Prepare build with following instructions:
mkdir build
cd build
cmake ..
make -j 4
make install
You can open cpp-xpx-chain-sdk.sln file with VS and build from its GUI or use Microsoft Build Engine:
msbuild.exe /p:Configuration=Release ALL_BUILD.vcxproj
msbuild.exe INSTALL.vcxproj
Use the following command to find shared or static version of XPX-CHAIN SDK library:
find_package(cpp-xpx-chain-sdk)
or
find_package(cpp-xpx-chain-sdk-static)
XPX-CHAIN SDK package config exports the following target in XPX_CHAIN:: namespace:
- xpxchaincpp
You can also use this variables (not recommended):
- cpp-xpx-chain-sdk_INCLUDE_DIR
- cpp-xpx-chain-sdk_LIBRARY
We'd love to get more people involved in the project. Please feel free to raise issue or PR and we'll review your contribution.
Project is licensed under Apache License Version 2.0. See LICENSE file for details.
Copyright (c) 2019 ProximaX Limited