An algorithm library {#mainpage}

conan xmake msvc linux macos mingw msys2 freebsd doxygen

required tools

optional tools

build

xmake

bash xmake f -m release xmake --build --all xmake install --all

cmake

bash cmake -S . -B build cmake --build build cmake --install build

vcpkg

bash cmake -S . -B build -DENABLE_VCPKG=ON

bash cp -r build/vcpkg/* $VCPKG_INSTALLATION_ROOT

pwsh cp -r -Force build/vcpkg/* $ENV:VCPKG_INSTALLATION_ROOT

conan

bash conan create .

cargo

bash cargo build --release

cython

bash python setup.py build_ext --inplace

wheel

bash python setup.py bdist_wheel

usage

C/C++

xmake.lua

lua add_requires("a")

CMakeLists.txt

cmake find_package(liba CONFIG REQUIRED) target_link_libraries(<TARGET> PRIVATE liba::a)

conanfile.txt

txt [requires] liba/[~0.1]

Lua

lua local a = require("liba") print("version", a.version())

Java

java import liba.a;

Rust

Cargo.toml

toml [dependencies] liba = { git = "https://github.com/tqfx/liba.git" }

main.rs

rs use liba; fn main() { println!("version {}", liba::version()); }

Python

py import liba print("version", liba.version())

Copyright {#copyright}

Copyright (C) 2020-present tqfx, All rights reserved.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.