2
0

Describe how to use the cmake alternative build system.

This commit is contained in:
Maarten Billemont 2017-09-10 14:17:06 -04:00
parent 1adb18a7e7
commit 8c9c4ef7b2
2 changed files with 16 additions and 3 deletions

View File

@ -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 )

View File

@ -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.