(Re-)generate .pot file by default, update readme.

This commit is contained in:
tastytea 2021-05-20 07:58:42 +02:00
parent 94c25552a1
commit fe7addc0b0
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/build/
/doc/
/examples/example99*
/translations/*.pot
/translations/de

View File

@ -13,7 +13,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# Project build options.
option(WITH_TESTS "Compile tests." NO)
option(GENERATE_POT "Generate / Update .pot file" NO)
option(GENERATE_POT "Generate / Update .pot file" YES)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

View File

@ -9,6 +9,7 @@
:uri-clang: https://clang.llvm.org/
:uri-cmake: https://cmake.org/
:uri-catch: https://github.com/catchorg/Catch2
:uri-gettext: https://www.gnu.org/software/gettext/
*{project}* is a search tool for EPUB ebooks.
@ -35,6 +36,7 @@ image::https://repology.org/badge/vertical-allrepos/epubgrep.svg[]
* C\++ compiler with C++17 support (tested: link:{uri-gcc}[GCC] 7/10,
link:{uri-clang}[clang] 6/11)
* link:{uri-cmake}[CMake] (at least: 3.12)
* link:{uri-gettext}[gettext] (tested: 0.21)
* Optional
** Tests: link:{uri-catch}[Catch] (tested: 2.5 / 1.2)
@ -63,5 +65,7 @@ cmake --build . -- --jobs=$(nproc --ignore=1)
.CMake options:
* `-DCMAKE_BUILD_TYPE=Debug` for a debug build.
* `-DWITH_TESTS=YES` if you want to compile the tests.
* `-DGENERATE_POT=NO` to not (re-)generate the .pot file.
** `-DXGETTEXT_CMD=String` The program to use instead of `xgettext`.
include::{uri-base}/raw/branch/main/CONTRIBUTING.adoc[]