Skip to content

Commit c8c3c4e

Browse files
authored
Merge pull request #19 from luadebug/main
Update README.md Vcpkg integration
2 parents 221fd54 + 24ad4ac commit c8c3c4e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ Oranges's Math Library (omath) is a comprehensive, open-source library aimed at
2626
- CMake (for building the project)
2727

2828
### Installation
29+
### vcpkg
30+
**Note**: Support vcpkg for package management
31+
1. Install vcpkg (https://github.com/microsoft/vcpkg)
32+
2. Run the following command to install the orange-math package:
33+
```
34+
vcpkg install orange-math
35+
```
36+
CMakeLists.txt
37+
```cmake
38+
find_package(omath CONFIG REQUIRED)
39+
target_link_libraries(main PRIVATE omath::omath)
40+
```
41+
For detailed commands on installing different versions and more information, please refer to Microsoft's official instructions (https://learn.microsoft.com/en-us/vcpkg/get_started/overview)
42+
### Build from source
2943
1. Clone the repository:
3044
```
3145
git clone https://github.com/orange-cpp/omath.git

0 commit comments

Comments
 (0)