chectus/cmake/third_party.cmake
szdytom e7e9d8a48e
setup cmake system
Signed-off-by: szdytom <szdytom@qq.com>
2024-07-30 00:07:07 +08:00

28 lines
671 B
CMake

cmake_minimum_required(VERSION 3.27)
cmake_policy(VERSION 3.27)
include(FetchContent)
# fmtlib
message(STATUS "Downloading fmtlib...")
FetchContent_Declare(
fmt
URL "https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.zip"
FIND_PACKAGE_ARGS NAMES fmt
)
FetchContent_MakeAvailable(fmt)
message(STATUS "fmtlib downloaded.")
# simdjson
message(STATUS "Downloading simdjson...")
FetchContent_Declare(
simdjson
URL "https://github.com/simdjson/simdjson/archive/refs/tags/v3.9.5.tar.gz"
FIND_PACKAGE_ARGS NAMES simdjson
)
FetchContent_MakeAvailable(simdjson)
message(STATUS "simdjson downloaded.")
# libtorch
include("${CMAKE_CURRENT_LIST_DIR}/fetch_torch.cmake")