Skip to content

Commit

Permalink
fix pybind doc build etc
Browse files Browse the repository at this point in the history
  • Loading branch information
hverhelst committed Jan 9, 2025
1 parent 3d41626 commit 63ee2ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gsStructuralAnalysis.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#include <gsCore/gsTemplateTools.h>
#include <gsStructuralAnalysis/src/gsStructuralAnalysisTools/gsPanelCreator.h>


namespace gismo
{

#ifdef GISMO_WITH_PYBIND11

namespace py = pybind11;

void pybind11_init_gsStructuralAnalysis(py::module &m);
void pybind11_init_gsStructuralAnalysis(pybind11::module &m);

#endif
}
Expand Down
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ if (GISMO_BUILD_PCH)
add_precompiled_header(gsPrecompiledHeader misc/gsPrecompiledHeader.h)
endif()

## Add module
add_library(gsStructuralAnalysis_pybind OBJECT
gsStructuralAnalysis_.cpp
)

FOREACH(subdir ${SUBDIRS})

get_filename_component(GM_NAME ${subdir} NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace gismo
{
gismo::pybind11_init_gsPanelCreator( m );
/*Bindings for gsStructuralAnalysis go here*/

}

#endif
Expand Down

0 comments on commit 63ee2ea

Please sign in to comment.