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

33 commits

Author SHA1 Message Date
Claus Klein
b3007ae14a
modernize cmake packages (#149) 2022-03-23 12:52:34 +01:00
Dominic
e0bf3f59d1
Use ${PROJECT_NAME} instead of writing projectname multiple times (#134)
* Remove duplicate mentions of project name and replaced it with ${PROJECT_NAME} variable

Update CMakeLists.txt

* Added ${CMAKE_PROJECT_NAME}

* reverted usage of  to Greeter and ran fix-format

* Update test/CMakeLists.txt

Co-authored-by: Dominic Dinser <dominic.dinser@leica-geosystems.com>
Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
2021-10-17 19:10:52 +00:00
Michael Scofield
69320a663b
Updated PackageProject.cmake to 1.8.0 (#143) 2021-10-17 17:50:25 +00:00
Lars Melchior
acab9a3b78
Fix MSVC permissive flags (#123)
Fixes #122.
2021-04-26 09:18:47 +00:00
Dale Lukas Peterson
b59cb2dd7d
Update Ccache.cmake and cmake-scripts (#116) 2021-03-29 12:33:23 +02:00
Dale Lukas Peterson
9e54d3ce9a
Make Greeter link privately to fmt (#109)
Greeter depends on fmt only in it's implementation file, therefore this
dependency can be private.
2021-03-21 21:17:43 +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
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
866ae707e5
Enable cmake formatting (#53)
* enable cmake formatting

* update style check workflow

* update readme

* update wording
2020-08-11 11:10:01 +02:00
Jeremy Wright
2f1b5fab76
Spelling update to CMakeLists.txt (#46) 2020-06-12 09:36:08 +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
032e506c12
Doxygen support (#43)
* init doxygen

* fix format

* use readme as main file

* don't generate LaTeX

* automatically use correct project version and update html settings

* minify Doxyfile

* add documentation

* add workflow to publish documentation

* remove mac comment

* formatting

* fix typo

* grammar
2020-06-03 14:31:53 +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
Aaron Robert
e362045719
docs: fix typos. (#34) 2020-04-26 16:40:59 +02:00
Lars Melchior
918af69383
update packageProject.cmake (bugfix) (#25) 2020-04-21 01:55:23 +02:00
Lars Melchior
d21ff2d02c
update package project (#24) 2020-04-21 01:11:23 +02:00
Lars Melchior
cec2e8cf4d
Add tools.cmake (#14)
* add sanitizer support. closes #13.

* add comment

* add tools.cmake

* document tools

* cleanup

* add tools to feature list
2020-04-16 13:01:52 +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
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
Lars Melchior
df111c1104 replace example dependency with PackageProject.cmake 2020-04-14 12:49:34 +02:00
Lars Melchior
5f3c39b657 add PackageProject.cmake as a CPM dependency 2020-04-14 12:08:30 +02:00
Lars Melchior
7c03ec71ea typo 2020-04-14 11:28:33 +02:00
Lars Melchior
9d8879ed88 move packaging to extra file 2020-04-14 11:23:08 +02:00
Lars Melchior
bf392d6ae3 adjust build include path and set install build type to release 2020-04-14 11:13:24 +02:00
Lars Melchior
c8fec7d575 install into version-specific dirs again 2020-04-14 11:10:28 +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
9084218192 install targets to version-specific locations 2020-04-14 10:34:35 +02:00
Lars Melchior
88a798a3d8
Use correct cmake_minimum_required version 2020-04-13 21:11:36 +02:00
Lars Melchior
c2d7dff1a8 add Q&A section to readme 2020-04-13 17:06:50 +02:00
Lars Melchior
8a50497b19 add note for executables 2020-04-11 19:41:10 +02:00
Lars Melchior
c94580f25c init 2020-04-11 12:31:08 +02:00