Skip to content

Commit

Permalink
Issue softhsm#362: Add CMAKE-NOTES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bellgrim committed May 30, 2018
1 parent 63547a0 commit 71c90d3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions CMAKE-NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Building SoftHSMv2 with CMake

## Configure

CMake can be configured using the following command:

cmake -H. -Bbuild

Some options (more can be found in CMakeLists.txt):

-DBUILD_TESTS=ON Compile tests along with libraries
-DDISABLE_NON_PAGED_MEMORY=ON Disable non-paged memory for secure storage
-DENABLE_EDDSA=ON Enable support for EDDSA
-DWITH_MIGRATE=ON Build migration tool
-DWITH_CRYPTO_BACKEND=openssl Select crypto backend (openssl|botan)

## Compile

Compile the source code using the following command:

make -C build

## Test

The tests can be run from the build directory:

cd build
ctest -V

## Install

Install the library using the follow command:

cd ..
sudo make -C build install
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ endif
EXTRA_DIST = $(srcdir)/aes_wrap_key_with_pad/botan-diff \
$(srcdir)/aes_wrap_key_with_pad/README \
$(srcdir)/CMakeLists.txt \
$(srcdir)/CMAKE-NOTES.md \
$(srcdir)/config.h.in.cmake \
$(srcdir)/FIPS-NOTES.md \
$(srcdir)/LICENSE \
Expand Down

0 comments on commit 71c90d3

Please sign in to comment.