/share

Useful general-purpose functions

Primary LanguageC++MIT LicenseMIT

share

A library of useful general-purpose functions for use in any program.

dependencies:

fmt library

  1. from https://github.com/fmtlib/fmt
  2. install on macOS: brew install fmt

range-v3 (Eric Niebler) library

  1. from https://github.com/ericniebler/range-v3
  2. install on macOS: brew install range-v3

date (Howard Hinnant) library

  1. from https://github.com/HowardHinnant/date
  2. install on macOS: brew install howard-hinnant-date

How to add to your own project (using CMake):

  1. Go to the root directory of your project (I assume you have git initialized).
  2. Enter the command: git submodule add https://github.com/piotrpsz/share.git
  3. In your project's CMakeLists.txt file, add the following:
    • add_subdirectory(share)
    • target_link_libraries(your_project_name PUBLIC share)