-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVSmartBody.cmake
85 lines (75 loc) · 3.05 KB
/
FindVSmartBody.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# $Id: FindVSmartBody.cmake 21495 2011-05-25 07:52:18Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VSMARTBODY_FOUND )
vista_find_package_root( SmartBody /src/SmartBody/sb/SBTypes.h NAMES SmartBodySDK smartbody SmartBody )
if( SMARTBODY_ROOT_DIR )
set( SMARTBODY_INCLUDE_DIRS
${SMARTBODY_ROOT_DIR}/src/SmartBody
${SMARTBODY_ROOT_DIR}/include
${SMARTBODY_ROOT_DIR}/include/vhcl
${SMARTBODY_ROOT_DIR}/include/steersuite
${SMARTBODY_ROOT_DIR}/include/steersuite/external
${SMARTBODY_ROOT_DIR}/include/bonebus
${SMARTBODY_ROOT_DIR}/include/wsp
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
list(APPEND SMARTBODY_INCLUDE_DIRS
${SMARTBODY_ROOT_DIR}/python27/include
)
else() # Linux
list(APPEND SMARTBODY_INCLUDE_DIRS
/usr/local_rwth/sw/python/2.7.5/x86_64/include/python2.7/
)
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set( SMARTBODY_LIBRARY_DIRS
${SMARTBODY_ROOT_DIR}/lib
${SMARTBODY_ROOT_DIR}/python27/libs
${SMARTBODY_ROOT_DIR}/3rdParty/lib
)
else(CMAKE_SIZEOF_VOID_P EQUAL 8)
set( SMARTBODY_LIBRARY_DIRS
${SMARTBODY_ROOT_DIR}/bin #not sure if necessary but this way it is added to runtime_path
${SMARTBODY_ROOT_DIR}/lib
${SMARTBODY_ROOT_DIR}/python27/libs
)
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
else() # Linux
list(APPEND SMARTBODY_LIBRARY_DIRS
/usr/local_rwth/sw/boost/1_53_0/gcc-openmpi/lib
/usr/local_rwth/sw/python/2.7.5/x86_64/lib
)
endif()
set( SMARTBODY_LIBRARIES
optimized SmartBody
debug SmartBody_d
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
list(APPEND SMARTBODY_LIBRARIES
optimized xerces-c_3.lib
debug xerces-c_3D.lib
glew32 #windows
optimized vhcl #windows
debug vhcl_d #windows
boost_filesystem-vc100-mt-1_51.lib #windows ?
boost_system-vc100-mt-1_51.lib #windows ?
optimized steerlib
debug steerlibd
)
else() # Linux
list(APPEND SMARTBODY_LIBRARIES
xerces-c
boost_filesystem
boost_system
boost_regex
boost_python
pprAI
steerlib
python2.7
)
endif()
endif()
endif( NOT VSMARTBODY_FOUND )
find_package_handle_standard_args( VSmartBody "SmartBody could not be found" SMARTBODY_ROOT_DIR )