Last change
on this file since 2581 was
2579,
checked in by rgrieder, 15 years ago
|
- Equipped find scripts with debug/optimized functions. If you have different debug prefixes on your platform simply change ${LIBRARY_DEBUG_POSTFIX} ("_d" default).
- Clean up in ConfigMSVC.cmake and ConfigMinGW.cmake
- Also had a good look at the MinGW libraries according to the libs_1889_mingw.zip (no warranty at all, hope I got them all)
- INSTALL commands are currently limited to non Windows platforms (don't yet know why it doesn't work)
|
-
Property svn:eol-style set to
native
-
Property svn:mergeinfo set to
|
File size:
1.0 KB
|
Line | |
---|
1 | IF(WIN32) |
---|
2 | # Find script for DirectX on Windows |
---|
3 | # Once loaded this will define |
---|
4 | # DirectX_FOUND - system has DirectX |
---|
5 | # DirectX_INCLUDE_DIR - include directory for DirectX |
---|
6 | # DirectX_LIBRARY - library for DirectX |
---|
7 | # |
---|
8 | # Several changes and additions by Fabian 'x3n' Landau |
---|
9 | # > www.orxonox.net < |
---|
10 | |
---|
11 | FIND_PATH(DirectX_INCLUDE_DIR dinput.h |
---|
12 | PATHS |
---|
13 | $ENV{DXSDK_DIR} |
---|
14 | PATH_SUFFIXES include |
---|
15 | ) |
---|
16 | |
---|
17 | FIND_LIBRARY(DirectX_LIBRARY_1 dinput8 |
---|
18 | PATHS |
---|
19 | $ENV{DXSDK_DIR} |
---|
20 | PATH_SUFFIXES lib Lib lib/x86 Lib/x86 |
---|
21 | ) |
---|
22 | FIND_LIBRARY(DirectX_LIBRARY_2 dxguid |
---|
23 | PATHS |
---|
24 | $ENV{DXSDK_DIR} |
---|
25 | PATH_SUFFIXES lib Lib lib/x86 Lib/x86 |
---|
26 | ) |
---|
27 | |
---|
28 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(DirectX DEFAULT_MSG DirectX_INCLUDE_DIR DirectX_LIBRARY_1 DirectX_LIBRARY_2) |
---|
29 | |
---|
30 | IF(DIRECTX_FOUND) |
---|
31 | SET(DirectX_LIBRARIES ${DirectX_LIBRARY_1} ${DirectX_LIBRARY_2} CACHE STRING "DirectX library files" FORCE) |
---|
32 | ENDIF(DIRECTX_FOUND) |
---|
33 | ENDIF(WIN32) |
---|
34 | |
---|
35 | MARK_AS_ADVANCED( |
---|
36 | DirectX_INCLUDE_DIR |
---|
37 | DirectX_LIBRARY_1 |
---|
38 | DirectX_LIBRARY_2 |
---|
39 | DirectX_LIBRARIES |
---|
40 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.