mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-10-31 18:21:35 +01:00
add CONFIGURE_DEPENDS to glob sources
This commit is contained in:
parent
7a8809648c
commit
83ef03c7df
3 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ CPMAddPackage(
|
|||
|
||||
# ---- Create binary ----
|
||||
|
||||
file(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
|
||||
file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
|
||||
add_executable(GreeterTests ${sources})
|
||||
target_link_libraries(GreeterTests doctest Greeter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue