Last change
on this file since 2346 was
2318,
checked in by adrfried, 16 years ago
|
cmake for mingw improved
|
-
Property svn:eol-style set to
native
|
File size:
730 bytes
|
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 | |
---|
[2318] | 11 | FIND_PATH(DirectX_INCLUDE_DIR dinput.h |
---|
| 12 | PATHS |
---|
| 13 | $ENV{DXSDK_DIR} |
---|
| 14 | PATH_SUFFIXES include |
---|
[1505] | 15 | ) |
---|
| 16 | |
---|
[2318] | 17 | FIND_PATH(DirectX_LIB_DIR dinput8.lib |
---|
| 18 | $ENV{DXSDK_DIR} |
---|
| 19 | PATH_SUFFIXES lib lib/x86 |
---|
[1505] | 20 | ) |
---|
| 21 | |
---|
[2318] | 22 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 23 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(DirectX DEFAULT_MSG DirectX_INCLUDE_DIR DirectX_LIB_DIR) |
---|
[1505] | 24 | |
---|
| 25 | ENDIF(WIN32) |
---|
[2318] | 26 | |
---|
| 27 | MARK_AS_ADVANCED(DirectX_INCLUDE_DIR DirectX_LIB_DIR) |
---|
Note: See
TracBrowser
for help on using the repository browser.