2024-06-10 20:11:25 +02:00
|
|
|
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
|
|
|
|
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
if (NOT TARGET solanaceae_message3)
|
|
|
|
FetchContent_Declare(solanaceae_message3
|
|
|
|
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_message3.git
|
|
|
|
GIT_TAG master
|
|
|
|
EXCLUDE_FROM_ALL
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(solanaceae_message3)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT TARGET solanaceae_plugin)
|
|
|
|
FetchContent_Declare(solanaceae_plugin
|
|
|
|
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_plugin.git
|
|
|
|
GIT_TAG master
|
|
|
|
EXCLUDE_FROM_ALL
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(solanaceae_plugin)
|
|
|
|
endif()
|
|
|
|
|
2024-06-10 22:27:19 +02:00
|
|
|
if (NOT TARGET filewatch)
|
|
|
|
FetchContent_Declare(filewatch
|
2024-06-10 22:35:05 +02:00
|
|
|
#GIT_REPOSITORY https://github.com/ThomasMonkman/filewatch.git
|
|
|
|
GIT_REPOSITORY https://github.com/justinboswell/filewatch
|
|
|
|
#GIT_TAG master
|
|
|
|
GIT_TAG 2cef7983449579555799065f31d022b86b739d62
|
2024-06-10 22:27:19 +02:00
|
|
|
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)
|
2024-06-10 22:37:46 +02:00
|
|
|
if(APPLE)
|
|
|
|
target_link_libraries(filewatch INTERFACE "-framework CoreServices")
|
|
|
|
endif()
|
2024-06-10 22:27:19 +02:00
|
|
|
endif()
|
|
|
|
endif()
|