auditd-plugin-clickhouse/cmake/FindClickhouseCpp.cmake
Aleksei Nikiforov 35d96682eb Initial commit
2019-12-16 16:42:40 +03:00

19 lines
634 B
CMake

# - Try to find Clickhouse-Cpp
# Once done this will define
# CLICKHOUSECPP_FOUND - System has Clickhouse-Cpp
# CLICKHOUSECPP_LIBRARIES - The libraries needed to use Clickhouse-Cpp
find_package(PkgConfig)
find_library(CLICKHOUSECPP_LIBRARY NAMES clickhouse-cpp)
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set CLICKHOUSECPP_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(CLICKHOUSECPP DEFAULT_MSG
CLICKHOUSECPP_LIBRARY)
mark_as_advanced(CLICKHOUSECPP_LIBRARY)
set(CLICKHOUSECPP_LIBRARIES ${CLICKHOUSECPP_LIBRARY})