Martchus
452954dc1f
Add DateTime::exactGmtNow()
...
* Provides more precise wall-clock time
* Only available under UNIX so far
2017-04-19 21:48:23 +02:00
Martchus
ead0fadac3
Unset version info when not available
2017-04-15 23:33:52 +02:00
Martchus
6042336038
Allow checking whether external lib is used
2017-04-15 23:20:27 +02:00
Martchus
b8c2e79e3d
Use meta-data provided in CMake config for version info
...
* Don't set custom meta-data on targets
* It isn't exported anyways
* Remove version on application target because itcauses
CMake to create symlinks
2017-04-15 23:02:41 +02:00
Martchus
be03e5ad4c
Provide meta-data in CMake config
2017-04-15 22:39:41 +02:00
Martchus
412e725309
Append Git revision to version
...
* Append Git revision and ID of latest commit
to version displayed via --help
* Can be turned off via option
* Has no effect if the source dir is not
a Git checkout or Git is not installed
* Implements
https://github.com/Martchus/tageditor/issues/13
2017-04-15 01:45:03 +02:00
Martchus
91e5a8b0b0
Show version of used libraries in --help
...
* Include only own libraries and Qt 5 modules
so far
* First step to implement
https://github.com/Martchus/tageditor/issues/13
2017-04-15 01:10:38 +02:00
Martchus
bfa12a9870
Allow creation of header-only library
...
* Create interface target if only headers present
* Include workaround to show header files in Qt Creator
2017-04-14 23:30:46 +02:00
Martchus
2e0df8aa6a
Allow linking only tests in 3rdParty macros
...
So tagparser tests can link against OpenSSL
for computing checksums
2017-04-08 18:29:21 +02:00
Martchus
7c189b18e1
Allow nested operation arguments
...
eg. syncthingctl pwd rescan
2017-04-06 00:04:30 +02:00
Martchus
864605f5c8
Only assert unique names within same level
...
It might make sense to 'hide' arguments from
higher level if those wouldn't be combinable
anyways.
2017-04-06 00:01:56 +02:00
Martchus
c30011fe09
Fix missleading error message
...
Unknown arg is treated is causing fatal
error in this case and hence not ignored.
2017-04-05 23:45:56 +02:00
Martchus
71231c29da
Fix behavior on empty completion request
2017-04-05 22:56:01 +02:00
Martchus
f86a8b3700
Fix adding dependencies of install-mingw-w64 target
2017-04-04 01:01:03 +02:00
Martchus
cb82630665
Add general target for generating API doc
2017-04-04 01:00:17 +02:00
Martchus
663b31c5fe
Allow skipping install targets
...
* via variable META_NO_INSTALL_TARGETS
* since this is just to silence some warnings
no need to bump minor version
2017-04-01 16:18:32 +02:00
Martchus
daaedb7ba3
Fix issues in TestTarget.cmake
...
* Fix error message
* Improve comments
* Improve target names
* Fix working directory for check target
* Add info that calling enable_testing() on root
level is required for check target to work
* Create workingdir for tests under binary dir to
prevent polluting source dir
2017-03-27 22:12:20 +02:00
Martchus
7b100010c2
Fix error message in ConfigHeader.cmake
2017-03-27 22:07:36 +02:00
Martchus
2965f0cd00
Improve testing applications
...
When LINK_TESTS_AGAINST_APP_TARGET set, create a
library in addition to the application so tests can
link against it to check particular functions. This
replaces the current approach of linking against the
application directly which lead to linker errors.
2017-03-27 11:15:14 +02:00
Martchus
fdbe874bcd
Allow to disable excluding tests from all target
2017-03-23 20:31:57 +01:00
Martchus
89e79275e0
Ensure the console prompt is shown when app terminates
2017-03-22 02:35:28 +01:00
Martchus
5dac8fc76b
Improve startConsole()
...
* Also try to allocate new console
* Don't set buffer info (seems to have not
effect anyways)
2017-03-22 02:09:27 +01:00
Martchus
9a395a45d3
Fix convertArgsToUtf8()
2017-03-22 00:59:34 +01:00
Martchus
0327049b99
Don't compare signed and unsigned
2017-03-20 23:00:23 +01:00
Martchus
d5d8b308e9
Improve build system doc
2017-03-14 23:35:20 +01:00
Martchus
52a76a7bd2
Show warning when a testfile could not be located
...
TODO: Would throwing an exception instead break
something?
2017-03-12 20:25:06 +01:00
Martchus
78869da195
Extend documentation
2017-03-12 20:23:21 +01:00
Martchus
62fee48ef6
Don't ignore documentation
2017-03-12 20:22:58 +01:00
Martchus
675b49f95c
Add all doc files (not only first one)
2017-03-12 19:47:53 +01:00
Martchus
787d541974
Fix conversion of 0 to string
...
Return "0" instead of an empty string
2017-03-07 00:28:46 +01:00
Martchus
f626bdf9c7
Fix typos
2017-03-01 18:18:54 +01:00
Martchus
88196b8076
Allow creation of plugins via LibraryTarget
2017-02-20 20:03:16 +01:00
Martchus
64cc931555
Improve CMake modules
2017-02-11 02:30:46 +01:00
Martchus
789b9e9184
Add macro to auto init resources of static deps
...
The actual generation of the macro code is done
in qtutilities
2017-02-11 02:03:02 +01:00
Martchus
9087e8da7e
Fix dependency of res file for built-in translations
2017-02-09 16:22:33 +01:00
Martchus
af1ab16d77
Use CPPUNIT_ASSERT_EQUAL where possible
2017-02-06 18:35:20 +01:00
Martchus
c4cf107de2
Make cast in binary reader explicit
2017-02-06 18:32:27 +01:00
Martchus
c4d73b0d7d
Use C++14 string literal
2017-02-06 18:32:27 +01:00
Martchus
06af1c4a73
Use std::make_unique provided by C++14
2017-02-05 21:00:52 +01:00
Martchus
96c4e24b6c
Require C++14
2017-02-05 19:19:59 +01:00
Martchus
c13eee6fcc
Add workingCopyPathMode() to be able to skip actual copy
2017-02-04 20:16:50 +01:00
Martchus
cb3b50c28c
Allow overriding default CXX_STANDARD
...
to ease using newer C++ features in further
projects without setting the standard manually
for each target
2017-02-04 17:44:46 +01:00
Martchus
6115933756
Add convenience function to read entire file at once
2017-02-03 01:06:38 +01:00
Martchus
94a6b47811
Improve documentation
2017-02-03 00:54:44 +01:00
Martchus
1ace53533a
string builder: Remove unused code
2017-01-30 00:40:31 +01:00
Martchus
17fe42e0ad
string builder: Support integral types directly
...
Not only convenient but also performance improvement
2017-01-30 00:11:33 +01:00
Martchus
df1605c9b1
Add trait to detect template specialization
...
Useful to check for std::tuple
2017-01-30 00:08:35 +01:00
Martchus
39960ccef1
Add simple benachmark for string builder
2017-01-27 22:16:29 +01:00
Martchus
33d368397f
Make use of newly introduced string builder
2017-01-27 18:51:54 +01:00
Martchus
5c004015ce
string builder: Fix ambiguity issues
2017-01-27 18:50:51 +01:00