Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.2 KB

installation.md

File metadata and controls

53 lines (38 loc) · 1.2 KB

Installation

clone and build it

You can clone the repository, build target ntfy-lib and link against headers in include/ntfy-lib.

using vcpkg

Currently only installation using an overlay port is implemented. Files can be found in port/ or in releases.

Tutorial for manifest mode

  1. Save vcpkg files to your local disk, for example <proj_root>/ports/.
    1. You may find them added to release tags
    2. If your targeted release does not contain vcpkg file:
      1. copy files from port/
      2. update REF to your release tag and continue with steps 2-4.
      3. Step 4 might crash because of a Hash-Mismatch, update SHA512 to the hash vcpkg shows you
  2. register port dir, for example by creating <proj_root>/vcpkg-configuration.json:
{
  "overlay-ports": [
    "./ports"
  ]
}
  1. include this project in your vcpkg.json:
{
  "name": "ntfy-lib",
  "version>=": "1.0.0"
}
  1. install using
vcpkg install
  1. include lib in your CmakeLists.txt
find_package(ntfy-lib)
target_link_libraries(<target> PRIVATE ntfy-lib::ntfy)
  1. Follow Examples