-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVBullet.cmake
53 lines (46 loc) · 1.65 KB
/
FindVBullet.cmake
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
# $Id$
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VBULLET_FOUND )
vista_find_package_root( Bullet include/btBulletCollisionCommon.h )
if( BULLET_ROOT_DIR )
set( BULLET_INCLUDE_DIRS "${BULLET_ROOT_DIR}/include" )
set( BULLET_LIBRARY_DIRS "${BULLET_ROOT_DIR}/lib" )
vista_find_library_uncached_var( _RELEASE_LIB BulletCollision PATHS ${BULLET_LIBRARY_DIRS} NO_DEFAULT_PATH )
vista_find_library_uncached_var( _DEBUG_LIB BulletCollisionD PATHS ${BULLET_LIBRARY_DIRS} NO_DEFAULT_PATH )
if( _RELEASE_LIB AND _DEBUG_LIB )
set( BULLET_LIBRARIES
optimized BulletCollision
optimized BulletDynamics
optimized LinearMath
optimized BulletSoftBody
optimized GIMPACTUtils
optimized ConvexDecomposition
debug BulletCollisionD
debug BulletDynamicsD
debug LinearMathD
debug BulletSoftBodyD
debug GIMPACTUtilsD
debug ConvexDecompositionD
)
elseif( UNIX AND _RELEASE_LIB )
set( BULLET_LIBRARIES
BulletCollision
BulletDynamics
LinearMath
BulletSoftBody
GIMPACTUtils
ConvexDecomposition
)
elseif( NOT VBullet_FIND_QUIET )
if( NOT _RELEASE_LIB AND NOT _DEBUG_LIB )
message( WARNING "Bullet libraries could not be found in \"${BULLET_LIBRARY_DIRS}\"" )
elseif( NOT _DEBUG_LIB )
message( WARNING "Bullet debug libraries could not be found in \"${BULLET_LIBRARY_DIRS}\"" )
else()
message( WARNING "Bullet release libraries could not be found in \"${BULLET_LIBRARY_DIRS}\"" )
endif()
endif()
endif( BULLET_ROOT_DIR )
endif( NOT VBULLET_FOUND )
find_package_handle_standard_args( VBullet "Bullet could not be found" BULLET_ROOT_DIR BULLET_LIBRARIES )