refactor: import check as a common function (#2526)

* feat: import check as a common function

* docs: add cmake to docs
This commit is contained in:
Henry Schreiner
2020-10-02 22:34:22 -04:00
committed by GitHub
parent ca4127ce07
commit 3488494a81
10 changed files with 230 additions and 70 deletions

9
docs/cmake/index.rst Normal file
View File

@@ -0,0 +1,9 @@
CMake helpers
-------------
Pybind11 can be used with ``add_subdirectory(extern/pybind11)``, or from an
install with ``find_package(pybind11 CONFIG)``. The interface provided in
either case is functionally identical.
.. cmake-module:: ../../tools/pybind11Config.cmake.in