solanaceae_tox_p2prng/external/CMakeLists.txt

64 lines
1.6 KiB
CMake
Raw Normal View History

2024-08-02 20:15:52 +02:00
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
include(FetchContent)
if (NOT TARGET solanaceae_util)
FetchContent_Declare(solanaceae_util
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_util.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_util)
endif()
if (NOT TARGET solanaceae_plugin)
FetchContent_Declare(solanaceae_plugin
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_plugin.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_plugin)
endif()
if (NOT TARGET solanaceae_contact)
FetchContent_Declare(solanaceae_contact
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_contact.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_contact)
endif()
2024-08-03 11:10:56 +02:00
if (NOT TARGET solanaceae_message3)
FetchContent_Declare(solanaceae_message3
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_message3.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_message3)
endif()
add_subdirectory(./toxcore)
if (NOT TARGET solanaceae_toxcore)
FetchContent_Declare(solanaceae_toxcore
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_toxcore.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_toxcore)
endif()
2024-08-02 20:15:52 +02:00
# only need the contact stuff
if (NOT TARGET solanaceae_tox_contacts)
FetchContent_Declare(solanaceae_tox
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_tox.git
GIT_TAG master
)
FetchContent_MakeAvailable(solanaceae_tox)
endif()
if (NOT TARGET p2prng)
FetchContent_Declare(p2prng
GIT_REPOSITORY https://github.com/Green-Sky/p2prng.git
GIT_TAG master
)
FetchContent_MakeAvailable(p2prng)
endif()