2021-05-06 20:04:59 +00:00
|
|
|
macro(run_conan)
|
|
|
|
# Download automatically, you can also just copy the conan.cmake file
|
|
|
|
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
|
|
|
|
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
|
|
|
|
file(DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.16.1/conan.cmake" "${CMAKE_BINARY_DIR}/conan.cmake")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(${CMAKE_BINARY_DIR}/conan.cmake)
|
|
|
|
|
|
|
|
conan_cmake_run(
|
|
|
|
REQUIRES
|
|
|
|
${CONAN_EXTRA_REQUIRES}
|
|
|
|
catch2/2.13.6
|
|
|
|
docopt.cpp/0.6.3
|
|
|
|
fmt/7.1.3
|
|
|
|
spdlog/1.8.5
|
2021-05-07 03:43:03 +00:00
|
|
|
ctre/3.3.4
|
2021-05-06 20:04:59 +00:00
|
|
|
OPTIONS
|
|
|
|
${CONAN_EXTRA_OPTIONS}
|
|
|
|
BASIC_SETUP
|
|
|
|
CMAKE_TARGETS # individual targets to link to
|
|
|
|
BUILD
|
|
|
|
missing)
|
|
|
|
endmacro()
|