aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: de4d3add54a6babdd49725534d6c626eecd569a4 (plain)
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
# NostrSDK

C++ System Development Kit for Nostr

## Building the SDK

### Prerequisites

This project uses CMake as its build system, and vcpkg as its dependency manager.  Thus, to build the SDK, you will need the following:

- CMake 3.19 or later
- C++17 compiler
- vcpkg

### Building and Testing

The SDK aims to support Linux, Windows, and macOS build targets.  CMake presets are provided for each target.

#### Linux

To build the SDK on Linux, run the following commands from the project root:

```bash
cmake --preset=linux .
cmake --build ./build/linux
```

To run unit tests, use the following command:

```bash
ctest ./build/linux
```