mkdir -p buildcmake/install && cd buildcmake
cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=install
ninja install
ls install/lib
Should return 2 files and 2 symbolic links:
- `libbitcoinconsensus.a`
- `libbitcoinconsensus.so.0.0.0`
- `libbitcoinconsensus.so.0` (link to `libbitcoinconsensus.so.0.0.0`)
- `libbitcoinconsensus.so` (link to `libbitcoinconsensus.so.0`)
ls install/include
Should return `bitcoinconsensus.h`.
nm -D --defined-only install/lib/libbitcoinconsensus.so
Check the exported symbols contain the 3 above mentioned functions.
ninja check # There are additional test cases in `script_tests.cpp`
rm -rf *
mkdir install
cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/OSX.cmake
ninja install
ls install/lib
Should return 2 files and 1 symbolic link:
- `libbitcoinconsensus.a`
- `libbitcoinconsensus.0.dylib`
- `libbitcoinconsensus.dylib` (link to `libbitcoinconsensus.0.dylib`)
ls install/include
Should return `bitcoinconsensus.h`.
rm -rf *
mkdir install
cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=install \
-DBUILD_BITCOIN_SEEDER=OFF \
-DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win64.cmake
ninja install
ls install/lib
Should return 2 files :
- `libbitcoinconsensus-0.a`
- `libbitcoinconsensus-0.dll`
ls install/include
Should return `bitcoinconsensus.h`.
rm -rf *
cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=install \
-DBUILD_LIBBITCOINCONSENSUS=OFF
ninja install
ls install
Should have no `lib` nor `include` directory.