Skip to content

heavywatal/cxxwtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cxxwtl

Build status

Personal C++ header library

Dependency

Installation

The easiest way is to use Homebrew:

brew install heavywatal/tap/cxxwtl

Alternatively, you can get the source code from GitHub, and install it with CMake:

git clone https://github.com/heavywatal/cxxwtl.git
cd cxxwtl/
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${HOME}/local
cmake --build build
cmake --install build

Usage

Header files are installed to ${CMAKE_INSTALL_PREFIX}/include/wtl/. This library can be imported from other CMake projects:

find_package(wtl COMPONENTS zlib)
target_link_libraries(${YOUR_TARGET} PRIVATE wtl::wtl wtl::zlib)
// example.cpp
#include <iostream>
#include <wtl/math.hpp>

int main() {
    std::cout << wtl::factorial(5) << std::endl;
    return 0;
}

About

🤘 wtl: Personal C++ header library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published