blob: 130095cc04ecafc26d9dd0d1f29e0686a6384262 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/src
)
SET(Bullet3Collision_SRCS
BroadPhaseCollision/b3DynamicBvh.cpp
BroadPhaseCollision/b3DynamicBvhBroadphase.cpp
BroadPhaseCollision/b3OverlappingPairCache.cpp
NarrowPhaseCollision/b3ConvexUtility.cpp
NarrowPhaseCollision/b3CpuNarrowPhase.cpp
)
SET(Bullet3CollisionBroadPhase_HDRS
BroadPhaseCollision/b3BroadphaseCallback.h
BroadPhaseCollision/b3DynamicBvh.h
BroadPhaseCollision/b3DynamicBvhBroadphase.h
BroadPhaseCollision/b3OverlappingPair.h
BroadPhaseCollision/b3OverlappingPairCache.h
)
SET(Bullet3CollisionBroadPhaseShared_HDRS
BroadPhaseCollision/shared/b3Aabb.h
)
SET(Bullet3CollisionNarrowPhase_HDRS
NarrowPhaseCollision/b3Config.h
NarrowPhaseCollision/b3Contact4.h
NarrowPhaseCollision/b3ConvexUtility.h
NarrowPhaseCollision/b3CpuNarrowPhase.h
NarrowPhaseCollision/b3RaycastInfo.h
NarrowPhaseCollision/b3RigidBodyCL.h
)
SET(Bullet3CollisionNarrowPhaseShared_HDRS
NarrowPhaseCollision/shared/b3BvhSubtreeInfoData.h
NarrowPhaseCollision/shared/b3BvhTraversal.h
NarrowPhaseCollision/shared/b3ClipFaces.h
NarrowPhaseCollision/shared/b3Collidable.h
NarrowPhaseCollision/shared/b3Contact4Data.h
NarrowPhaseCollision/shared/b3ContactConvexConvexSAT.h
NarrowPhaseCollision/shared/b3ContactSphereSphere.h
NarrowPhaseCollision/shared/b3ConvexPolyhedronData.h
NarrowPhaseCollision/shared/b3FindConcaveSatAxis.h
NarrowPhaseCollision/shared/b3FindSeparatingAxis.h
NarrowPhaseCollision/shared/b3MprPenetration.h
NarrowPhaseCollision/shared/b3NewContactReduction.h
NarrowPhaseCollision/shared/b3QuantizedBvhNodeData.h
NarrowPhaseCollision/shared/b3ReduceContacts.h
NarrowPhaseCollision/shared/b3RigidBodyData.h
NarrowPhaseCollision/shared/b3UpdateAabbs.h
)
SET(Bullet3Collision_HDRS
${Bullet3CollisionBroadPhase_HDRS}
${Bullet3CollisionBroadPhaseShared_HDRS}
${Bullet3CollisionNarrowPhaseShared_HDRS}
${Bullet3CollisionNarrowPhase_HDRS}
)
ADD_LIBRARY(Bullet3Collision ${Bullet3Collision_SRCS} ${Bullet3Collision_HDRS})
if (BUILD_SHARED_LIBS)
target_link_libraries(Bullet3Collision Bullet3Geometry)
endif ()
SET_TARGET_PROPERTIES(Bullet3Collision PROPERTIES VERSION ${BULLET_VERSION})
SET_TARGET_PROPERTIES(Bullet3Collision PROPERTIES SOVERSION ${BULLET_VERSION})
IF (INSTALL_LIBS)
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
#FILES_MATCHING requires CMake 2.6
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
INSTALL(TARGETS Bullet3Collision DESTINATION .)
ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
INSTALL(TARGETS Bullet3Collision
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.h" PATTERN
".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE)
ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
SET_TARGET_PROPERTIES(Bullet3Collision PROPERTIES FRAMEWORK true)
SET_TARGET_PROPERTIES(Bullet3Collision PROPERTIES PUBLIC_HEADER "${Bullet3Collision_HDRS}")
# Have to list out sub-directories manually:
#todo
#SET_PROPERTY(SOURCE ${Bullet3CollisionBroadPhase_HDRS} PROPERTY MACOSX_PACKAGE_LOCATION Headers/BroadPhaseCollision)
ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
ENDIF (INSTALL_LIBS)
|