1 2 INCLUDE_DIRECTORIES( 3 ${BULLET_PHYSICS_SOURCE_DIR}/src 4 5 ) 6 7 #SUBDIRS( Solvers ) 8 9 SET(BulletSoftBody_SRCS 10 btSoftBody.cpp 11 btSoftBodyConcaveCollisionAlgorithm.cpp 12 btSoftBodyHelpers.cpp 13 btSoftBodyRigidBodyCollisionConfiguration.cpp 14 btSoftRigidCollisionAlgorithm.cpp 15 btSoftRigidDynamicsWorld.cpp 16 btSoftSoftCollisionAlgorithm.cpp 17 btDefaultSoftBodySolver.cpp 18 19 ) 20 21 SET(BulletSoftBody_HDRS 22 btSoftBody.h 23 btSoftBodyData.h 24 btSoftBodyConcaveCollisionAlgorithm.h 25 btSoftBodyHelpers.h 26 btSoftBodyRigidBodyCollisionConfiguration.h 27 btSoftRigidCollisionAlgorithm.h 28 btSoftRigidDynamicsWorld.h 29 btSoftSoftCollisionAlgorithm.h 30 btSparseSDF.h 31 32 btSoftBodySolvers.h 33 btDefaultSoftBodySolver.h 34 35 btSoftBodySolverVertexBuffer.h 36 ) 37 38 39 40 ADD_LIBRARY(BulletSoftBody ${BulletSoftBody_SRCS} ${BulletSoftBody_HDRS}) 41 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES VERSION ${BULLET_VERSION}) 42 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES SOVERSION ${BULLET_VERSION}) 43 IF (BUILD_SHARED_LIBS) 44 TARGET_LINK_LIBRARIES(BulletSoftBody BulletDynamics) 45 ENDIF (BUILD_SHARED_LIBS) 46 47 IF (INSTALL_LIBS) 48 IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) 49 IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) 50 IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) 51 INSTALL(TARGETS BulletSoftBody DESTINATION .) 52 ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) 53 INSTALL(TARGETS BulletSoftBody RUNTIME DESTINATION bin 54 LIBRARY DESTINATION lib${LIB_SUFFIX} 55 ARCHIVE DESTINATION lib${LIB_SUFFIX}) 56 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 57 DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h" PATTERN 58 ".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE) 59 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) 60 ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) 61 62 IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) 63 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES FRAMEWORK true) 64 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES PUBLIC_HEADER "${BulletSoftBody_HDRS}") 65 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) 66 ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) 67 ENDIF (INSTALL_LIBS) 68