~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/bullet/src/BulletMultiThreaded/GpuSoftBodySolvers/DX11/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
INCLUDE_DIRECTORIES(
 
3
${BULLET_PHYSICS_SOURCE_DIR}/src
 
4
)
 
5
 
 
6
SET(DXSDK_DIR $ENV{DXSDK_DIR})
 
7
SET(DX11_INCLUDE_PATH  "${DIRECTX_SDK_BASE_DIR}/Include" CACHE DOCSTRING "Microsoft directX SDK include path")
 
8
 
 
9
 
 
10
INCLUDE_DIRECTORIES(
 
11
${DX11_INCLUDE_PATH} "../cpu/"
 
12
${VECTOR_MATH_INCLUDE}
 
13
)
 
14
 
 
15
SET(BulletSoftBodyDX11Solvers_SRCS
 
16
        btSoftBodySolver_DX11.cpp
 
17
        btSoftBodySolver_DX11SIMDAware.cpp
 
18
)
 
19
 
 
20
SET(BulletSoftBodyDX11Solvers_HDRS
 
21
        btSoftBodySolver_DX11.h
 
22
        btSoftBodySolver_DX11SIMDAware.h
 
23
        ../cpu/btSoftBodySolverData.h
 
24
        btSoftBodySolverVertexData_DX11.h
 
25
        btSoftBodySolverTriangleData_DX11.h
 
26
        btSoftBodySolverLinkData_DX11.h
 
27
        btSoftBodySolverLinkData_DX11SIMDAware.h
 
28
        btSoftBodySolverBuffer_DX11.h
 
29
        btSoftBodySolverVertexBuffer_DX11.h
 
30
 
 
31
)
 
32
 
 
33
# OpenCL and HLSL Shaders.
 
34
# Build rules generated to stringify these into headers
 
35
# which are needed by some of the sources
 
36
SET(BulletSoftBodyDX11Solvers_Shaders
 
37
        OutputToVertexArray
 
38
        UpdateNormals
 
39
        Integrate
 
40
        UpdatePositions
 
41
        UpdateNodes
 
42
        ComputeBounds
 
43
        SolvePositions
 
44
        SolvePositionsSIMDBatched
 
45
        SolveCollisionsAndUpdateVelocities
 
46
        SolveCollisionsAndUpdateVelocitiesSIMDBatched
 
47
        UpdatePositionsFromVelocities
 
48
        ApplyForces
 
49
        PrepareLinks
 
50
        VSolveLinks
 
51
)
 
52
 
 
53
foreach(f ${BulletSoftBodyDX11Solvers_Shaders})
 
54
    LIST(APPEND BulletSoftBodyDX11Solvers_HLSL "HLSL/${f}.hlsl")
 
55
endforeach(f) 
 
56
 
 
57
 
 
58
 
 
59
ADD_LIBRARY(BulletSoftBodySolvers_DX11  ${BulletSoftBodyDX11Solvers_SRCS} ${BulletSoftBodyDX11Solvers_HDRS} ${BulletSoftBodyDX11Solvers_HLSL})
 
60
SET_TARGET_PROPERTIES(BulletSoftBodySolvers_DX11 PROPERTIES VERSION ${BULLET_VERSION})
 
61
SET_TARGET_PROPERTIES(BulletSoftBodySolvers_DX11 PROPERTIES SOVERSION ${BULLET_VERSION})
 
62
IF (BUILD_SHARED_LIBS)
 
63
        TARGET_LINK_LIBRARIES(BulletSoftBodySolvers_DX11 BulletSoftBody BulletDynamics)
 
64
ENDIF (BUILD_SHARED_LIBS)
 
65
 
 
66
 
 
67
IF (INSTALL_LIBS)
 
68
        IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
 
69
                IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
 
70
                        IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
71
                                INSTALL(TARGETS BulletSoftBodySolvers_DX11 DESTINATION .)
 
72
                        ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
73
                        INSTALL(TARGETS BulletSoftBodySolvers_DX11 DESTINATION lib${LIB_SUFFIX})
 
74
#headers are already installed by BulletMultiThreaded library
 
75
                        ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
76
                ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
 
77
 
 
78
                IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
79
                        SET_TARGET_PROPERTIES(BulletSoftBodySolvers_DX11 PROPERTIES FRAMEWORK true)
 
80
                        SET_TARGET_PROPERTIES(BulletSoftBodySolvers_DX11 PROPERTIES PUBLIC_HEADER "${BulletSoftBodyDX11Solvers_HDRS}")
 
81
                ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
82
        ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
 
83
ENDIF (INSTALL_LIBS)