add filewatch
Some checks are pending
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run
ContinuousIntegration / linux (push) Successful in 20s

This commit is contained in:
2024-06-10 22:27:19 +02:00
parent 0e358157f2
commit fcafb1bd7e
4 changed files with 40 additions and 1 deletions

View File

@ -20,3 +20,22 @@ if (NOT TARGET solanaceae_plugin)
FetchContent_MakeAvailable(solanaceae_plugin)
endif()
if (NOT TARGET filewatch)
FetchContent_Declare(filewatch
GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git
GIT_TAG master
EXCLUDE_FROM_ALL
)
# does not provide a proper cmake
FetchContent_GetProperties(filewatch)
if(NOT filewatch_POPULATED)
FetchContent_Populate(filewatch)
add_library(filewatch INTERFACE
${filewatch_SOURCE_DIR}/FileWatch.hpp
)
target_include_directories(filewatch INTERFACE ${filewatch_SOURCE_DIR})
target_compile_features(filewatch INTERFACE cxx_std_11)
endif()
endif()