14 lines
396 B
CMake
14 lines
396 B
CMake
set(requests_src_files
|
|
requests.cpp)
|
|
|
|
find_package(CURL REQUIRED)
|
|
find_package(fmt REQUIRED)
|
|
find_package(gflags REQUIRED)
|
|
|
|
|
|
add_library(mg-requests STATIC ${requests_src_files})
|
|
target_link_libraries(mg-requests
|
|
PUBLIC mg-utils lib::json
|
|
PRIVATE lib::ctre spdlog::spdlog ${CURL_LIBRARIES} fmt::fmt gflags)
|
|
target_include_directories(mg-requests PRIVATE ${CURL_INCLUDE_DIRS})
|