mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
use namespaced target (#67)
* use namespaced target * update .cmake-format for PackageProject.cmake 1.4
This commit is contained in:
parent
eadea97fe4
commit
8dc50e5294
4 changed files with 5 additions and 3 deletions
|
@ -39,7 +39,7 @@ CPMAddPackage(
|
|||
|
||||
file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
|
||||
add_executable(GreeterTests ${sources})
|
||||
target_link_libraries(GreeterTests doctest Greeter)
|
||||
target_link_libraries(GreeterTests doctest Greeter::Greeter)
|
||||
|
||||
set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue