Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
autopybind11
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joe Snyder
autopybind11
Commits
e2454f0a
Commit
e2454f0a
authored
4 years ago
by
John Parent
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation
parent
c65d01fe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+14
-1
14 additions, 1 deletion
README.rst
Tests/eigen/CMakeLists.txt
+2
-3
2 additions, 3 deletions
Tests/eigen/CMakeLists.txt
with
16 additions
and
4 deletions
README.rst
+
14
−
1
View file @
e2454f0a
...
...
@@ -89,6 +89,18 @@ For a non-virtual environment, you would follow a script like below:
make -j
ctest -V -R
Eigen Testing
*************
Optionally, testing for Eigen support can be enabled.
Providing the argument ``-DEigen_INCLUDE_DIR=<location of Eigen headers>`` to the CMake command line
will enable the Eigen testing. Eigen must be installed on the system to properly implement this feature.
To install Eigen, see `Eigen's documentation`_, or run the provided CI script that can be used locally
`eigen.cmake` with the command `cmake -P .gitlab/ci/eigen.cmake` from the root of the source tree.
This will download and unpack Eigen. The choice can then be made to install the Eigen headers to a favorite
install directory via the instruction provided by the unpacked Eigen source, or, more simply, by providing the
location of the unpacked source code to `Eigen_INCLUDE_DIR`.
Preparing C++ code
------------------
...
...
@@ -860,4 +872,5 @@ Other Mentions
.. _`pre-commit`: https://pre-commit.com/
.. _`Pybind11's documentation`: https://pybind11.readthedocs.io/en/stable/classes.html#instance-and-static-fields
.. _`Bazel Integration`: https://github.com/RobotLocomotion/drake/pull/14265
.. _`CMake Integration`: https://gitlab.kitware.com/autopybind11/autopybind_skeleton/-/tree/drake
\ No newline at end of file
.. _`CMake Integration`: https://gitlab.kitware.com/autopybind11/autopybind_skeleton/-/tree/drake
.. _`Eigen Documentation`: https://eigen.tuxfamily.org/index.php?title=CMake
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Tests/eigen/CMakeLists.txt
+
2
−
3
View file @
e2454f0a
cmake_minimum_required
(
VERSION 3.15
)
project
(
APB-EIGEN
)
project
(
APB-EIGEN
CXX
)
add_executable
(
eigen-test eigen_test.cpp
)
message
(
WARNING
${
Eigen_INCLUDE_DIR
}
)
target_include_directories
(
eigen-test PUBLIC
${
Eigen_INCLUDE_DIR
}
)
target_include_directories
(
eigen-test INTERFACE
${
Eigen_INCLUDE_DIR
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment