blob: 142664040275def30f4307576a299ac6655fbdc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
include (CheckIncludeFileCXX)
if (DirectX_D3D11_INCLUDE_DIR)
include_directories (BEFORE
${DirectX_D3D11_INCLUDE_DIR}
)
CHECK_INCLUDE_FILE_CXX (directxmath.h HAVE_DIRECTXMATH)
if (NOT HAVE_DIRECTXMATH)
include_directories (BEFORE
${CMAKE_CURRENT_SOURCE_DIR}/XNAMath
)
add_definitions (-DUSE_XNAMATH)
endif ()
if (MINGW)
include_directories (BEFORE
${CMAKE_CURRENT_SOURCE_DIR}/mingw
${CMAKE_SOURCE_DIR}/dispatch # for compat.h
)
add_definitions (
-std=c++0x # static_assert, nullptr unique_ptr
-w #inhibit warnings
-D_XM_NO_INTRINSICS_
-D_XM_X86_
-DXMINLINE=inline
-DXM_NO_ALIGNMENT
)
set (MINGW_GUID mingw/guid.cpp)
endif ()
add_library (directxtex STATIC
DirectXTex/BC4BC5.cpp
DirectXTex/BC6HBC7.cpp
DirectXTex/BC.cpp
DirectXTex/DirectXTexCompress.cpp
DirectXTex/DirectXTexConvert.cpp
#DirectXTex/DirectXTexD3D11.cpp
#DirectXTex/DirectXTexDDS.cpp
#DirectXTex/DirectXTexFlipRotate.cpp
DirectXTex/DirectXTexImage.cpp
DirectXTex/DirectXTexMipmaps.cpp
DirectXTex/DirectXTexMisc.cpp
#DirectXTex/DirectXTexNormalMaps.cpp
#DirectXTex/DirectXTexResize.cpp
DirectXTex/DirectXTexTGA.cpp
DirectXTex/DirectXTexUtil.cpp
DirectXTex/DirectXTexWIC.cpp
${MINGW_GUID}
)
endif ()
|