build: streamline CMAKE_MODULE_PATH interaction + README.md xpand

This commit is contained in:
Roland Conybeare 2024-03-15 19:33:37 -04:00
commit a96142ffea
6 changed files with 30 additions and 32 deletions

1
include/README.md Normal file
View file

@ -0,0 +1 @@
placeholder for future pyprintjson #include files

View file

@ -1,25 +0,0 @@
/* @file pyprintjson.hpp
*
* automatically generated from src/pyprintjson/pyprintjson.hpp.in
* see src/pyprintjson/CMakeLists.txt
*/
/* python requires module name = library name
* example:
* PYBIND11_MODULE(PYPRINTJSON_MODULE_NAME(), m) { ... }
*/
#define PYPRINTJSON_MODULE_NAME() pyprintjson
/* example:
* py::module_::import(PYPRINTJSON_MODULE_NAME_STR)
*/
#define PYPRINTJSON_MODULE_NAME_STR "pyprintjson"
/* example:
* PYPRINTJSON_IMPORT_MODULE()
* replaces
* py::module_::import("pyprintjson")
*/
#define PYPRINTJSON_IMPORT_MODULE() py::module_::import("pyprintjson")
/* end pyprintjson.hpp */