Improve compile instructions.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-05-25 14:20:45 +02:00
parent 96a3a8fe76
commit 81f16bef7d
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 15 additions and 1 deletions

View File

@ -70,6 +70,16 @@ emerge -a app-text/epubgrep
* Optional
** Tests: link:{uri-catch}[Catch] (tested: 2.13 / 1.10)
==== Install dependencies in Debian or Ubuntu
Or distributions that are derived from Debian or Ubuntu. You will need at least
Debian buster or Ubuntu bionic.
[source,shell]
--------------------------------------------------------------------------------
apt install build-essential cmake libboost-program-options-dev libboost-locale-dev libboost-regex-dev gettext libarchive-dev libfmt-dev asciidoc
--------------------------------------------------------------------------------
==== Get sourcecode
===== Release
@ -85,14 +95,18 @@ git clone https://schlomp.space/tastytea/epubgrep.git
==== Compile
In a terminal, go to the directory where you unpacked / cloned the source code
and then:
[source,shell]
--------------------------------------------------------------------------------
mkdir -p build && cd build
cmake ..
cmake --build . -- --jobs=$(nproc --ignore=1)
# cd tests && ctest
--------------------------------------------------------------------------------
To install, run `make install`. To run the tests, run `cd tests && ctest`.
.CMake options:
* `-DCMAKE_BUILD_TYPE=Debug` for a debug build.
* `-DWITH_TESTS=YES` if you want to compile the tests.