Martchus
e9803a41dc
Fix inconsistent variables for compile options/definitions
...
So these options/definitions should no longer be missing in some
places, e.g. the pkg-config file.
3 years ago
Martchus
7204bc6f06
Support using string builder with types convertible to target string type
...
So e.g. std::filesystem::path can be used to build an std::string.
3 years ago
Martchus
4df320bbed
Mention support for GNUInstallDirs in documentation
3 years ago
Martchus
4dd2179f19
Fix remaining install dirs to use GNUInstallDirs consistently
3 years ago
Martchus
b2a2773cdf
Support passing absolute path to CMAKE_INSTALL_INCLUDEDIR
...
See https://github.com/Martchus/cpp-utilities/issues/18
3 years ago
Martchus
1eb64f1208
Make install directory for bash completion files customizable
...
* Use CMAKE_INSTALL_DATAROOTDIR for default
* Allow overriding via BASH_COMPLETION_INSTALL_DIR
3 years ago
Martchus
115133b7a5
Use target name for bash completion file
...
Otherwise it doesn't seem to be sourced automatically
3 years ago
Martchus
30878fab07
Prevent duplicated LIB_SUFFIX
...
Some build system macros might pass CMAKE_INSTALL_LIBDIR/LIB_INSTALL_DIR
and LIB_SUFFIX at the same time. I suppose in this case the LIB_SUFFIX
should not be added if it is already present to avoid `lib6464`.
3 years ago
Martchus
fe43824c98
Allow passing LIB_INSTALL_DIR as well
...
That variable (but not `CMAKE_INSTALL_LIBDIR`) is apparently
passed when building for Fedora with the `%cmake` RPM macro.
3 years ago
Martchus
dcb1d896c2
Apply cmake-format
3 years ago
Martchus
c97dfbfd4c
Use GNUInstallDirs
...
See https://github.com/Martchus/cpp-utilities/issues/17
3 years ago
Martchus
eadb261c56
Ignore file system errors when printing bash completion
3 years ago
Martchus
0f56d25251
Use consistent order for visibility attribute
3 years ago
Martchus
f5e275288d
Reformat CMake files with cmake-format 0.6.7
3 years ago
Martchus
0b56ecfb04
Run cmake-format individually for each file
...
Seems like cmake-format 0.6.7 only applies CLI options
to the first file anymore. So in order to have the options
applied to all files and not just the first one just
invoke it for each file individually.
3 years ago
Martchus
a5283535cc
Support nested tuples in string builder
...
This is useful to concatenate previously constructed sub
strings passed around as tuples.
3 years ago
Martchus
522d2e8cc8
Avoid an indentation level in TestTarget.cmake
3 years ago
Martchus
d5930c8d60
Set visbility preset for test application to default
3 years ago
Martchus
585e7de2ab
Document `CONFIGURATION_NAME` and related build variables
3 years ago
Martchus
5020214498
Add function to get string representation of phrase
3 years ago
Martchus
0cdf2c3492
Use const where possible in code dealing with profiling data
3 years ago
Martchus
a9cb91bee2
Set default visibility explicitely to hidden
...
Hidden default visibility is already expected to be handled by
users of the library because it is the default under Windows.
3 years ago
Martchus
9d8135bfd7
Require CMake 3.3.0 in all modules
3 years ago
Martchus
8e6854985f
Mention CMAKE_<LANG>_CLANG_TIDY in buildvariables doc
3 years ago
Martchus
16103c0662
Add missing <string> include in traits header
3 years ago
Martchus
d76d78ae71
Fix childs -> children
3 years ago
Martchus
c554aebf07
Use type aliases in IniFile
3 years ago
Martchus
1ce06517cc
Apply cmake-format 0.6.5
3 years ago
Martchus
1bdc088b54
Close workingCopy in workingCopyPathAs() for correct error handling
3 years ago
Martchus
07ae1588fa
Add writeFile()
...
Due to the required `file.close()` at then end this is easy
to get wrong. So let's add a helper.
3 years ago
Martchus
3fb40baebc
Reformat CMake scripts against cmake-format 0.6.3
3 years ago
Martchus
6376819c07
Apply cmake-format v0.6.0
3 years ago
Martchus
7376a2bb9b
Support string builder operator '+' for std::string_view
3 years ago
Martchus
b8a60a0cd4
Support string builder operator '%' for std::string_view
3 years ago
Martchus
8e3aa84780
Support std::string_view in stringbuilder.h
3 years ago
Martchus
46bebace20
Consider std::basic_string_view a string in Traits::IsString
...
* Fix e.g. using std::string_view with CppUnit and
the tests/testutils.h header
* Fix documentation
* Possibly a source incompatible change in some rare uses but
not worth a major version bump
3 years ago
Martchus
085ec2feca
Improve DateTime
...
* Improve documentation about time zone handling
* Add DateTime::toTimeStamp()
* Add experimental DateTime::fromChronoTimePoint()
and DateTime::fromChronoTimePointGmt()
3 years ago
Martchus
83180119c2
Add Phrases::InfoMessage
3 years ago
Martchus
4e3393ee72
Apply clang-format
3 years ago
Martchus
a383d7dac5
Use CPPUNIT_ASSERT_EQUAL in IoTests::testBinaryReader()
3 years ago
Martchus
1177381521
Add CppUtilities::endsWith()
3 years ago
Martchus
9a95db3773
Add BinaryReader::readRemainingBytes()
3 years ago
Martchus
2cdde81077
Fix startsWith() if strings are equal
3 years ago
Martchus
a841d764d5
Use override in test fixtures
3 years ago
Martchus
f72b3c2ad9
Update packaging section in README.md
3 years ago
Martchus
23b774e374
Update ArgumentParser::parseArgs()/readArgs() documentation
3 years ago
Martchus
7cdfca9407
Apply cmake-format
3 years ago
Martchus
9cc6be4d4c
Suppress "Available top-level options:" if none available
3 years ago
Martchus
5c098df8d7
Fill last gaps in class list documentation
3 years ago
Martchus
ecdebebab8
Exclude private structs from documentation
3 years ago