aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/DirectX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/DirectX.cmake')
-rw-r--r--linden/indra/cmake/DirectX.cmake40
1 files changed, 40 insertions, 0 deletions
diff --git a/linden/indra/cmake/DirectX.cmake b/linden/indra/cmake/DirectX.cmake
new file mode 100644
index 0000000..4d2d5e0
--- /dev/null
+++ b/linden/indra/cmake/DirectX.cmake
@@ -0,0 +1,40 @@
1# -*- cmake -*-
2
3if (VIEWER AND WINDOWS)
4 find_path(DIRECTX_INCLUDE_DIR dxdiag.h
5 "$ENV{DXSDK_DIR}/Include"
6 "C:/Program Files/Microsoft DirectX SDK (June 2008)/Include"
7 "C:/Program Files/Microsoft DirectX SDK (March 2008)/Include"
8 "C:/Program Files/Microsoft DirectX SDK (November 2007)/Include"
9 "C:/Program Files/Microsoft DirectX SDK (August 2007)/Include"
10 "C:/DX90SDK/Include"
11 "C:/Program Files/DX90SDK/Include"
12 )
13 if (DIRECTX_INCLUDE_DIR)
14 include_directories(${DIRECTX_INCLUDE_DIR})
15 if (DIRECTX_FIND_QUIETLY)
16 message(STATUS "Found DirectX include: ${DIRECTX_INCLUDE_DIR}")
17 endif (DIRECTX_FIND_QUIETLY)
18 else (DIRECTX_INCLUDE_DIR)
19 message(FATAL_ERROR "Could not find DirectX SDK Include")
20 endif (DIRECTX_INCLUDE_DIR)
21
22
23 find_path(DIRECTX_LIBRARY_DIR dxguid.lib
24 "$ENV{DXSDK_DIR}/Lib/x86"
25 "C:/Program Files/Microsoft DirectX SDK (June 2008)/Lib/x86"
26 "C:/Program Files/Microsoft DirectX SDK (March 2008)/Lib/x86"
27 "C:/Program Files/Microsoft DirectX SDK (November 2007)/Lib/x86"
28 "C:/Program Files/Microsoft DirectX SDK (August 2007)/Lib/x86"
29 "C:/DX90SDK/Lib"
30 "C:/Program Files/DX90SDK/Lib"
31 )
32 if (DIRECTX_LIBRARY_DIR)
33 if (DIRECTX_FIND_QUIETLY)
34 message(STATUS "Found DirectX include: ${DIRECTX_LIBRARY_DIR}")
35 endif (DIRECTX_FIND_QUIETLY)
36 else (DIRECTX_LIBRARY_DIR)
37 message(FATAL_ERROR "Could not find DirectX SDK Libraries")
38 endif (DIRECTX_LIBRARY_DIR)
39
40endif (VIEWER AND WINDOWS)