mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Rephrases the explanation regarding build presets for clarity in the INSTALL.md file. The text now more explicitly advises users on selecting appropriate presets.
2.2 KiB
2.2 KiB
📥Installation Guide
Using vcpkg
Note: Support vcpkg for package management
- Install vcpkg
- Run the following command to install the orange-math package:
vcpkg install orange-math
CMakeLists.txt
find_package(omath CONFIG REQUIRED)
target_link_libraries(main PRIVATE omath::omath)
For detailed commands on installing different versions and more information, please refer to Microsoft's official instructions.
Using xrepo
Note: Support xrepo for package management
- Install xmake
- Run the following command to install the omath package:
xrepo install omath
xmake.lua
add_requires("omath")
target("...")
add_packages("omath")
Build from source using CMake
-
Preparation
Install needed tools: cmake, clang, git, msvc (windows only).
-
Clone the repository:
git clone https://github.com/orange-cpp/omath.git -
Navigate to the project directory:
cd omath -
Build the project using CMake:
cmake --preset windows-release -S . cmake --build cmake-build/build/windows-release --target omath -j 6Use <platform>-<build configuration> preset to build suitable version for yourself. Like windows-release or linux-release.
Platform Name Build Config windows release/debug linux release/debug darwin release/debug