solanaceae_factorio/external/CMakeLists.txt

42 lines
1.1 KiB
CMake
Raw Normal View History

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
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()