Martchus
8ed1a03f92
Consider *.c and *.hpp files formattable as well
4 years ago
Martchus
2f0a7050ac
Auto-detect bugtracker on Gitea
4 years ago
Martchus
26496c310e
Make path of Git executable configurable
4 years ago
Martchus
c0f74e4c89
Add BOOST_IOSTREAMS_DYN_LINK to compile defs
if linking dynamically against Boost.Iostreams
4 years ago
Martchus
c66420b1dc
Remove target to launch tests with wine
This wasn't of much use. One can just use `make
check` and set WINEPATH before manually.
4 years ago
Martchus
749eea2ab6
Support NativeFileStream via Boost.Iostreams
So it can also be enabled when not using libstdc++.
4 years ago
Martchus
3c02ad6d92
Fix check for source files
4 years ago
Martchus
3a65e3ecdd
Adjust CMake modules for better Android support
4 years ago
Martchus
93d6fb5d88
Reduce indentation in ListToString
4 years ago
Martchus
35ebac1cac
Add static-check target for executing clang-tidy
4 years ago
Martchus
2e2b66e398
Add mingw-w64 specific targets only when using mingw-w64
4 years ago
Martchus
6dcd39f1ac
Set CXX_STANDARD on header-only lib target for Qt Creator
4 years ago
Martchus
3a6bbb0115
Allow enabling GUI config even when no specific sources present
Useful when GUI specific code is only wrapped using #ifdef so
there are no extra files.
4 years ago
Martchus
79679c0f42
Improve fake target for Qt Creator
This target is required so files for header-only libs
show up in Qt Creator. So far it was just a custom target.
However, this way include directories and build flags are
not correctly passed to the code model. So creating an
actual library now.
4 years ago
Martchus
b77607f3e0
Rename META_REQUIRED_FEATURES
Because those features are actually not required.
4 years ago
Martchus
4a69db787d
Allow to create header for feature detection
The header will only contain some preprocessor conditions.
CMake will *not* do checks with the current compiler.
4 years ago
Martchus
52bf075317
Move creation of srcdirref and testfiles dir to BasicConfig
Those make testing more convenient and are also useful when
there's no test target, eg. when testing syncthingtray with
mocked configuration.
4 years ago
Martchus
7cafdd551e
Fix wrong negation to enable Doxygen target
4 years ago
Martchus
9a352e0b8f
Do not add source files to Doxygen target
Adding the files only has the effect that the files
are shown in the IDE. However, the files should be present
anyways and adding them again causes Qt Creator to
accidently use the wrong target for the code model.
4 years ago
Martchus
19332033ec
Format all GUI-only files
4 years ago
Martchus
9e8ec0fcd5
Split Qt-specific config from other config
So adding Qt-specific config does not require a change
in c++utilities anymore.
4 years ago
Martchus
8a83870ac7
Allow variable number of digits in license versions
4 years ago
Martchus
d684e20bfc
Add launchable to appdata.xml
4 years ago
Martchus
0dcbb3de55
Improve coding style in CMake modules
4 years ago
Martchus
eea5aa57bc
Fix reading version of static Qt 5 modules
4 years ago
Martchus
7c8580d579
Add license to config
4 years ago
Martchus
e57e79f9c9
Stringify meta data in template
4 years ago
Martchus
486c99f7fd
Determine project license automatically
4 years ago
Martchus
989d1d20c8
Allow using templated appdata body
4 years ago
Martchus
6300e37924
Install shared/static config
4 years ago
Martchus
486a09c1c5
Add basic template for meta info
4 years ago
Martchus
3fcbaf7fff
Split shared and static configuration
4 years ago
Martchus
5950aed7ec
Adjust use of llvm-cov to LLVM 5
4 years ago
Martchus
18e7154c03
Allow test target to be intended for manual testing
So those test targets which only setup an environment for
manual testing can be excluded from eg. `make check`.
4 years ago
Martchus
a67805cb0f
Allow providing a special include dir for build
4 years ago
Martchus
5c6207c6fa
Do not try to strip header only libs
4 years ago
Martchus
60a762f514
Allow configuring static Qt Widget style plugins
Required since the platform styles have been
pluginized in Qt 5.10
See 4f3249f32d
5 years ago
Martchus
9744efda70
Ensure default testfiles directory for working copy exists
5 years ago
Martchus
684e97ce2a
Allow customizing the config header file
by setting the 'META_CUSTOM_CONFIG' variable
5 years ago
Martchus
a4e7cbd5c3
Make target 'interface_sources_for_qtcreator' unique
5 years ago
Martchus
e283eea1f0
Prevent using executable of header-only lib for coverage
5 years ago
Martchus
a7880e3d0c
Remove *.qm files from targets when built-in translations enabled
This prevents updating *.ts files twice and in parallel leading to
build errors.
5 years ago
Martchus
2bb4aa36a4
Let tests find the testfiles from sources without extra args
Currently the path of the testfiles always had to be specified
either manually using the -p argument or by running the tests
via the build system targets. The first option is annoying and
the second option not so nice when using Qt Creator and the
debugger.
This commit allows tests to find the testfiles from the source
directory automatically (as fallback). This is achieved by
creating a file containing the path of the source directory
with CMake. Note that this file can only be found if the working
directory is set to the binary directory (default in Qt Creator).
5 years ago
Martchus
2203e0a335
Set dependencies of tidy target correctly
5 years ago
Martchus
a869aa8def
Do not add sources to header-only libs
5 years ago
Martchus
d25265fee1
Don't add include path for config.h to header-only libs
This causes CMake errors and CMake is acutally right, it makes
no sense because the config header is only available during build
but a header-only lib is not being built.
5 years ago
Martchus
cb02d5c733
Add target for building all tests
This allows to build all tests at once without
adding them to "all" target. In contrast to the
check target, the tests are not executed.
5 years ago
Martchus
ae249140bc
Use also actual lib name to check whether dependency is public
In accordance to 'Fix adding public Qt modules in pkg-config'
in qtutilities (b2e3506ff59ae4b610c91bd9ee96333871fa5864).
5 years ago
Martchus
472e0296d0
Fix adding public static lib dependencies
5 years ago
Martchus
05605a1b25
Filter files for tidy
5 years ago