]> git.cworth.org Git - apitrace/blob - thirdparty/directxtex/CMakeLists.txt
directxtex: Fix include filename case.
[apitrace] / thirdparty / directxtex / CMakeLists.txt
1 include (CheckIncludeFileCXX)
2
3 if (MSVC AND DirectX_D3D11_INCLUDE_DIR)
4
5     include_directories (BEFORE
6         ${DirectX_D3D11_INCLUDE_DIR}
7     )
8
9     CHECK_INCLUDE_FILE_CXX (directxmath.h HAVE_DIRECTXMATH)
10     if (NOT HAVE_DIRECTXMATH)
11         include_directories (BEFORE
12             ${CMAKE_CURRENT_SOURCE_DIR}/XNAMath
13         )
14         add_definitions (-DUSE_XNAMATH)
15     endif ()
16
17     add_library (directxtex STATIC
18         DirectXTex/BC4BC5.cpp
19         DirectXTex/BC6HBC7.cpp
20         DirectXTex/BC.cpp
21         DirectXTex/DirectXTexCompress.cpp
22         DirectXTex/DirectXTexConvert.cpp
23         DirectXTex/DirectXTexD3D11.cpp
24         DirectXTex/DirectXTexDDS.cpp
25         DirectXTex/DirectXTexFlipRotate.cpp
26         DirectXTex/DirectXTexImage.cpp
27         DirectXTex/DirectXTexMipmaps.cpp
28         DirectXTex/DirectXTexMisc.cpp
29         DirectXTex/DirectXTexNormalMaps.cpp
30         DirectXTex/DirectXTexResize.cpp
31         DirectXTex/DirectXTexTGA.cpp
32         DirectXTex/DirectXTexUtil.cpp
33         DirectXTex/DirectXTexWIC.cpp
34     )
35
36 endif ()