Debian Codegraph @

LspCpp/third_party/ixwebsocket/CMake/FindSpdLog.cmake

raw
1 # Find package structure taken from libcurl
2
3 include(FindPackageHandleStandardArgs)
4
5 find_path(SPDLOG_INCLUDE_DIRS spdlog/spdlog.h)
6 find_library(JSONCPP_LIBRARY spdlog)
7
8 find_package_handle_standard_args(SPDLOG
9 FOUND_VAR
10 SPDLOG_FOUND
11 REQUIRED_VARS
12 SPDLOG_LIBRARY
13 SPDLOG_INCLUDE_DIRS
14 FAIL_MESSAGE
15 "Could NOT find spdlog"
16 )
17
18 set(SPDLOG_INCLUDE_DIRS ${SPDLOG_INCLUDE_DIRS})
19 set(SPDLOG_LIBRARIES ${SPDLOG_LIBRARY})