Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / extern / bullet2 / src / BulletSoftBody / CMakeLists.txt
1
2 INCLUDE_DIRECTORIES(
3 ${BULLET_PHYSICS_SOURCE_DIR}/src }
4 )
5
6 SET(BulletSoftBody_SRCS
7         btSoftBody.cpp
8         btSoftBodyHelpers.cpp
9         btSoftBodyRigidBodyCollisionConfiguration.cpp
10         btSoftRigidCollisionAlgorithm.cpp
11         btSoftSoftCollisionAlgorithm.cpp
12         btSoftBodyConcaveCollisionAlgorithm.cpp
13         btSoftRigidDynamicsWorld.cpp
14 )
15
16 SET(BulletSoftBody_HDRS
17         btSoftBody.h
18         btSparseSDF.h
19         btSoftBodyHelpers.h
20         btSoftRigidCollisionAlgorithm.h
21         btSoftSoftCollisionAlgorithm.h
22         btSoftBodyConcaveCollisionAlgorithm.h
23         btSoftRigidDynamicsWorld.h
24 )
25
26
27
28 ADD_LIBRARY(BulletSoftBody  ${BulletSoftBody_SRCS} ${BulletSoftBody_HDRS})
29 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES VERSION ${BULLET_VERSION})
30 SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES SOVERSION ${BULLET_VERSION})
31 IF (BUILD_SHARED_LIBS)
32         TARGET_LINK_LIBRARIES(BulletSoftBody BulletDynamics)
33 ENDIF (BUILD_SHARED_LIBS)
34
35 IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
36         INSTALL(TARGETS BulletSoftBody DESTINATION lib)
37         INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h")
38 ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
39
40 IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
41         SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES FRAMEWORK true)
42         SET_TARGET_PROPERTIES(BulletSoftBody PROPERTIES PUBLIC_HEADER "${BulletSoftBody_HDRS}")
43 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)