You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I just clarify what the correct way to build with CMake and Eigen is? I'm currently using:
# Find python and pybind11find_package(PythonCOMPONENTSInterpreterDevelopmentREQUIRED)
find_package(pybind11CONFIGREQUIRED)
# Find Eigen 3.4+find_package(Eigen33.4REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
# Add project sources to python modulefile(GLOBSOURCESsrc/*.cpp)
pybind11_add_module(example${SOURCES})
It would be good if this was documented in the Building with CMake section of the docs since Eigen is the natural way to use numpy arrays with pybind11 on the C++ side.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Can I just clarify what the correct way to build with CMake and Eigen is? I'm currently using:
It would be good if this was documented in the Building with CMake section of the docs since Eigen is the natural way to use numpy arrays with pybind11 on the C++ side.
Beta Was this translation helpful? Give feedback.
All reactions