Skip to content

Commit ab26f98

Browse files
committed
Add cmake and vcpkg instructions to the readme
1 parent b5c38e4 commit ab26f98

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ int128 is under active development and is not an official boost library.
1717
This library is header only. It contains no other dependencies.
1818
Simply `#include` it and use it.
1919

20+
## CMake
21+
22+
```sh
23+
git clone https://github.com/cppalliance/int128
24+
cd int128
25+
mkdir build && cd build
26+
cmake .. OR cmake .. -DCMAKE_INSTALL_PREFIX=/your/custom/path
27+
cmake --build . --target install
28+
```
29+
30+
then you can use `find_package(boost_int128 REQUIRED)`
31+
32+
## vcpkg
33+
34+
```sh
35+
git clone https://github.com/cppalliance/int128
36+
cd int128
37+
vcpkg install int128 --overlay-ports=ports/int128
38+
```
39+
2040
# Supported Platforms
2141

2242
Boost.Int128 is tested natively on Ubuntu (x86_64, x86_32, s390x, aarch64, ARM32v7), macOS (x86_64, and Apple Silicon), and Windows (x86_64, x86_32, and ARM64);

0 commit comments

Comments
 (0)