File: pybind11_jsonConfig.cmake.in

package info (click to toggle)
pybind11-json 0.2.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: cpp: 587; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 1,213 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
############################################################################
# Copyright (c) 2019, Martin Renou                                         #
#                                                                          #
# Distributed under the terms of the BSD 3-Clause License.                 #
#                                                                          #
# The full license is in the file LICENSE, distributed with this software. #
############################################################################

# pybind11_json cmake module
# This module sets the following variables in your project::
#
#   pybind11_json_FOUND - true if pybind11_json found on the system
#   pybind11_json_INCLUDE_DIRS - the directory containing pybind11_json headers
#   pybind11_json_LIBRARY - empty

@PACKAGE_INIT@

@PYBIND11_JSON_CONFIG_CODE@

include(CMakeFindDependencyMacro)
find_dependency(pybind11 @pybind11_REQUIRED_VERSION@)
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@)

if(NOT TARGET pybind11_json)
  include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")

  get_target_property(@PROJECT_NAME@_INCLUDE_DIRS pybind11_json INTERFACE_INCLUDE_DIRECTORIES)
endif()