-
Notifications
You must be signed in to change notification settings - Fork 1
/
FindODE.cmake
58 lines (51 loc) · 1.15 KB
/
FindODE.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
find_path(
ODE_INCLUDE_DIRS
NAMES
ode/ode.h
HINTS
$ENV{HOME}/include
/usr/local/include
/usr/include
$ENV{ProgramFiles}/ode/include
)
find_library(
ODE_LIBRARY_DEBUG
NAMES
oded debugdll/ode
HINTS
$ENV{HOME}/lib
/usr/local/lib
/usr/lib
$ENV{ProgramFiles}/ode/lib
)
find_library(
ODE_LIBRARY_RELEASE
NAMES
ode releasedll/ode
HINTS
$ENV{HOME}/lib
/usr/local/lib
/usr/lib
$ENV{ProgramFiles}/ode/lib
)
if(ODE_LIBRARY_DEBUG AND NOT ODE_LIBRARY_RELEASE)
set(ODE_LIBRARIES ${ODE_LIBRARY_DEBUG})
endif()
if(ODE_LIBRARY_RELEASE AND NOT ODE_LIBRARY_DEBUG)
set(ODE_LIBRARIES ${ODE_LIBRARY_RELEASE})
endif()
if(ODE_LIBRARY_DEBUG AND ODE_LIBRARY_RELEASE)
set(ODE_LIBRARIES debug ${ODE_LIBRARY_DEBUG} optimized ${ODE_LIBRARY_RELEASE})
endif()
find_package_handle_standard_args(
ODE
DEFAULT_MSG
ODE_INCLUDE_DIRS
ODE_LIBRARIES
)
mark_as_advanced(
ODE_INCLUDE_DIRS
ODE_LIBRARIES
ODE_LIBRARY_DEBUG
ODE_LIBRARY_RELEASE
)