1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-24 05:31:03 +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,26 +22,26 @@ I could add some padding to each packet to make it look pseudo-HTTP-like, howeve
## Configuration and compilation ## Configuration and compilation
Make sure you have the following libraries and tools installed: Make sure you have the following libraries and tools installed:
- CMake (>=3.11) - CMake (>=3.10)
- LibSodium (static library) - LibSodium (static library)
- NCurses - NCurses
First, compile the target normally First, compile the target normally
``` ```sh
cmake -B build && cmake --build build $ cmake -B build && cmake --build build
``` ```
Now, generate your custom key pair using `genKey` Now, generate your custom key pair using `genKey`
``` ```sh
./bin/genKey $ ./bin/genKey
``` ```
Next, rerun cmake, but passing your public and private keypairs Next, rerun cmake, but passing your public and private keypairs
``` ```sh
rm -rf build &&\ $ rm -rf build &&\
cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\ cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\
cmake --build build cmake --build build
``` ```

View File

@ -17,7 +17,7 @@ set(LAIKA_VERSION_MINOR 1)
project(LaikaLib VERSION ${LAIKA_VERSION_MAJOR}.${LAIKA_VERSION_MINOR}) 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) configure_file(${LIB_INCLUDEDIR}/lconfig.h.in ${LIB_INCLUDEDIR}/lconfig.h)
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder # Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder

View File

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