3 ${BULLET_PHYSICS_SOURCE_DIR}/src
9 SET(BulletSoftBody_SRCS
11 btSoftBodyConcaveCollisionAlgorithm.cpp
13 btSoftBodyRigidBodyCollisionConfiguration.cpp
14 btSoftRigidCollisionAlgorithm.cpp
15 btSoftRigidDynamicsWorld.cpp
16 btSoftSoftCollisionAlgorithm.cpp
17 btDefaultSoftBodySolver.cpp
21 SET(BulletSoftBody_HDRS
24 btSoftBodyConcaveCollisionAlgorithm.h
26 btSoftBodyRigidBodyCollisionConfiguration.h
27 btSoftRigidCollisionAlgorithm.h
28 btSoftRigidDynamicsWorld.h
29 btSoftSoftCollisionAlgorithm.h
33 btDefaultSoftBodySolver.h
35 btSoftBodySolverVertexBuffer.h
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)
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 DESTINATION lib${LIB_SUFFIX})
54 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55 DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h" PATTERN
56 ".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE)
57 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
58 ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
60 IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
61 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES FRAMEWORK true)
62 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES PUBLIC_HEADER "${BulletSoftBody_HDRS}")
63 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
64 ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)