diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-25 20:30:22 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-25 20:30:22 +0000 |
| commit | 2f7bd1d92cad86cb0d19c3868ea8ef33fe261897 (patch) | |
| tree | 894624afd6686bea4360cb1f77d059f90be657d2 /Tests/IncludeTest | |
| parent | Updated core to fix linux build errors (diff) | |
| download | DiligentEngine-2f7bd1d92cad86cb0d19c3868ea8ef33fe261897.tar.gz DiligentEngine-2f7bd1d92cad86cb0d19c3868ea8ef33fe261897.zip | |
Added include tests for TextureLoader project
Diffstat (limited to 'Tests/IncludeTest')
4 files changed, 76 insertions, 2 deletions
diff --git a/Tests/IncludeTest/CMakeLists.txt b/Tests/IncludeTest/CMakeLists.txt index ef61037..4086b78 100644 --- a/Tests/IncludeTest/CMakeLists.txt +++ b/Tests/IncludeTest/CMakeLists.txt @@ -6,7 +6,8 @@ file(GLOB GRAPHICS_ENGINE_INC_TEST LIST_DIRECTORIES false src/GraphicsEngine/*.c file(GLOB PLATFORMS_INC_TEST LIST_DIRECTORIES false src/Platforms/*.cpp) file(GLOB COMMON_INC_TEST LIST_DIRECTORIES false src/Common/*.cpp) file(GLOB GRAPHICS_TOOLS_INC_TEST LIST_DIRECTORIES false src/GraphicsTools/*.cpp) -add_library(IncludeTest ${GRAPHICS_ENGINE_INC_TEST} ${PLATFORMS_INC_TEST} ${COMMON_INC_TEST} ${GRAPHICS_TOOLS_INC_TEST}) +file(GLOB TEXTURE_LOADER_INC_TEST LIST_DIRECTORIES false src/TextureLoader/*.cpp) +add_library(IncludeTest ${GRAPHICS_ENGINE_INC_TEST} ${PLATFORMS_INC_TEST} ${COMMON_INC_TEST} ${GRAPHICS_TOOLS_INC_TEST} ${TEXTURE_LOADER_INC_TEST}) if(D3D11_SUPPORTED) file(GLOB GRAPHICS_ENGINE_D3D11_INC_TEST LIST_DIRECTORIES false src/GraphicsEngineD3D11/*.cpp) @@ -26,7 +27,7 @@ if(GL_SUPPORTED OR GLES_SUPPORTED) source_group("src\\GraphicsEngineOpenGL" FILES ${GRAPHICS_ENGINE_GL_INC_TEST}) endif() -target_include_directories(IncludeTest PRIVATE ../../DiligentCore) +target_include_directories(IncludeTest PRIVATE ../../DiligentCore ../..) target_link_libraries(IncludeTest PRIVATE BuildSettings) set_common_target_properties(IncludeTest) @@ -40,6 +41,7 @@ source_group("src\\GraphicsEngine" FILES ${GRAPHICS_ENGINE_INC_TEST}) source_group("src\\Platforms" FILES ${PLATFORMS_INC_TEST}) source_group("src\\Common" FILES ${COMMON_INC_TEST}) source_group("src\\GraphicsTool" FILES ${GRAPHICS_TOOLS_INC_TEST}) +source_group("src\\TextureLoader" FILES ${TEXTURE_LOADER_INC_TEST}) set_target_properties(IncludeTest PROPERTIES FOLDER Tests diff --git a/Tests/IncludeTest/src/TextureLoader/ImageH_test.cpp b/Tests/IncludeTest/src/TextureLoader/ImageH_test.cpp new file mode 100644 index 0000000..5a9ba8f --- /dev/null +++ b/Tests/IncludeTest/src/TextureLoader/ImageH_test.cpp @@ -0,0 +1,24 @@ +/* Copyright 2015-2017 Egor Yusov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS. + * + * In no event and under no legal theory, whether in tort (including negligence), + * contract, or otherwise, unless required by applicable law (such as deliberate + * and grossly negligent acts) or agreed to in writing, shall any Contributor be + * liable for any damages, including any direct, indirect, special, incidental, + * or consequential damages of any character arising as a result of this License or + * out of the use or inability to use the software (including but not limited to damages + * for loss of goodwill, work stoppage, computer failure or malfunction, or any and + * all other commercial damages or losses), even if such Contributor has been advised + * of the possibility of such damages. + */ + +#include "DiligentTools/TextureLoader/interface/Image.h" diff --git a/Tests/IncludeTest/src/TextureLoader/TextureLoaderH_test.cpp b/Tests/IncludeTest/src/TextureLoader/TextureLoaderH_test.cpp new file mode 100644 index 0000000..0b8b122 --- /dev/null +++ b/Tests/IncludeTest/src/TextureLoader/TextureLoaderH_test.cpp @@ -0,0 +1,24 @@ +/* Copyright 2015-2017 Egor Yusov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS. + * + * In no event and under no legal theory, whether in tort (including negligence), + * contract, or otherwise, unless required by applicable law (such as deliberate + * and grossly negligent acts) or agreed to in writing, shall any Contributor be + * liable for any damages, including any direct, indirect, special, incidental, + * or consequential damages of any character arising as a result of this License or + * out of the use or inability to use the software (including but not limited to damages + * for loss of goodwill, work stoppage, computer failure or malfunction, or any and + * all other commercial damages or losses), even if such Contributor has been advised + * of the possibility of such damages. + */ + +#include "DiligentTools/TextureLoader/interface/TextureLoader.h"
\ No newline at end of file diff --git a/Tests/IncludeTest/src/TextureLoader/TextureUtilitiesH_test.cpp b/Tests/IncludeTest/src/TextureLoader/TextureUtilitiesH_test.cpp new file mode 100644 index 0000000..5ff3999 --- /dev/null +++ b/Tests/IncludeTest/src/TextureLoader/TextureUtilitiesH_test.cpp @@ -0,0 +1,24 @@ +/* Copyright 2015-2017 Egor Yusov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS. + * + * In no event and under no legal theory, whether in tort (including negligence), + * contract, or otherwise, unless required by applicable law (such as deliberate + * and grossly negligent acts) or agreed to in writing, shall any Contributor be + * liable for any damages, including any direct, indirect, special, incidental, + * or consequential damages of any character arising as a result of this License or + * out of the use or inability to use the software (including but not limited to damages + * for loss of goodwill, work stoppage, computer failure or malfunction, or any and + * all other commercial damages or losses), even if such Contributor has been advised + * of the possibility of such damages. + */ + +#include "DiligentTools/TextureLoader/interface/TextureUtilities.h"
\ No newline at end of file |
