From 779c429b0ec63cc6d5e28b159b044cb8e12ad3a3 Mon Sep 17 00:00:00 2001 From: Yannic Staudt Date: Tue, 22 Mar 2022 12:01:25 +0100 Subject: [PATCH] Added instructions to use cxxopts with tipi to INSTALL (#325) --- .tipi/deps | 1 + .tipi/opts | 1 + INSTALL | 23 +++++++++++++++++++++++ src/.tipi/deps | 3 +++ test/.tipiignore | 2 ++ 5 files changed, 30 insertions(+) create mode 100644 .tipi/deps create mode 100644 .tipi/opts create mode 100644 src/.tipi/deps create mode 100644 test/.tipiignore diff --git a/.tipi/deps b/.tipi/deps new file mode 100644 index 0000000..6f31cf5 --- /dev/null +++ b/.tipi/deps @@ -0,0 +1 @@ +{ } \ No newline at end of file diff --git a/.tipi/opts b/.tipi/opts new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/.tipi/opts @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/INSTALL b/INSTALL index 3e1c6f3..de7b0a8 100644 --- a/INSTALL +++ b/INSTALL @@ -21,3 +21,26 @@ To run the tests, you have to configure `cxxopts` with another flag: cmake -D CXXOPTS_BUILD_TESTS=On ${CXXOPTS_DIR} make make test + +== Using cxxopts in tipi.build projects == + +`cxxopts` can be easily used in [tipi.build](https://tipi.build) projects simply by adding the following entry to your `.tipi/deps`: + +```json +{ + "jarro2783/cxxopts": { "@": "v3.0.0" } +} +``` + +To try this you can run the following command in `/src` (change the target name appropriately to `linux` or `macos` or `windows`): + +```bash +tipi . -t +./build/linux-cxx17/bin/test_package -v +``` + +To develop `cxxopts` using tipi run the following command at the root of the repository: + +```bash +tipi . -t --test all -v +``` diff --git a/src/.tipi/deps b/src/.tipi/deps new file mode 100644 index 0000000..4016165 --- /dev/null +++ b/src/.tipi/deps @@ -0,0 +1,3 @@ +{ + "jarro2783/cxxopts": { } +} \ No newline at end of file diff --git a/test/.tipiignore b/test/.tipiignore new file mode 100644 index 0000000..f69b9ea --- /dev/null +++ b/test/.tipiignore @@ -0,0 +1,2 @@ +link_a.cpp +link_b.cpp \ No newline at end of file