tomato-testing/external/CMakeLists.txt

50 lines
1.3 KiB
CMake
Raw Normal View History

2024-02-13 00:15:18 +01:00
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
2023-07-25 01:11:30 +02:00
add_subdirectory(./entt)
add_subdirectory(./solanaceae_util)
add_subdirectory(./solanaceae_contact)
add_subdirectory(./solanaceae_message3)
add_subdirectory(./solanaceae_plugin)
add_subdirectory(./toxcore)
add_subdirectory(./solanaceae_toxcore)
add_subdirectory(./solanaceae_tox)
2023-07-25 22:47:22 +02:00
add_subdirectory(./sdl)
2023-07-26 01:11:17 +02:00
add_subdirectory(./imgui)
2023-07-25 22:47:22 +02:00
2023-08-01 20:13:38 +02:00
add_subdirectory(./stb)
2023-08-02 15:06:19 +02:00
add_subdirectory(./libwebp)
2024-03-04 12:38:39 +01:00
add_subdirectory(./qoi)
2023-08-01 20:13:38 +02:00
2024-02-13 00:15:18 +01:00
if (NOT TARGET nlohmann_json::nlohmann_json)
FetchContent_Declare(json
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(json)
endif()
2024-02-17 22:52:55 +01:00
if (NOT TARGET zstd::zstd)
# TODO: try find_package() first
# TODO: try pkg-config next (will work on most distros)
set(ZSTD_BUILD_STATIC ON)
set(ZSTD_BUILD_SHARED OFF)
set(ZSTD_BUILD_PROGRAMS OFF)
set(ZSTD_BUILD_CONTRIB OFF)
set(ZSTD_BUILD_TESTS OFF)
FetchContent_Declare(zstd
URL "https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz"
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
SOURCE_SUBDIR build/cmake
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(zstd)
add_library(zstd::zstd ALIAS libzstd_static)
endif()