forked from softhsm/SoftHSMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue softhsm#362: Add CMAKE-NOTES.md
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters