Last change
on this file since 2056 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
|
Rev | Line | |
---|
[1505] | 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 |
---|
[1776] | 7 | # |
---|
| 8 | # Several changes and additions by Fabian 'x3n' Landau |
---|
| 9 | # > www.orxonox.net < |
---|
[1505] | 10 | |
---|
[1776] | 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 | |
---|
[1505] | 15 | set(DirectX_FOUND "NO") |
---|
| 16 | |
---|
| 17 | FIND_PATH(DirectX_INCLUDE_DIR "dinput.h" |
---|
[1889] | 18 | ../libs/DXSDK/Include |
---|
[1872] | 19 | $ENV{DXSDK_DIR}/Include |
---|
[1505] | 20 | ) |
---|
| 21 | |
---|
| 22 | FIND_PATH(DirectX_LIB_DIR "dinput8.lib" |
---|
[1889] | 23 | ../libs/DXSDK/Lib |
---|
| 24 | ../libs/DXSDK/Lib/x86 |
---|
[1872] | 25 | $ENV{DXSDK_DIR}/lib/x86 |
---|
[1505] | 26 | ) |
---|
| 27 | |
---|
[1776] | 28 | IF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
| 29 | SET (DirectX_FOUND "YES") |
---|
| 30 | ENDIF (DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
[1505] | 31 | |
---|
[1776] | 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) |
---|
[1505] | 49 | ENDIF(WIN32) |
---|
Note: See
TracBrowser
for help on using the repository browser.