Martchus
639018285d
Fix typos
1 week ago
Martchus
8f4ca38c69
Update documentation of argument parser
1 week ago
Martchus
3c769fa242
Add greedy-flag for argument parser
...
This is useful if one needs to pass subsequent arguments as-is to another
nested argument parser.
1 week ago
Martchus
08194f5d32
Bump minor version
1 week ago
Martchus
3444e4bbb1
Improve argument parser tests
...
* Use auto
* Use `CPPUNIT_ASSERT_EQUAL` with `std::string_view` instead of `strcmp`
for better error messages in case of a failure
* Avoid instantiating an `std::string` in checks using `std::string_view`
instead
1 week ago
Martchus
b1b811c57f
Apply clang-format
1 week ago
Martchus
9e036a3f72
Allow enabling virtual terminal processing under Windows
...
* or disable use of ANSI-escape codes if not possible
* See https://github.com/Martchus/syncthingtray/issues/132
4 weeks ago
Martchus
cf510f0397
Use macros from cstdlib instead of hard-coding exit codes
1 month ago
Martchus
c931e2d928
Fix missing `#pragma GCC diagnostic push`
1 month ago
Martchus
7555e6854b
Add test helper to use std::optional via CPPUNIT_ASSERT_EQUAL
2 months ago
Martchus
c1152ca062
Ignore warning about possible null pointer dereferences appearing with GCC 12
...
Not sure why this warning is occurring but it is likely incorrect
2 months ago
Martchus
f46855b130
Bump patch version
2 months ago
Martchus
24709861e2
Add stalebot config
3 months ago
Martchus
c1e93738b6
Fix condition for avoiding `-static` flag
...
There's no `LINUX`; I suppose `UNIX` is specific enough as well.
3 months ago
Martchus
910432df4c
Add copyright notice
3 months ago
Martchus
58c3506ca0
Add opt-out for enforcing static linkage (when generally aiming for static linkage)
3 months ago
Martchus
28a35e9673
Remove project name from headers dir if it already starts with it
...
This is useful if the repo contains headers in a directory called like the
project itself and should not have any effect on other projects.
3 months ago
Martchus
f88ca7d16d
Silence warning about type conversion in test helper
...
It is a possibly lossy conversion but good enough for a test helper.
4 months ago
Martchus
052f8d2bd2
Add helper to make native path from internal representaton
4 months ago
Martchus
d4cf030ed9
Clarify that license is "GPL-2-or-later"
4 months ago
Martchus
3d59664021
Add `std::string_view` overloads to certain I/O functions
4 months ago
Martchus
77c353fb6c
Add `TickType` and integer overloads to chrono utilities
5 months ago
Martchus
a8fddad804
Add WorkingCopyMode::Cleanup
6 months ago
Martchus
ef37ae437c
Fix compile error with Clang related to diagnostic pragma
...
Fix
```
pragma diagnostic pop could not pop, no matching push
```
The GCC documentation says "If a pop has no matching push, the
command-line options are restored." but that's apparently not working here.
7 months ago
Martchus
f81607be82
Possibly avoid ambiguous function call in conversion tests
...
This might avoid
```
/Users/oldfaithful/Local/tageditor/cpp-utilities/tests/conversiontests.cpp:29:15: error: call to 'swapOrder' is ambiguous static_assert(swapOrder(0xABCDEF1234567890ul) == 0x9078563412EFCDABul, "swapOrder(uint64)");
```
reported by https://github.com/Martchus/cpp-utilities/issues/22
7 months ago
Martchus
b30028984a
Ignore warning about possible null pointer dereference
7 months ago
Martchus
3b0ed313bc
Avoid warning about using uninitialized variable
7 months ago
Martchus
6c7e8ae735
Avoid warning about out of bounds array access
7 months ago
Martchus
4f89aa3b53
Bump patch version
7 months ago
Martchus
f20ea87f32
Fix using arguments in `configure_test_target`
8 months ago
Martchus
9cbff29c9e
Fix passing application path when invoking tests
...
We need to pass the application's path here; not the path of the test
itself.
8 months ago
Martchus
11574209b3
Add experimental support for generating coverage report via gcc/gcov/lcov
8 months ago
Martchus
37c2b920d0
Remove obsolete check when configuring coverage with Clang
...
Building shared and static libraries at the same time has been removed as
of version 5 so this message would never be printed and it is not clear
anymore what the actual problem was.
8 months ago
Martchus
5563776061
Expose test name (created via `TestTarget.cmake`) for fixing downstream bug
...
This allows to set test properties in other projects as needed to fix
https://github.com/Martchus/syncthingtray/issues/116 .
9 months ago
Martchus
5509caff89
Remove unused `META_CONFIG_PREFIX`
...
This variable was never actually used. I suppose I've been adding it for
places where the config should be added as a prefix. However, this would be
inconsistent and now would also mean a confusing overlap with the
namespacing feature. So let's just remove it.
9 months ago
Martchus
072b7b5136
Apply cmake-format
9 months ago
Martchus
347e283e8b
Merge pull request #21 from hrittich/upstream-patches
...
Fix namespace for file names
9 months ago
Hannah Rittich
b8eee6d9d6
Fix namespace for file names
9 months ago
Martchus
2fc54ecdaa
Merge pull request #20 from hrittich/tmp
...
Allow configuration name as prefix
9 months ago
Hannah Rittich
3730830880
Added namespace for file names
9 months ago
Martchus
a9e3d37681
Document `TLS_SUPPORT` and `META_TLS_PLUGINS` variables
9 months ago
Martchus
9c9a47e551
Define `QT_STATICPLUGIN` when building static Qt plugins
...
This requirement is documented here:
https://doc.qt.io/qt-5/plugins-howto.html#creating-static-plugins
10 months ago
Martchus
030e6a2034
Source required packages before adding target
...
The config script for adding the target (which is generated
by CMake) otherwise complains that referenced dependencies
are missing. Not sure why this was never a problem. Maybe
the packages were just present anyways or CMake added
additional checks at some point.
10 months ago
Martchus
3a52ae5e22
Prevent attempt to strip import lib for static plugin
10 months ago
Martchus
48c7906bf6
Do not export include dirs for plugins
...
Plugins don't have headers and the non-existant
include directory leads otherwise to configuration
errors when trying to link against a static plugin.
10 months ago
Martchus
18295c98ec
Fix exporting list of required CMake packages
10 months ago
Martchus
6d0148e2c3
Allow overriding BUILD_SHARED_LIBS via a project-specific cache variable
10 months ago
Martchus
af0294f0fb
Apply cmake-format
10 months ago
Martchus
1b6ffb561a
Fix locating files which are directly under the data dir (and not in the cmake dir)
10 months ago
Martchus
643112931c
Fix wrong usage of `APPEND` when marking Windows resource file as generated
10 months ago