Skip to content
Snippets Groups Projects
Commit ea429e08 authored by Joakim Söderberg's avatar Joakim Söderberg
Browse files

Update readme with CMake instructions

parent 21fd0454
No related branches found
No related tags found
No related merge requests found
...@@ -25,16 +25,48 @@ It can build on Windows, Mac OS, or Linux using Make and other command line tool ...@@ -25,16 +25,48 @@ It can build on Windows, Mac OS, or Linux using Make and other command line tool
Getting Started Getting Started
----- ---------------
In order to build the binary from source you need to run the following commands inside of the **server** directory: In order to build the binary from source you need to run the following commands inside of the **server** directory:
`$ make submodules` ```bash
$ make submodules
`$ make` $ make
```
The compiled binary will be created in the same **server** directory The compiled binary will be created in the same **server** directory
If you want to remove the compiled binary and source files run: If you want to remove the compiled binary and source files run:
`$ make clean` ```bash
$ make clean
```
Build using CMake
-----------------
The CMake project supports building a Debian package including a SystemD service. Run the following commands in the **server** directory to build using it.
To build the binaries and get a Debian package:
```bash
$ mkdir build
$ cd build
$ cmake ..
$ make # Builds the binaries.
$ cpack -G DEB # Generates the debian package.
```
To list CMake options:
```bash
$ cmake -LH ..
```
You can also install on the system without doing it via a Debian package:
```bash
$ make install
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment