X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMake_ReadMe.md;h=b7085059498289f0ee102c119d0edefb6addba4d;hb=69fd79e35b8e8a56c9d2a37681244b4a7771f4b9;hp=b3bfca1a01cb494e03982d8ecda51f591a3b5fca;hpb=868ae7a730a86f9c1021ea766cd714f817cb934d;p=openssl-gost%2Fengine.git diff --git a/CMake_ReadMe.md b/CMake_ReadMe.md index b3bfca1..b708505 100644 --- a/CMake_ReadMe.md +++ b/CMake_ReadMe.md @@ -1,21 +1,25 @@ ## CMake Config -Required variables: -1. `OPENSSL_PATH` - full path to local [openssl](https://github.com/openssl/openssl) source tree +Configuring with `cmake` is can very simply be done like this: -For Example: +~~~ bash +cmake . +~~~ + +If you want to build against a specific OpenSSL installation (if you have +more than one, or your own private install, or...), you can use the `cmake` +variable `CMAKE_C_FLAGS`: -~~~bash -cmake -DOPENSSL_PATH=/home/user/openssl . +~~~ bash +cmake -DCMAKE_C_FLAGS='-I/PATH/TO/OPENSSL/include -L/PATH/TO/OPENSSL/lib' . ~~~ -Build Example: +Build example: -~~~bash -cd ~/gost-engine +~~~ bash mkdir build cd build -cmake -DOPENSSL_PATH=/home/user/openssl .. +cmake -DCMAKE_C_FLAGS='-I/PATH/TO/OPENSSL/include -L/PATH/TO/OPENSSL/lib' .. make -j 8 cd ../bin ~~~