CMakeLists.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. INCLUDE_DIRECTORIES(
  2. ${BULLET_PHYSICS_SOURCE_DIR}/src
  3. )
  4. #SUBDIRS( Solvers )
  5. SET(BulletSoftBody_SRCS
  6. btSoftBody.cpp
  7. btSoftBodyConcaveCollisionAlgorithm.cpp
  8. btSoftBodyHelpers.cpp
  9. btSoftBodyRigidBodyCollisionConfiguration.cpp
  10. btSoftRigidCollisionAlgorithm.cpp
  11. btSoftRigidDynamicsWorld.cpp
  12. btSoftMultiBodyDynamicsWorld.cpp
  13. btSoftSoftCollisionAlgorithm.cpp
  14. btDefaultSoftBodySolver.cpp
  15. btDeformableBackwardEulerObjective.cpp
  16. btDeformableBodySolver.cpp
  17. btDeformableMultiBodyConstraintSolver.cpp
  18. btDeformableContactProjection.cpp
  19. btDeformableMultiBodyDynamicsWorld.cpp
  20. btDeformableContactConstraint.cpp
  21. poly34.cpp
  22. BulletReducedDeformableBody/btReducedDeformableBody.cpp
  23. BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp
  24. BulletReducedDeformableBody/btReducedDeformableBodySolver.cpp
  25. BulletReducedDeformableBody/btReducedDeformableContactConstraint.cpp
  26. )
  27. SET(BulletSoftBody_HDRS
  28. btSoftBody.h
  29. btSoftBodyData.h
  30. btSoftBodyConcaveCollisionAlgorithm.h
  31. btSoftBodyHelpers.h
  32. btSoftBodyRigidBodyCollisionConfiguration.h
  33. btSoftRigidCollisionAlgorithm.h
  34. btSoftRigidDynamicsWorld.h
  35. btSoftMultiBodyDynamicsWorld.h
  36. btSoftSoftCollisionAlgorithm.h
  37. btSparseSDF.h
  38. btSoftBodySolvers.h
  39. btDefaultSoftBodySolver.h
  40. btCGProjection.h
  41. btConjugateGradient.h
  42. btConjugateResidual.h
  43. btDeformableGravityForce.h
  44. btDeformableMassSpringForce.h
  45. btDeformableCorotatedForce.h
  46. btDeformableNeoHookeanForce.h
  47. btDeformableLinearElasticityForce.h
  48. btDeformableLagrangianForce.h
  49. btPreconditioner.h
  50. btDeformableBackwardEulerObjective.h
  51. btDeformableBodySolver.h
  52. btDeformableMultiBodyConstraintSolver.h
  53. btDeformableContactProjection.h
  54. btDeformableMultiBodyDynamicsWorld.h
  55. btDeformableContactConstraint.h
  56. btKrylovSolver.h
  57. poly34.h
  58. btSoftBodySolverVertexBuffer.h
  59. BulletReducedDeformableBody/btReducedDeformableBody.h
  60. BulletReducedDeformableBody/btReducedDeformableBodyHelpers.h
  61. BulletReducedDeformableBody/btReducedDeformableBodySolver.h
  62. BulletReducedDeformableBody/btReducedDeformableContactConstraint.h
  63. )
  64. ADD_LIBRARY(BulletSoftBody ${BulletSoftBody_SRCS} ${BulletSoftBody_HDRS})
  65. SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES VERSION ${BULLET_VERSION})
  66. SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES SOVERSION ${BULLET_VERSION})
  67. IF (BUILD_SHARED_LIBS)
  68. TARGET_LINK_LIBRARIES(BulletSoftBody BulletDynamics)
  69. ENDIF (BUILD_SHARED_LIBS)
  70. IF (INSTALL_LIBS)
  71. IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
  72. IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
  73. IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
  74. INSTALL(TARGETS BulletSoftBody DESTINATION .)
  75. ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
  76. INSTALL(TARGETS BulletSoftBody RUNTIME DESTINATION bin
  77. LIBRARY DESTINATION lib${LIB_SUFFIX}
  78. ARCHIVE DESTINATION lib${LIB_SUFFIX})
  79. INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  80. DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h" PATTERN
  81. ".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE)
  82. ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
  83. ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
  84. IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
  85. SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES FRAMEWORK true)
  86. SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES PUBLIC_HEADER "${BulletSoftBody_HDRS}")
  87. ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
  88. ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
  89. ENDIF (INSTALL_LIBS)