mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-09-01 06:30:52 +02:00
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
This commit is contained in:
parent
eedcb6f24e
commit
79060d4af6
10 changed files with 128 additions and 50 deletions
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.14...3.19)
|
||||
|
||||
project(GreeterStandalone LANGUAGES CXX)
|
||||
|
||||
|
@ -27,4 +27,8 @@ add_executable(GreeterStandalone ${sources})
|
|||
|
||||
set_target_properties(GreeterStandalone PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Greeter")
|
||||
|
||||
target_link_libraries(GreeterStandalone Greeter::Greeter cxxopts)
|
||||
# WORKAROUND for ALIAS target is missing error! CK
|
||||
if(NOT TARGET cxxopts::cxxopts)
|
||||
add_library(cxxopts::cxxopts ALIAS cxxopts)
|
||||
endif()
|
||||
target_link_libraries(GreeterStandalone Greeter::Greeter cxxopts::cxxopts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue