cmake/katran-config.cmake.in (38 lines of code) (raw):
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# This module sets the following variables:
# katran_FOUND
# katran_INCLUDE_DIRS
#
# This module exports targets such as:
# katran::bpfadapter
#
# which can be used with target_link_libraries()
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(folly)
find_dependency(Fizz)
find_dependency(Threads)
find_dependency(Glog)
find_dependency(Gflags)
find_dependency(Bpf)
if(NOT TARGET katran::bpfadapter)
include("${CMAKE_CURRENT_LIST_DIR}/katran-targets.cmake")
get_target_property(katran_INCLUDE_DIRS katran::bpfadapter INTERFACE_INCLUDE_DIRECTORIES)
endif()
if(NOT katran_FIND_QUIETLY)
message(STATUS "Found katran: ${PACKAGE_PREFIX_DIR}")
endif()