diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-10 01:45:04 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-10 01:45:04 +0100 |
commit | 31f2b6e1f6427e1086fcccf74f6f436700097f1f (patch) | |
tree | 391f23baf4ea8c357e06eeb66c925fe047e4d632 /cmake/FindDirectX.cmake | |
parent | f5cda41c985730fc27361f3bb36cc2c5ede77e1c (diff) |
Draft D2D trace support.
Diffstat (limited to 'cmake/FindDirectX.cmake')
-rw-r--r-- | cmake/FindDirectX.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake index 2c54023e..faeee60f 100644 --- a/cmake/FindDirectX.cmake +++ b/cmake/FindDirectX.cmake @@ -137,6 +137,22 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") endif (DirectX_D3DX10_INCLUDE_DIR AND DirectX_D3DX10_LIBRARY) endif (DirectX_D3D10_INCLUDE_DIR AND DirectX_D3D10_LIBRARY) + + find_path (DirectX_D2D1_INCLUDE_DIR d2d1.h + PATHS + "${DirectX_ROOT_DIR}/Include" + DOC "The directory where d2d1.h resides") + + find_library (DirectX_D2D1_LIBRARY d2d1 + PATHS + "${DirectX_ROOT_DIR}/Lib/x86" + DOC "The directory where d2d1 resides") + + if (DirectX_D2D1_INCLUDE_DIR AND DirectX_D2D1_LIBRARY) + set (DirectX_D2D1_FOUND 1) + endif (DirectX_D2D1_INCLUDE_DIR AND DirectX_D2D1_LIBRARY) + + mark_as_advanced( DirectX_D3D_INCLUDE_DIR DirectX_D3D_INCLUDE_DIR @@ -162,6 +178,8 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") DirectX_D3D10_LIBRARY DirectX_D3DX10_INCLUDE_DIR DirectX_D3DX10_LIBRARY + DirectX_D2D1_INCLUDE_DIR + DirectX_D2D1_LIBRARY ) endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") @@ -175,4 +193,5 @@ mark_as_advanced ( DirectX_D3DX9_FOUND DirectX_D3D10_FOUND DirectX_D3DX10_FOUND + DirectX_D2D1_FOUND ) |