Compare commits
3 Commits
main
..
2172ce3da3
| Author | SHA1 | Date | |
|---|---|---|---|
| 2172ce3da3 | |||
| 1e7cdffd69 | |||
| 7a2e60d877 |
@@ -10,7 +10,7 @@ and public headers.
|
|||||||
* `python3-venv`
|
* `python3-venv`
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
Create a `python` virtual environment, install `conan`, and create a default profile:
|
1. Create a `python` virtual environment, install `conan`, and create a default profile:
|
||||||
```bash
|
```bash
|
||||||
python3 -m venv conan.venv
|
python3 -m venv conan.venv
|
||||||
source conan.venv/bin/activate
|
source conan.venv/bin/activate
|
||||||
@@ -20,25 +20,13 @@ conan profile detect
|
|||||||
|
|
||||||
## Building and running
|
## Building and running
|
||||||
1. To build, run:
|
1. To build, run:
|
||||||
```bash
|
```bash
|
||||||
./build.sh
|
./build.sh
|
||||||
```
|
```
|
||||||
2. The build command will generate a `deb` package in the `_packages` directory. To install (to
|
1. The build command will generate a `deb` package in the `_packages` directory. To install (to
|
||||||
`/usr/local`) run:
|
`/usr/local`) run:
|
||||||
```
|
```
|
||||||
sudo dpkg -i _packages/_packages/cppchallenge_1.0.0_*.deb
|
sudo dpkg -i _packages/_packages/cppchallenge_1.0.0_*.deb
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
```
|
```
|
||||||
__TODO__: The `sudo ldconfig` step should be added to the `deb` package `postinst` step...
|
__TODO__: The `sudo ldconfig` step should be added to the `deb` package `postinst` step...
|
||||||
3. To run:
|
|
||||||
```
|
|
||||||
$ cppchallenge
|
|
||||||
Hello World!
|
|
||||||
File name is: aname
|
|
||||||
$ cppchallenge --help
|
|
||||||
Just a simple 'hello'
|
|
||||||
Usage: cppchallenge [OPTIONS]
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-h,--help Print this help message and exit
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user