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

19 commits

Author SHA1 Message Date
ClausKlein
1b3755e6e5 fix merge problems
prevent testing the cxxopts lib
2021-02-27 12:53:02 +01:00
Claus Klein
9d1c7413f0
Merge branch 'master' into develop 2021-02-27 12:10:53 +01: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
ClausKlein
af57146698 clang-format the code again 2021-02-18 17:59:53 +01:00
ClausKlein
268a860b8f do not use NOLINT comments
add a note about missing execptin handling in main
2021-02-18 17:32:28 +01:00
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
f59c0cfbee one more try with dll on windows
cleanup code too
2021-02-16 18:25:02 +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
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
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
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
92adf2db25
Create version header and update readme (#44)
* add note on github pages

* add version information to standalone. closes #35.

* update version info

* move includes into project directory and create version header

* fix style

* add comment for version header location
2020-06-03 16:25:44 +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
Lars Melchior
09d3041f81
make standalone windows compatible (#20)
Remove warning flags from standalone target as they only work for clang, gcc compilers
2020-04-17 14:23:40 +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
1dc64084eb
Add optional standalone executable directory (#2)
* add standalone executable

* update readme

* add standalone workflow

* fix path
2020-04-14 13:59:38 +02:00