find_package( Python COMPONENTS Interpreter Development.Module REQUIRED) find_package(pybind11 CONFIG REQUIRED) pybind11_add_module(_hello MODULE _hello_python.cc) target_link_libraries(_hello PRIVATE complexf) install(TARGETS _hello DESTINATION _csrc) set_target_properties(_hello PROPERTIES INSTALL_RPATH "$ORIGIN")