add filewatch
This commit is contained in:
19
external/CMakeLists.txt
vendored
19
external/CMakeLists.txt
vendored
@ -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()
|
||||
|
Reference in New Issue
Block a user