1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-31 14:11:14 +02:00
Commit graph

5 commits

Author SHA1 Message Date
Rober Morales-Chaparro
785ba14814 Added options.cmake, with CMAKE_EXPORT_COMPILE_COMMANDS ON
This commit solves #170

It adds one options.cmake file to allow for flags configuration.
The only flag added so far is CMAKE_EXPORT_COMPILE_COMMANDS

To test:

cmake -S all -B build/
find . -name compile_commands.json
--> ./build/compile_commands.json
2025-03-26 21:15:02 +01:00
Claus Klein
b3007ae14a
modernize cmake packages (#149) 2022-03-23 12:52:34 +01: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
c4fd7dc67f
import tools in all subproject. fixes #57. (#59) 2020-09-02 12:52:14 +02:00
Lars Melchior
e7af9b28c2
add all subproject by default (#56) 2020-08-20 10:24:18 +02:00