blob: 3ae390e2f6d3112465e3dce70602fe4038575d8d (
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
|
# -*- cmake -*-
include(Prebuilt)
use_prebuilt_binary(havok)
set(HAVOK_VERSION 460)
set(LLPHYSICS_INCLUDE_DIRS
${LIBS_SERVER_DIR}/llphysics
${LIBS_PREBUILT_DIR}/include/havok/hk${HAVOK_VERSION}/common
${LIBS_PREBUILT_DIR}/include/havok/hk${HAVOK_VERSION}/physics
)
add_definitions(-DLL_CURRENT_HAVOK_VERSION=${HAVOK_VERSION})
if (LINUX OR DARWIN)
if (DARWIN)
link_directories(
${LIBS_PREBUILT_DIR}/universal-darwin/lib_release/havok/hk460
)
else (DARWIN)
link_directories(
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release/havok/hk460
)
endif (DARWIN)
set(LLPHYSICS_LIBRARIES
llphysics
hkcompat
hkutilities
hkvisualize
hkdynamics
hkvehicle
hkcollide
hkinternal
hkconstraintsolver
hkmath
hkscenedata
hkserialize
hkgraphicsogl
hkgraphicsbridge
hkgraphics
hkdemoframework
hkbase
)
elseif (WINDOWS)
if (MSVC71)
set(HK_DEBUG ${WINLIBS_PREBUILT_DEBUG_DIR}/havok/hk460)
set(HK_RELEASE ${WINLIBS_PREBUILT_RELEASE_DIR}/havok/hk460)
else (MSVC71)
set(HK_DEBUG ${WINLIBS_PREBUILT_DEBUG_DIR}/havok/hk460_net_8-0)
set(HK_RELEASE ${WINLIBS_PREBUILT_RELEASE_DIR}/havok/hk460_net_8-0)
endif (MSVC71)
set(HAVOK_LIBS
hkbase
hkdynamics
hkmath
hkcollide
hkutilities
hkvisualize
hkinternal
hkconstraintsolver
hkcompat
hkserialize
hkvehicle
hkscenedata
)
set(LLPHYSICS_LIBRARIES llphysics)
foreach(lib ${HAVOK_LIBS})
list(APPEND LLPHYSICS_LIBRARIES
debug ${HK_DEBUG}/${lib} optimized ${HK_RELEASE}/${lib})
endforeach(lib)
endif (LINUX OR DARWIN)
|