PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/DirectX.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 46 lines | 41 code | 4 blank | 1 comment | 7 complexity | 31cc90d2f285e4924982dc9929e5118f MD5 | raw file
 1# -*- cmake -*-
 2
 3if (VIEWER AND WINDOWS)
 4  find_path(DIRECTX_INCLUDE_DIR dxdiag.h
 5            "$ENV{DXSDK_DIR}/Include"
 6            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2009)/Include"
 7            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2009)/Include"
 8            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include"
 9            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Include"
10            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Include"
11            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (November 2007)/Include"
12            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2007)/Include"
13            "C:/DX90SDK/Include"
14            "$ENV{PROGRAMFILES}/DX90SDK/Include"
15            )
16  if (DIRECTX_INCLUDE_DIR)
17    include_directories(${DIRECTX_INCLUDE_DIR})
18    if (DIRECTX_FIND_QUIETLY)
19      message(STATUS "Found DirectX include: ${DIRECTX_INCLUDE_DIR}")
20    endif (DIRECTX_FIND_QUIETLY)
21  else (DIRECTX_INCLUDE_DIR)
22    message(FATAL_ERROR "Could not find DirectX SDK Include")
23  endif (DIRECTX_INCLUDE_DIR)
24
25
26  find_path(DIRECTX_LIBRARY_DIR dxguid.lib
27            "$ENV{DXSDK_DIR}/Lib/x86"
28            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2009)/Lib/x86"
29            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2009)/Lib/x86"
30            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86"
31            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Lib/x86"
32            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Lib/x86"
33            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (November 2007)/Lib/x86"
34            "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2007)/Lib/x86"
35            "C:/DX90SDK/Lib"
36            "$ENV{PROGRAMFILES}/DX90SDK/Lib"
37            )
38  if (DIRECTX_LIBRARY_DIR)
39    if (DIRECTX_FIND_QUIETLY)
40      message(STATUS "Found DirectX include: ${DIRECTX_LIBRARY_DIR}")
41    endif (DIRECTX_FIND_QUIETLY)
42  else (DIRECTX_LIBRARY_DIR)
43    message(FATAL_ERROR "Could not find DirectX SDK Libraries")
44  endif (DIRECTX_LIBRARY_DIR)
45
46endif (VIEWER AND WINDOWS)