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
64cc931555
Improve CMake modules
2017-02-11 02:30:46 +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
416008da1a
Set compile definitions for tests
2016-11-26 13:06:27 +01:00
Martchus
00f7795dcd
Link test target against neccassary libraries
...
In addition to previous libs, also link against
- same libs as app/lib target
- the app target itself if required
2016-09-20 20:52:29 +02:00
Martchus
7b946864a6
Remove pthread dependency from test target
2016-09-11 20:32:59 +02:00
Martchus
fe4e4b2ef5
Fix issues concerning building/using static libraries
...
- Ensure static versions of 3rd party libs are
found correctly
- Link tests against statically if only static
libraries have been built
- Ensure standard lib is linked statically when
static linkage is enabled
2016-08-19 16:14:55 +02:00
Martchus
17d22be584
Support testing applications
2016-07-30 22:34:31 +02:00
Martchus
8efe38dadf
Improve details in the build system
...
- add target to run cross compiled Windows binaries with wine
- quit tests if --help has been specified
2016-07-16 23:04:22 +02:00
Martchus
bd0cbd5802
reduce code duplication in build system
...
- get rid of qmake project file
- provide CMake modules for common tasks
- provide templates for *.desktop files
2016-04-16 02:11:05 +02:00