Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [...]
- find_package(SofaPython QUIET)
- if( SofaPython_FOUND )
- set(PYTHON_FILES
- python/SofaOR/__init__.py # python access methods
- )
- list(APPEND SOURCE_FILES python/Binding_cvMatData.cpp) # includes the .h and .inl along with the necessary SofaPython headers
- list(APPEND HEADER_FILES
- python/Binding_cvMatData.h # binding methods and calls SP_DECLARE_CLASS_TYPE(cvMatData)
- )
- sofa_set_python_directory(${PROJECT_NAME} "python") # for import SofaOR in python
- endif()
- [...]
- if ( SofaPython_FOUND )
- target_link_libraries(${PROJECT_NAME} SofaPython)
- add_definitions("-DSOFA_HAVE_SOFAPYTHON")
- endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement