Commit 78cee25a authored by Patrik Huber's avatar Patrik Huber

Renamed cmake target to "python-bindings" and the bindings output filename to "eos"

Also renamed the app that creates the bindings to generate-python-bindings.cpp.
parent cb6dd354
......@@ -43,9 +43,10 @@ add_executable(json-to-cereal-binary json-to-cereal-binary.cpp)
target_link_libraries(json-to-cereal-binary ${OpenCV_LIBS} ${Boost_LIBRARIES})
# Generate python bindings using pybind11:
if(GENERATE_PYTHON_BINDINGS)
pybind11_add_module(eos_py create-python-bindings.cpp)
target_link_libraries(eos_py PRIVATE ${OpenCV_LIBS} ${Boost_LIBRARIES})
install(TARGETS eos_py DESTINATION bin)
pybind11_add_module(python-bindings generate-python-bindings.cpp)
target_link_libraries(python-bindings PRIVATE ${OpenCV_LIBS} ${Boost_LIBRARIES})
set_target_properties(python-bindings PROPERTIES OUTPUT_NAME eos)
install(TARGETS python-bindings DESTINATION bin)
endif()
# install target:
......
......@@ -26,8 +26,8 @@ namespace py = pybind11;
/**
* Create python bindings for the eos library using pybind11.
*/
PYBIND11_PLUGIN(eos_py) {
py::module m("eos_py", "Python bindings to the 3D Morphable Face Model fitting library");
PYBIND11_PLUGIN(eos) {
py::module m("eos", "Python bindings to the 3D Morphable Face Model fitting library");
py::class_<eos::morphablemodel::PcaModel>(m, "PcaModel")
.def(py::init<>())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment