1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-12-27 05:10:06 +00:00

updated README, minor CMake improvements

This commit is contained in:
CPunch 2022-02-18 15:26:29 -06:00
parent 574afdda16
commit f8ac74881e
3 changed files with 13 additions and 13 deletions

View File

@ -22,28 +22,28 @@ I could add some padding to each packet to make it look pseudo-HTTP-like, howeve
## Configuration and compilation
Make sure you have the following libraries and tools installed:
- CMake (>=3.11)
- CMake (>=3.10)
- LibSodium (static library)
- NCurses
First, compile the target normally
```
cmake -B build && cmake --build build
```sh
$ cmake -B build && cmake --build build
```
Now, generate your custom key pair using `genKey`
```
./bin/genKey
```sh
$ ./bin/genKey
```
Next, rerun cmake, but passing your public and private keypairs
```
rm -rf build &&\
cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\
cmake --build build
```sh
$ rm -rf build &&\
cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\
cmake --build build
```
Output binaries are put in the `./bin` folder

View File

@ -8,7 +8,7 @@ if(NOT LAIKA_PUBKEY)
endif ()
if(NOT LAIKA_PRIVKEY)
set(LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc")
set(LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc")
endif ()
# version details
@ -17,7 +17,7 @@ set(LAIKA_VERSION_MINOR 1)
project(LaikaLib VERSION ${LAIKA_VERSION_MAJOR}.${LAIKA_VERSION_MINOR})
message(STATUS "Building config file")
message(STATUS "Building config file...")
configure_file(${LIB_INCLUDEDIR}/lconfig.h.in ${LIB_INCLUDEDIR}/lconfig.h)
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder

View File

@ -6,7 +6,7 @@
#define LAIKA_VERSION_MINOR 1
/* keys */
#define LAIKA_PUBKEY "997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814"
#define LAIKA_PRIVKEY "1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841"
#define LAIKA_PUBKEY "40d5534aca77d1f5ec2bbe79dd9d0f52a78148918f95814404cefe97c34c5c27"
#define LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc"
#endif