include(build/cmake/conan/generated-find-pkgs.cmake)

add_library(JsonCpp::JsonCpp ALIAS jsoncpp::jsoncpp)
# add_library(TBB::tbb ALIAS onetbb::onetbb)
add_library(restclient-cpp ALIAS restclient-cpp::restclient-cpp)
add_library(unofficial::libuv::libuv ALIAS uv_a)
add_library(cityhash ALIAS cityhash::cityhash)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSPDLOG_FMT_EXTERNAL")
set(THRIFT_BIN_DIR "${Thrift_INCLUDE_DIR}/../bin")
include_directories(${concurrentqueue_INCLUDE_DIR}/moodycamel)

# Note: conan's folly depend on boost::boost, but we cann't depend boost::boost,
# because boost::boost's libraries has many main functions.
set_property(TARGET boost::boost PROPERTY INTERFACE_LINK_LIBRARIES "")
