1 include (CheckIncludeFileCXX)
3 if (MSVC AND DirectX_D3D11_INCLUDE_DIR)
5 include_directories (BEFORE
6 ${DirectX_D3D11_INCLUDE_DIR}
9 CHECK_INCLUDE_FILE_CXX (directxmath.h HAVE_DIRECTXMATH)
10 if (NOT HAVE_DIRECTXMATH)
11 include_directories (BEFORE
12 ${CMAKE_CURRENT_SOURCE_DIR}/XNAMath
14 add_definitions (-DUSE_XNAMATH)
17 add_library (directxtex STATIC
19 DirectXTex/BC6HBC7.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