Added instructions to use cxxopts with tipi to INSTALL (#325)
This commit is contained in:
parent
4e208b95b7
commit
779c429b0e
1
.tipi/deps
Normal file
1
.tipi/deps
Normal file
@ -0,0 +1 @@
|
||||
{ }
|
1
.tipi/opts
Normal file
1
.tipi/opts
Normal file
@ -0,0 +1 @@
|
||||
|
23
INSTALL
23
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 <target>
|
||||
./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 <target> --test all -v
|
||||
```
|
||||
|
3
src/.tipi/deps
Normal file
3
src/.tipi/deps
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"jarro2783/cxxopts": { }
|
||||
}
|
2
test/.tipiignore
Normal file
2
test/.tipiignore
Normal file
@ -0,0 +1,2 @@
|
||||
link_a.cpp
|
||||
link_b.cpp
|
Loading…
Reference in New Issue
Block a user