28 lines
671 B
CMake
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")
|