Last change
on this file since 2173 was
1889,
checked in by landauf, 16 years ago
|
unsigned int → size_t for std::string related functions
I hope this fixes some problems on 64bit systems
|
-
Property svn:eol-style set to
native
|
File size:
1.5 KB
|
Line | |
---|
1 | IF(WIN32) |
---|
2 | # - Test for DirectX |
---|
3 | # Once loaded this will define |
---|
4 | # DirectX_FOUND - system has DirectX |
---|
5 | # DirectX_INCLUDE_DIR - include directory for DirectX |
---|
6 | # DirectX_LIB_DIR - lib directory for DirectX |
---|
7 | # |
---|
8 | # Several changes and additions by Fabian 'x3n' Landau |
---|
9 | # > www.orxonox.net < |
---|
10 | |
---|
11 | IF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
12 | SET(DirectX_FIND_QUIETLY TRUE) |
---|
13 | ENDIF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
14 | |
---|
15 | set(DirectX_FOUND "NO") |
---|
16 | |
---|
17 | FIND_PATH(DirectX_INCLUDE_DIR "dinput.h" |
---|
18 | ../libs/DXSDK/Include |
---|
19 | $ENV{DXSDK_DIR}/Include |
---|
20 | ) |
---|
21 | |
---|
22 | FIND_PATH(DirectX_LIB_DIR "dinput8.lib" |
---|
23 | ../libs/DXSDK/Lib |
---|
24 | ../libs/DXSDK/Lib/x86 |
---|
25 | $ENV{DXSDK_DIR}/lib/x86 |
---|
26 | ) |
---|
27 | |
---|
28 | IF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
29 | SET (DirectX_FOUND "YES") |
---|
30 | ENDIF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
31 | |
---|
32 | IF (DirectX_FOUND) |
---|
33 | IF (NOT DirectX_FIND_QUIETLY) |
---|
34 | MESSAGE(STATUS "DirectX was found.") |
---|
35 | IF (VERBOSE_FIND) |
---|
36 | MESSAGE (STATUS " include path: ${DirectX_INCLUDE_DIR}") |
---|
37 | MESSAGE (STATUS " library path: ${DirectX_LIB_DIR}") |
---|
38 | MESSAGE (STATUS " libraries: dinput8.lib") |
---|
39 | ENDIF (VERBOSE_FIND) |
---|
40 | ENDIF (NOT DirectX_FIND_QUIETLY) |
---|
41 | ELSE (DirectX_FOUND) |
---|
42 | IF (NOT DirectX_INCLUDE_DIR) |
---|
43 | MESSAGE(SEND_ERROR "DirectX include path was not found.") |
---|
44 | ENDIF (NOT DirectX_INCLUDE_DIR) |
---|
45 | IF (NOT DirectX_LIB_DIR) |
---|
46 | MESSAGE(SEND_ERROR "DirectX library was not found.") |
---|
47 | ENDIF (NOT DirectX_LIB_DIR) |
---|
48 | ENDIF (DirectX_FOUND) |
---|
49 | ENDIF(WIN32) |
---|
Note: See
TracBrowser
for help on using the repository browser.