Last change
on this file since 1473 was
1445,
checked in by landauf, 16 years ago
|
fixed some parts of the cmake-files to work with windows
|
File size:
948 bytes
|
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 | set(DirectX_FOUND "NO") |
---|
9 | |
---|
10 | FIND_PATH(DirectX_INCLUDE_DIR "dinput.h" |
---|
11 | C:/DXSDK/Include |
---|
12 | ) |
---|
13 | |
---|
14 | FIND_PATH(DirectX_LIB_DIR "dinput8.lib" |
---|
15 | C:/DXSDK/Lib |
---|
16 | C:/DXSDK/Lib/x86 |
---|
17 | ) |
---|
18 | |
---|
19 | if(DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
20 | set(DirectX_FOUND "YES") |
---|
21 | endif(DirectX_INCLUDE_DIR AND DirectX_LIB_DIR) |
---|
22 | |
---|
23 | if (DirectX_FOUND) |
---|
24 | if (NOT DirectX_FIND_QUIETLY) |
---|
25 | message(STATUS "Found DirectX") |
---|
26 | endif (NOT DirectX_FIND_QUIETLY) |
---|
27 | else (DirectX_FOUND) |
---|
28 | if (DirectX_FIND_REQUIRED) |
---|
29 | message(FATAL_ERROR "Could not find DirectX") |
---|
30 | else (DirectX_FOUNC) |
---|
31 | message(STATUS "Could not find DirectX") |
---|
32 | endif (DirectX_FIND_REQUIRED) |
---|
33 | endif (DirectX_FOUND) |
---|
34 | ENDIF(WIN32) |
---|
Note: See
TracBrowser
for help on using the repository browser.