1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-03 15:40:53 +02:00
Commit graph

37 commits

Author SHA1 Message Date
ClausKlein
6ea6bdd2ea add options.cmake project config file
common options used for every cmake project
prevent reame of standalone executable via cmake properties
2021-02-17 10:31:56 +01:00
ClausKlein
56a3c22ad9 build all dll and executable at bin directory 2021-02-17 00:51:29 +01:00
ClausKlein
f59c0cfbee one more try with dll on windows
cleanup code too
2021-02-16 18:25:02 +01:00
ClausKlein
e537d11f1d extend compiler detection for ClangCL 2021-02-15 20:50:34 +01:00
ClausKlein
2b09a8dcb6 be less pedantic for ClangCL 2021-02-15 20:35:09 +01:00
ClausKlein
ae2d022801 windoof dll export is not as easy as it should! 2021-02-15 19:50:26 +01:00
ClausKlein
498caed286 prevent warnings for windoof 2021-02-15 17:22:57 +01:00
ClausKlein
0322f4eeed perfect, dynamic libray suppart added
SOVERSION 1 used and requered
except for windoof!
2021-02-15 09:28:30 +01:00
ClausKlein
7f36b7cb86 cleanup build files
use strict -std=c++20
update cmake-format config file
2021-02-13 21:56:31 +01:00
ClausKlein
1aad14a6fa change github actions to develop branch
set version to v1.0.1
2021-02-12 23:29:14 +01:00
ClausKlein
47fa7c6933 make it useable for me
extent cmake-format config file
use package-lock too
2021-02-12 22:53:26 +01:00
ClausKlein
79060d4af6 do it my way, modernize cmake
build dynamic lib
use makefile wrapper to test all use cases
include clang-tidy config file
prevent clang-tidy warnings
2021-02-12 18:52:34 +01:00
ClausKlein
eedcb6f24e update used CMP package versions 2021-02-11 21:34:43 +01:00
ClausKlein
f158b9ca9c back to version 1.0
respect most review comments
2021-02-11 19:17:06 +01:00
ClausKlein
0f191d72ed cmake-format file 2021-02-10 22:57:16 +01:00
ClausKlein
5e7f68d260 use add_test() and add a warning why
doctest_discover_tests() is only availabe if doctest is not imported with
find_packag()
2021-02-10 22:41:20 +01:00
ClausKlein
88781d22ab add build time dependency to static lib
the header only fmt lib is used to show this
2021-02-10 22:33:08 +01:00
Lars Melchior
8dc50e5294
use namespaced target (#67)
* use namespaced target

* update .cmake-format for PackageProject.cmake 1.4
2020-12-18 19:36:44 +01:00
Lars Melchior
e7af9b28c2
add all subproject by default (#56) 2020-08-20 10:24:18 +02:00
Lars Melchior
218eb2270c
Download cpm.cmake on-demand and lock cmake-format version (#55)
* download cpm.cmake on-demand

* apply clang-format

* use pip3 and version lock cmake-format
2020-08-20 09:11:00 +02:00
Lars Melchior
866ae707e5
Enable cmake formatting (#53)
* enable cmake formatting

* update style check workflow

* update readme

* update wording
2020-08-11 11:10:01 +02:00
Lars Melchior
4e87a9410a
update dependencies (#52) 2020-08-04 13:40:19 +02:00
Lars Melchior
6a5efe38c1
Only apply tools for top-level directory (#36)
* update CPM.cmake

* only apply tools for top-level directory
2020-04-29 10:21:19 +02:00
Cvelth
cefd3fb80e
DOCTEST_CONFIG_USE_STD_HEADERS in MSVC++ (#30)
* replace <sstream> with <ostream>

* Use provided by doctest macro instead of explicit include (#1)

* dEfine  `DOCTEST_CONFIG_USE_STD_HEADERS` globally
2020-04-24 12:20:42 +02:00
Lars Melchior
716a30d90b
Update Format.cmake (#29)
Now uses `find_program` to search for `clang-format`.
2020-04-23 12:04:02 +02:00
Lars Melchior
72561b1e15
Update Format.cmake (windows and out of source build support) (#28)
* update Format.cmake

* update Format.cmake
2020-04-22 17:07:04 +02:00
Lars Melchior
f3e6445b67
add codecov.yaml and update coverage flags (#26) 2020-04-21 12:00:13 +02:00
Lars Melchior
f371ebfb86
treat warnings as errors on msvc as well (#11) 2020-04-15 09:21:48 +02:00
Lars Melchior
a4881dda8b
enforce standards conformance on MSVC and fix warning flags (#10)
* enforce standards conformance on MSVC

* add \W4 flag for test compilation

* enable compiler warnings for the library target when building tests

* update note on testing frameworks

* turns out only clang understands strongly typed enums
2020-04-15 09:12:12 +02:00
Lars Melchior
4c756a78f3
use doctest_discover_tests to find individual tests (#7) 2020-04-14 17:11:41 +02:00
Lars Melchior
adf2801be6
small readme and cmake cleanup (#6)
* small readme and cmake cleanup

* wording
2020-04-14 15:46:15 +02:00
Lars Melchior
23abf01c55
Add CONFIGURE_DEPENDS flag to globs and cleanup (#5)
* join comments

* join target properties

* add empty lines

* update readme

* add CONFIGURE_DEPENDS to glob sources

* update comment about glob

* update comment about removing unused files

* update glob comment in the main CMakeLists
2020-04-14 14:56:32 +02:00
Lars Melchior
991d397433 revert install path and set find_package in tests to REQUIRED 2020-04-14 11:01:15 +02:00
Lars Melchior
83d0e6e7cc track coverage in the actual project 2020-04-13 18:17:01 +02:00
Lars Melchior
b0384f889a add install test 2020-04-13 17:30:09 +02:00
Lars Melchior
3507aa0a21 rename variable 2020-04-13 17:00:37 +02:00
Lars Melchior
c94580f25c init 2020-04-11 12:31:08 +02:00