summaryrefslogtreecommitdiff
path: root/thirdparty/directxtex
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-12-07 11:37:00 +0000
committerJosé Fonseca <jfonseca@vmware.com>2012-12-07 11:38:51 +0000
commit400cd6589ff21fa885b6cd799ecd730384a14509 (patch)
tree53542e3035d3e0df66436caa004747066af42b52 /thirdparty/directxtex
parentf6a9034a9d6d58ab27b574a0c146a36782762d55 (diff)
directxtex: Build with cmake.
Diffstat (limited to 'thirdparty/directxtex')
-rw-r--r--thirdparty/directxtex/CMakeLists.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/thirdparty/directxtex/CMakeLists.txt b/thirdparty/directxtex/CMakeLists.txt
new file mode 100644
index 00000000..e9ef808b
--- /dev/null
+++ b/thirdparty/directxtex/CMakeLists.txt
@@ -0,0 +1,36 @@
+include (CheckIncludeFileCXX)
+
+if (MSVC AND 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 ()
+
+ 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
+ )
+
+endif ()