-
Notifications
You must be signed in to change notification settings - Fork 1
/
nanobind_jsonConfig.cmake.in
28 lines (22 loc) · 1.19 KB
/
nanobind_jsonConfig.cmake.in
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. #
############################################################################
# nanobind_json cmake module
# This module sets the following variables in your project::
#
# nanobind_json_FOUND - true if pybind11_json found on the system
# nanobind_json_INCLUDE_DIRS - the directory containing pybind11_json headers
# nanobind_json_LIBRARY - empty
@PACKAGE_INIT@
@NANOBIND_JSON_CONFIG_CODE@
include(CMakeFindDependencyMacro)
find_dependency(nanobind @nanobind_REQUIRED_VERSION@)
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@)
if(NOT TARGET nanobind_json)
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
get_target_property(@PROJECT_NAME@_INCLUDE_DIRS nanobind_json INTERFACE_INCLUDE_DIRECTORIES)
endif()