Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SMTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
CMB
SMTK
Merge requests
!852
Documentation: add example for passing multiple include pahts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Documentation: add example for passing multiple include pahts
tjcorona/smtk:tweak-pybind-doc
into
master
Overview
2
Commits
1
Pipelines
1
Changes
1
Merged
T.J. Corona
requested to merge
tjcorona/smtk:tweak-pybind-doc
into
master
7 years ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b7d05b20
1 commit,
7 years ago
1 file
+
7
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
doc/userguide/bindings/generating-pybind11-bindings.rst
+
7
−
5
Options
@@ -14,11 +14,13 @@ the module.
To generate a C++ header file for a new SMTK class, use
``[smtk-root-directory]/utilities/python/cpp_to_pybind11.py`` with the
appropriate arguments for the header file, project root directory,
include directories and generated file prefix; the module's binding
source file (also located in in the ``pybind`` subdirectory of the
module) must then be updated to call the functions defined in the
generated header file. To generate all of the C++ headers and the module C++
source file for a namespace at once, use
include directories (e.g. ``-I "[smtk-build-directory]
[smtk-root-directory]/thirdparty/cJSON path/to/vtk/include"``) and
generated file prefix; the module's binding source file (also located
in the ``pybind`` subdirectory of the module) must then be updated to
call the functions defined in the generated header file. To generate
all of the C++ headers and the module C++ source file for a namespace
at once, use
``[smtk-root-directory]/utilities/python/generate_pybind11_module.py``
with the appropriate arguments for the module directory, project root
directory and include directories.
Loading