aboutsummaryrefslogtreecommitdiff
path: root/CMake_ReadMe.md
blob: b7085059498289f0ee102c119d0edefb6addba4d (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
## CMake Config

Configuring with `cmake` is can very simply be done like this:

~~~ bash
cmake .
~~~

If you want to build against a specific OpenSSL installation (if you have
more than one, or your own private install, or...), you can use the `cmake`
variable `CMAKE_C_FLAGS`:

~~~ bash
cmake -DCMAKE_C_FLAGS='-I/PATH/TO/OPENSSL/include -L/PATH/TO/OPENSSL/lib' .
~~~

Build example:

~~~ bash
mkdir build
cd build
cmake -DCMAKE_C_FLAGS='-I/PATH/TO/OPENSSL/include -L/PATH/TO/OPENSSL/lib' ..
make -j 8
cd ../bin
~~~