== SoC Bullet - Bullet Upgrade to 2.76 ==
[blender.git] / extern / bullet2 / BulletMultiThreaded / CMakeLists.txt
1 INCLUDE_DIRECTORIES(
2         ${BULLET_PHYSICS_SOURCE_DIR}/src
3         ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/vectormath/scalar/cpp
4 )
5
6 ADD_LIBRARY(BulletMultiThreaded
7                 PlatformDefinitions.h
8                 SpuFakeDma.cpp
9                 SpuFakeDma.h
10                 SpuDoubleBuffer.h
11                 SpuLibspe2Support.cpp
12                 SpuLibspe2Support.h
13                 btThreadSupportInterface.cpp
14                 btThreadSupportInterface.h
15                 
16                 Win32ThreadSupport.cpp
17                 Win32ThreadSupport.h
18                 PosixThreadSupport.cpp
19                 PosixThreadSupport.h
20                 SequentialThreadSupport.cpp
21                 SequentialThreadSupport.h
22                 SpuSampleTaskProcess.h
23                 SpuSampleTaskProcess.cpp
24
25                 SpuCollisionObjectWrapper.cpp 
26                 SpuCollisionObjectWrapper.h 
27                 SpuCollisionTaskProcess.h
28                 SpuCollisionTaskProcess.cpp
29                 SpuGatheringCollisionDispatcher.h
30                 SpuGatheringCollisionDispatcher.cpp
31                 SpuContactManifoldCollisionAlgorithm.cpp
32                 SpuContactManifoldCollisionAlgorithm.h
33                 
34                 btParallelConstraintSolver.cpp
35                 btParallelConstraintSolver.h
36                 
37                 SpuNarrowPhaseCollisionTask/Box.h
38                 SpuNarrowPhaseCollisionTask/boxBoxDistance.cpp
39                 SpuNarrowPhaseCollisionTask/boxBoxDistance.h
40                 SpuNarrowPhaseCollisionTask/SpuContactResult.cpp
41                 SpuNarrowPhaseCollisionTask/SpuContactResult.h
42                 SpuNarrowPhaseCollisionTask/SpuMinkowskiPenetrationDepthSolver.cpp
43                 SpuNarrowPhaseCollisionTask/SpuMinkowskiPenetrationDepthSolver.h
44                 SpuNarrowPhaseCollisionTask/SpuConvexPenetrationDepthSolver.h
45                 SpuNarrowPhaseCollisionTask/SpuPreferredPenetrationDirections.h
46                 SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.cpp
47                 SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h
48                 SpuNarrowPhaseCollisionTask/SpuCollisionShapes.cpp
49                 SpuNarrowPhaseCollisionTask/SpuCollisionShapes.h
50
51
52 #Some GPU related stuff, mainly CUDA and perhaps OpenCL
53                 btGpu3DGridBroadphase.cpp
54                 btGpu3DGridBroadphase.h
55                 btGpu3DGridBroadphaseSharedCode.h
56                 btGpu3DGridBroadphaseSharedDefs.h
57                 btGpu3DGridBroadphaseSharedTypes.h
58                 btGpuDefines.h
59                 btGpuUtilsSharedCode.h
60                 btGpuUtilsSharedDefs.h
61
62 #MiniCL provides a small subset of OpenCL
63                 MiniCL.cpp
64                 MiniCLTaskScheduler.cpp
65                 MiniCLTaskScheduler.h
66                 MiniCLTask/MiniCLTask.cpp
67                 MiniCLTask/MiniCLTask.h
68                 ../MiniCL/cl.h
69                 ../MiniCL/cl_gl.h
70                 ../MiniCL/cl_platform.h
71                 ../MiniCL/cl_MiniCL_Defs.h
72 )
73
74 IF (BUILD_SHARED_LIBS)
75         TARGET_LINK_LIBRARIES(BulletMultiThreaded BulletCollision)
76 ENDIF (BUILD_SHARED_LIBS)
77
78 IF (INSTALL_LIBS)
79         IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
80                 #INSTALL of other files requires CMake 2.6
81                 IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
82                         IF(INSTALL_EXTRA_LIBS)
83                                 IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
84                                         INSTALL(TARGETS BulletMultiThreaded DESTINATION .)
85                                 ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
86                                 INSTALL(TARGETS BulletMultiThreaded DESTINATION lib)
87                                         INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h")
88                                 ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
89                         ENDIF (INSTALL_EXTRA_LIBS)
90                 ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
91         ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
92 ENDIF (INSTALL_LIBS)