Template Repository TL; DR: Fork this repository to start a new C++ project based on the symbol-sdk-cpp libraries.
The SDK Provides a foundation for C++ Application Development on the NEM's Symbol blockchain. It Depends on nemtech/catapult_server, providing core algorithms.
git clone https://github.com/nemtech/symbol-skel-cpp
cd <your_project>
scripts/configure.sh <customization_details(enter nothing for help)>
Customizable items are:
- The Project Name:
variants:
- Unix. project_name (Used for directories, namespace)
- Space. "Project Name" (Used for UI)
- Upper. PROJECT_NAME (Used for CMake variables)
- nemtech/symbol-sdk-core-cpp - Symbol algorithms.
- nemtech/symbol-sdk-cpp - REST-API Symbol functions.
Once configured proceed to build the project.
mkdir _build; cd _build
cmake ..
make
You can pass options to cmake to specify alternative locations of the symbol-sdk-core and symbol-sdk libraries using
cmake -DSYMBOLCORE_ROOT=<path_to_symbol_sdk_core_cpp> -DSYMBOLRPC_ROOT=<path_to_symbol_sdk_cpp> ..
Paths shall point to a directory containing standard directories bin, lib and include.
In order to install the library and cliente application in the system type:
sudo make install
CMake accepts the useful definition for specifying the install target location.
cmake -DCMAKE_INSTALL_PREFIX=<target_directory> ..
Ships:
-
branch main:
- Release Manager TBD
-
branch dev:
- developer marcos.mayorga@nem.software
- [apply^]