aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/ConanDependencies.cmake
blob: 09fdb949a0f1e0a0bb5427e49d719f02b8697b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
  message(STATUS "Downloading 'conan' integration")
  file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake" "${CMAKE_BINARY_DIR}/conan.cmake")
endif()

include("${CMAKE_BINARY_DIR}/conan.cmake")

set(CONAN_SYSTEM_INCLUDES ON)
conan_check(REQUIRED)
conan_add_remote(NAME "bincrafters" URL "https://api.bintray.com/conan/bincrafters/public-conan")
conan_cmake_run(CONANFILE "conanfile.py" BASIC_SETUP CMAKE_TARGETS OUTPUT_QUIET)