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

« back to all changes in this revision

Viewing changes to tests/bullet/src/LinearMath/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(LinearMath_SRCS
 
7
        btAlignedAllocator.cpp
 
8
        btConvexHull.cpp
 
9
        btConvexHullComputer.cpp
 
10
        btGeometryUtil.cpp
 
11
        btQuickprof.cpp
 
12
        btSerializer.cpp
 
13
)
 
14
 
 
15
SET(LinearMath_HDRS
 
16
        btAabbUtil2.h
 
17
        btAlignedAllocator.h
 
18
        btAlignedObjectArray.h
 
19
        btConvexHull.h
 
20
        btConvexHullComputer.h
 
21
        btDefaultMotionState.h
 
22
        btGeometryUtil.h
 
23
        btHashMap.h
 
24
        btIDebugDraw.h
 
25
        btList.h
 
26
        btMatrix3x3.h
 
27
        btMinMax.h
 
28
        btMotionState.h
 
29
        btPoolAllocator.h
 
30
        btQuadWord.h
 
31
        btQuaternion.h
 
32
        btQuickprof.h
 
33
        btRandom.h
 
34
        btScalar.h
 
35
        btSerializer.h
 
36
        btStackAlloc.h
 
37
        btTransform.h
 
38
        btTransformUtil.h
 
39
        btVector3.h
 
40
)
 
41
 
 
42
ADD_LIBRARY(LinearMath ${LinearMath_SRCS} ${LinearMath_HDRS})
 
43
SET_TARGET_PROPERTIES(LinearMath PROPERTIES VERSION ${BULLET_VERSION})
 
44
SET_TARGET_PROPERTIES(LinearMath PROPERTIES SOVERSION ${BULLET_VERSION})
 
45
 
 
46
IF (INSTALL_LIBS)
 
47
        IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
 
48
                #FILES_MATCHING requires CMake 2.6
 
49
                IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5)
 
50
                        IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
51
                                INSTALL(TARGETS LinearMath DESTINATION .)
 
52
                        ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
53
                                INSTALL(TARGETS LinearMath 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)
 
59
 
 
60
                IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
61
                        SET_TARGET_PROPERTIES(LinearMath PROPERTIES FRAMEWORK true)
 
62
                        SET_TARGET_PROPERTIES(LinearMath PROPERTIES PUBLIC_HEADER "${LinearMath_HDRS}")
 
63
                ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK)
 
64
        ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
 
65
ENDIF (INSTALL_LIBS)