Advertisement
Guest User

CMakeLists.txt

a guest
Sep 26th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.64 KB | None | 0 0
  1. [...]
  2. find_package(SofaPython QUIET)
  3. if( SofaPython_FOUND )
  4.     set(PYTHON_FILES
  5.         python/SofaOR/__init__.py # python access methods
  6.     )
  7.  
  8.     list(APPEND SOURCE_FILES python/Binding_cvMatData.cpp) # includes the .h and .inl along with the necessary  SofaPython headers
  9.     list(APPEND HEADER_FILES
  10.         python/Binding_cvMatData.h # binding methods and calls SP_DECLARE_CLASS_TYPE(cvMatData)
  11.     )
  12.     sofa_set_python_directory(${PROJECT_NAME} "python") # for import SofaOR in python
  13. endif()
  14. [...]
  15. if ( SofaPython_FOUND )
  16.     target_link_libraries(${PROJECT_NAME} SofaPython)
  17.     add_definitions("-DSOFA_HAVE_SOFAPYTHON")
  18. endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement