From 8c9c4ef7b2496c75fc6a041ee2c5a111392bfd00 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 10 Sep 2017 14:17:06 -0400 Subject: [PATCH] Describe how to use the cmake alternative build system. --- platform-independent/cli-c/CMakeLists.txt | 2 -- platform-independent/cli-c/README.md | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/platform-independent/cli-c/CMakeLists.txt b/platform-independent/cli-c/CMakeLists.txt index c930ebad..a59ff372 100644 --- a/platform-independent/cli-c/CMakeLists.txt +++ b/platform-independent/cli-c/CMakeLists.txt @@ -133,5 +133,3 @@ if( BUILD_MPW_TESTS ) use_mpw_sodium( mpw_tests required ) use_mpw_xml( mpw_tests required ) endif() - -#FEATURE_SUMMARY( WHAT ALL ) diff --git a/platform-independent/cli-c/README.md b/platform-independent/cli-c/README.md index 94e7f4c9..b2ada816 100644 --- a/platform-independent/cli-c/README.md +++ b/platform-independent/cli-c/README.md @@ -15,7 +15,22 @@ Note that the build depends on your system having certain dependencies already i By default, you'll need to have at least `libsodium`, `libjson-c` and `libncurses` installed. -### Details +## Building with cmake + +There is also a cmake configuration you can use to build instead of using the `./build` script. While `./build` depends on Bash and is geared toward POSIX systems, cmake is platform-independent. You should use your platform's cmake tools to continue. On POSIX systems, you can do this: + + cmake . && make + +To get a list of options supported by the cmake configuration, use: + + cmake -LH + +Options can be toggled like so: + + cmake -DUSE_COLOR=OFF -DBUILD_MPW_TESTS=ON . && make + + +## Details The build script comes with a default configuration which can be adjusted. Full details on the build script are available by opening the build script file.