Last change
on this file since 2604 was
2594,
checked in by rgrieder, 16 years ago
|
MinGW is able to find all the necessary libraries. However compiling does not work.
|
-
Property svn:eol-style set to
native
-
Property svn:mergeinfo set to
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2583] | 1 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 2 | INCLUDE(HandleLibraryTypes) |
---|
| 3 | |
---|
[1505] | 4 | IF(WIN32) |
---|
[2579] | 5 | # Find script for DirectX on Windows |
---|
[1505] | 6 | # Once loaded this will define |
---|
| 7 | # DirectX_FOUND - system has DirectX |
---|
| 8 | # DirectX_INCLUDE_DIR - include directory for DirectX |
---|
[2579] | 9 | # DirectX_LIBRARY - library for DirectX |
---|
[1776] | 10 | # |
---|
| 11 | # Several changes and additions by Fabian 'x3n' Landau |
---|
| 12 | # > www.orxonox.net < |
---|
[1505] | 13 | |
---|
[2510] | 14 | FIND_PATH(DirectX_INCLUDE_DIR dinput.h |
---|
| 15 | PATHS |
---|
| 16 | $ENV{DXSDK_DIR} |
---|
[2579] | 17 | PATH_SUFFIXES include |
---|
[1505] | 18 | ) |
---|
| 19 | |
---|
[2579] | 20 | FIND_LIBRARY(DirectX_LIBRARY_1 dinput8 |
---|
[2510] | 21 | PATHS |
---|
| 22 | $ENV{DXSDK_DIR} |
---|
| 23 | PATH_SUFFIXES lib Lib lib/x86 Lib/x86 |
---|
[1505] | 24 | ) |
---|
[2579] | 25 | FIND_LIBRARY(DirectX_LIBRARY_2 dxguid |
---|
| 26 | PATHS |
---|
| 27 | $ENV{DXSDK_DIR} |
---|
| 28 | PATH_SUFFIXES lib Lib lib/x86 Lib/x86 |
---|
| 29 | ) |
---|
[1505] | 30 | |
---|
[2594] | 31 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(DirectX DEFAULT_MSG |
---|
| 32 | DirectX_LIBRARY_1 |
---|
| 33 | DirectX_LIBRARY_2 |
---|
| 34 | DirectX_INCLUDE_DIR |
---|
| 35 | ) |
---|
[1505] | 36 | |
---|
[2579] | 37 | IF(DIRECTX_FOUND) |
---|
| 38 | SET(DirectX_LIBRARIES ${DirectX_LIBRARY_1} ${DirectX_LIBRARY_2} CACHE STRING "DirectX library files" FORCE) |
---|
| 39 | ENDIF(DIRECTX_FOUND) |
---|
[1505] | 40 | ENDIF(WIN32) |
---|
[2510] | 41 | |
---|
[2579] | 42 | MARK_AS_ADVANCED( |
---|
| 43 | DirectX_INCLUDE_DIR |
---|
| 44 | DirectX_LIBRARY_1 |
---|
| 45 | DirectX_LIBRARY_2 |
---|
| 46 | DirectX_LIBRARIES |
---|
| 47 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.