Commit Graph

307 Commits

Author SHA1 Message Date
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
Martchus 5eec3c3c9b traits: Fix Any and add Enable-/DisableIfAny 2017-01-27 18:49:53 +01:00
Martchus a772cdf30b Add conveniently usable string builder
which allows fast string building without multiple heap allocations
2017-01-26 22:16:18 +01:00
Martchus f23c381da4 Support dylib extension used under macOS 2017-01-15 17:44:23 +01:00
Martchus 1bff266fa9 Add missing #endif in platform detection 2017-01-14 02:24:36 +01:00
Martchus 8d95b4497f Clean io/path.h 2017-01-14 00:33:02 +01:00
Martchus c4ed080b34 Fix platform detection
* Consider macOS a UNIX system
* Remove compiler conditions for PLATFORM_MAC
2017-01-14 00:29:43 +01:00
Martchus 640d20c463 Make Qt translations of dependencies available in config.h 2017-01-07 16:07:03 +01:00
Martchus 81913922a6 Merge pull request #3 from svnpenn/master
io/nativefilestream.cpp: proper catchiofailure.h include
2016-12-30 09:54:58 +01:00
Steven Penny 025be1e54e io/nativefilestream.cpp: proper catchiofailure.h include
1. Using <> makes no sense if cpp-utilities is being built for first time

2. Again, search in <prefix>/c++utilities/io makes no sense if cpp-utilities is
   being built for first time
2016-12-29 22:16:38 -06:00
Martchus 737f73e71a Make forcing UTF-8 codepage optional 2016-12-24 16:08:09 +01:00
Martchus 28d2063d33 Fix Bash completion for abbreviations 2016-12-24 16:07:43 +01:00
Martchus cab332bcad Refactor reading arguments
Replace ArgumentParser::readSpecifiedArgs() with
ArgumentReader class to simplify argument list
2016-12-23 22:40:33 +01:00
Martchus 9d91cfca07 Add NativeFileStream to support unicode filenames under Windows 2016-12-21 00:29:57 +01:00
Martchus 59a8dfe833 Convert args to UTF-8 under Windows 2016-12-19 23:44:34 +01:00
Martchus 89cb027786 Ensure console output is UTF-8 under Windows 2016-12-19 23:43:24 +01:00
Martchus 36246d3895 Allow adding files for documentation only 2016-12-11 17:09:02 +01:00
Martchus 939a43e348 Clean argument parser tests 2016-12-07 21:06:21 +01:00