Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
c644fad6
Commit
c644fad6
authored
8 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
add README
parent
98f0be5f
No related branches found
No related tags found
2 merge requests
!10
Fix compilation with new clang
,
!6
Merge pybind
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+27
-0
27 additions, 0 deletions
README.md
with
27 additions
and
0 deletions
README.md
0 → 100644
+
27
−
0
View file @
c644fad6
```
This file is part of the dune-pybindx1 project:
https://github.com/dune-community/dune-pybindx1
The copyright lies with the authors of this file (see below).
License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
Authors:
Felix Schindler (2016)
```
This module wraps
[
pybind11
](
https://github.com/pybind/pybind11
)
as a
DUNE module, to facilitate the build process with dunecontrol.
To create Python bindings you should
*
define the cmake variable
`DUNE_PYBINDXI_PYTHON_VERSION`
(optional)
*
`include(DunePybindxiUtils)`
in your CMakeLists.txt
*
call
`dune_pybindxi_add_module(module)`
, where module is one or several C++
source files
In your sources, you may include the pybind11 header
`pybind11/foo.h`
as
```
#include <dune/pybindxi/foo.h>
```
For further documentation on pybind1 and Python bindings,
[
read the docs
](
http://pybind11.readthedocs.io/en/latest/
)
.
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