diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-11-22 13:00:54 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-11-22 13:00:54 +0000 |
commit | 5aff9b0fd3d0cf331f5dc805210d30e9c9435f7a (patch) | |
tree | 98f84a5fb56fd804df3ce7ca254cccb71d8844c6 /cmake/FindDirectX.cmake | |
parent | 4a15339e72a7aa24a48d1b6afaf2dff669dea646 (diff) |
Use more standard names on FindDirectX.cmake
Diffstat (limited to 'cmake/FindDirectX.cmake')
-rw-r--r-- | cmake/FindDirectX.cmake | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake index 7e420bec..1ad00b1a 100644 --- a/cmake/FindDirectX.cmake +++ b/cmake/FindDirectX.cmake @@ -1,108 +1,108 @@ # - try to find DirectX include dirs and libraries if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") - find_path (D3D8_INCLUDE_DIR d3d8.h + find_path (DirectX_D3D8_INCLUDE_DIR d3d8.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3d8.h resides") - find_path (D3DX8_INCLUDE_DIR d3dx8.h + find_path (DirectX_D3DX8_INCLUDE_DIR d3dx8.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3dx8.h resides") - find_library (D3D8_LIBRARY d3d8 + find_library (DirectX_D3D8_LIBRARY d3d8 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3d8 resides") - find_library (D3DX8_LIBRARY d3dx8 + find_library (DirectX_D3DX8_LIBRARY d3dx8 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3dx8 resides") - if (D3D8_INCLUDE_DIR AND D3D8_LIBRARY) - set (D3D8_FOUND 1) - if (D3DX8_INCLUDE_DIR AND D3DX8_LIBRARY) - set (D3DX8_FOUND 1) - endif (D3DX8_INCLUDE_DIR AND D3DX8_LIBRARY) - endif (D3D8_INCLUDE_DIR AND D3D8_LIBRARY) + if (DirectX_D3D8_INCLUDE_DIR AND DirectX_D3D8_LIBRARY) + set (DirectX_D3D8_FOUND 1) + if (DirectX_D3DX8_INCLUDE_DIR AND DirectX_D3DX8_LIBRARY) + set (DirectX_D3DX8_FOUND 1) + endif (DirectX_D3DX8_INCLUDE_DIR AND DirectX_D3DX8_LIBRARY) + endif (DirectX_D3D8_INCLUDE_DIR AND DirectX_D3D8_LIBRARY) - find_path (D3D9_INCLUDE_DIR d3d9.h + find_path (DirectX_D3D9_INCLUDE_DIR d3d9.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3d9.h resides") - find_path (D3DX9_INCLUDE_DIR d3dx9.h + find_path (DirectX_D3DX9_INCLUDE_DIR d3dx9.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3dx9.h resides") - find_library (D3D9_LIBRARY d3d9 + find_library (DirectX_D3D9_LIBRARY d3d9 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3d9 resides") - find_library (D3DX9_LIBRARY d3dx9 + find_library (DirectX_D3DX9_LIBRARY d3dx9 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3dx9 resides") - if (D3D9_INCLUDE_DIR AND D3D9_LIBRARY) - set (D3D9_FOUND 1) - if (D3DX9_INCLUDE_DIR AND D3DX9_LIBRARY) - set (D3DX9_FOUND 1) - endif (D3DX9_INCLUDE_DIR AND D3DX9_LIBRARY) - endif (D3D9_INCLUDE_DIR AND D3D9_LIBRARY) + if (DirectX_D3D9_INCLUDE_DIR AND DirectX_D3D9_LIBRARY) + set (DirectX_D3D9_FOUND 1) + if (DirectX_D3DX9_INCLUDE_DIR AND DirectX_D3DX9_LIBRARY) + set (DirectX_D3DX9_FOUND 1) + endif (DirectX_D3DX9_INCLUDE_DIR AND DirectX_D3DX9_LIBRARY) + endif (DirectX_D3D9_INCLUDE_DIR AND DirectX_D3D9_LIBRARY) - find_path (D3D10_INCLUDE_DIR d3d10.h + find_path (DirectX_D3D10_INCLUDE_DIR d3d10.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3d10.h resides") - find_path (D3DX10_INCLUDE_DIR d3dx10.h + find_path (DirectX_D3DX10_INCLUDE_DIR d3dx10.h PATHS "$ENV{DXSDK_DIR}/Include" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Include" DOC "The directory where d3dx10.h resides") - find_library (D3D10_LIBRARY d3d10 + find_library (DirectX_D3D10_LIBRARY d3d10 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3d10 resides") - find_library (D3DX10_LIBRARY d3dx10 + find_library (DirectX_D3DX10_LIBRARY d3dx10 PATHS "$ENV{DXSDK_DIR}/Lib/x86" "$ENV{ProgramFiles}/Microsoft DirectX SDK/Lib/x86" DOC "The directory where d3dx10 resides") - if (D3D10_INCLUDE_DIR AND D3D10_LIBRARY) - set (D3D10_FOUND 1) - if (D3DX10_INCLUDE_DIR AND D3DX10_LIBRARY) - set (D3DX10_FOUND 1) - endif (D3DX10_INCLUDE_DIR AND D3DX10_LIBRARY) - endif (D3D10_INCLUDE_DIR AND D3D10_LIBRARY) + if (DirectX_D3D10_INCLUDE_DIR AND DirectX_D3D10_LIBRARY) + set (DirectX_D3D10_FOUND 1) + if (DirectX_D3DX10_INCLUDE_DIR AND DirectX_D3DX10_LIBRARY) + set (DirectX_D3DX10_FOUND 1) + endif (DirectX_D3DX10_INCLUDE_DIR AND DirectX_D3DX10_LIBRARY) + endif (DirectX_D3D10_INCLUDE_DIR AND DirectX_D3D10_LIBRARY) endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") mark_as_advanced ( - D3D8_FOUND - D3DX8_FOUND - D3D9_FOUND - D3DX9_FOUND - D3D10_FOUND - D3DX10_FOUND + DirectX_D3D8_FOUND + DirectX_D3DX8_FOUND + DirectX_D3D9_FOUND + DirectX_D3DX9_FOUND + DirectX_D3D10_FOUND + DirectX_D3DX10_FOUND ) |