# init directory as a git repositorygitinit# clone SDK into external/c-vertices-sdkgitsubmoduleaddhttps://github.com/vertices-network/c-vertices-sdkexternal/c-vertices-sdk# update submodules of the SDK itselfgitsubmoduleupdate--init--recursive# check content of the SDKlsexternal/c-vertices-sdk
Let's create a main.c file with the minimum content:
CMake
We can now init our project with two CMake files that will be used to build the entire project:
Here is the minimum content of the root CMakeLists.txt:
Now we can add our main.c file into myproject/CMakeLists.txt:
The missing link
Before we can start including headers from the Vertices SDK, we need to add the library into myproject :
At the end of myproject/CMakeLists.txt, append that line:
Now you can include the Vertices header in the main file:
There are still some missing parts that will be covered in the next chapters.
Follow the next step to get our implementation of those first two steps 🥳