1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00
Commit graph

23 commits

Author SHA1 Message Date
Lars Melchior
0b21db1022
adapt shorthand syntax in other dependencies (#88) 2021-03-01 20:55:52 +00:00
Lars Melchior
27c17d63cf
update CPM.cmake and use new shorthand syntax (#87) 2021-02-22 20:55:02 +00:00
Claus Klein
2db60f2ccb
Feature/extend build dependency (#80)
* add build time dependency to static lib

the header only fmt lib is used to show this

* use add_test() and add a warning why

doctest_discover_tests() is only availabe if doctest is not imported with
find_packag()

* cmake-format file

* fix missed comment

* back to version 1.0

respect most review comments

* fix typo

* update used CMP package versions

* respect most review comments

no default cxx language settings
install fmt
link against fmt::fmt
export dependency too if not needed
...

* use generic expression as recommended

* Update CMakeLists.txt

Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>

* changes acording review comments

update to current PackageProject version 1.5.0 too

* Update CMakeLists.txt

Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>

* respect review comment

remove NOLINT comment

* back to begining

needs to use doctest cmake modules ...
it is not my idea!

Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
2021-02-19 09:46:11 +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