mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-03 07:30:53 +02:00
Modernize cmake project files
Fix install target Update cmake-format config file Format all cmake files. Update CPM.cmake version. Use FILE_SET HEADER to verify and install the header files. Prevent build problems caused by CPM_USE_LOCAL_PACKAGES Prevent problems with doctest if local found
This commit is contained in:
parent
5115efe66a
commit
a3bc933175
14 changed files with 441 additions and 32 deletions
10
cmake/Config.cmake.in
Normal file
10
cmake/Config.cmake.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
include(CMakeFindDependencyMacro)
|
||||
|
||||
string(REGEX MATCHALL "[^;]+" SEPARATE_DEPENDENCIES "@PROJECT_DEPENDENCIES@")
|
||||
|
||||
foreach(dependency ${SEPARATE_DEPENDENCIES})
|
||||
string(REPLACE " " ";" args "${dependency}")
|
||||
find_dependency(${args})
|
||||
endforeach()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
Loading…
Add table
Add a link
Reference in a new issue