@ -31,446 +31,381 @@ set(CMAKE_FOLDER "Magnum/Shaders/Test")
corrade_add_test ( ShadersDistanceFieldVectorTest DistanceFieldVectorTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersFlatTest FlatTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersGenericTest GenericTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersGLShaderWrapperTest GLShaderWrapperTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersMeshVisualizerTest MeshVisualizerTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersPhongTest PhongTest.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersLineTest LineTest.cpp LIBRARIES MagnumShadersTestLib )
target_compile_definitions ( ShadersLineTest PRIVATE "CORRADE_GRACEFUL_ASSERT" )
corrade_add_test ( ShadersVectorTest VectorTest.cpp LIBRARIES MagnumShaders )
# T h e r e ' s a n u n d e r s c o r e b e t w e e n G L a n d T e s t t o d i s a m b i g u a t e f r o m G L T e s t , w h i c h
# i s a c o m m o n s u f f i x u s e d t o m a r k t e s t s t h a t n e e d a G L c o n t e x t . U g l y , I k n o w .
corrade_add_test ( ShadersDistanceFieldVectorGL_Test DistanceFieldVectorGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersFlatGL_Test FlatGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersGenericGL_Test GenericGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersMeshVisualizerGL_Test MeshVisualizerGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersPhongGL_Test PhongGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersVectorGL_Test VectorGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersVertexColorGL_Test VertexColorGL_Test.cpp LIBRARIES MagnumShaders )
if ( MAGNUM_TARGET_GL )
corrade_add_test ( ShadersGLShaderWrapperTest GLShaderWrapperTest.cpp LIBRARIES MagnumShaders )
if ( NOT MAGNUM_TARGET_GLES2 )
corrade_add_test ( ShadersLineTest LineTest.cpp LIBRARIES MagnumShadersTestLib )
target_compile_definitions ( ShadersLineTest PRIVATE "CORRADE_GRACEFUL_ASSERT" )
# T h e r e ' s a n u n d e r s c o r e b e t w e e n G L a n d T e s t t o d i s a m b i g u a t e f r o m G L T e s t ,
# w h i c h i s a c o m m o n s u f f i x u s e d t o m a r k t e s t s t h a t n e e d a G L c o n t e x t . U g l y ,
# I k n o w .
corrade_add_test ( ShadersDistanceFieldVectorGL_Test DistanceFieldVectorGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersFlatGL_Test FlatGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersGenericGL_Test GenericGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersMeshVisualizerGL_Test MeshVisualizerGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersPhongGL_Test PhongGL_Test.cpp LIBRARIES MagnumShadersTestLib )
corrade_add_test ( ShadersVectorGL_Test VectorGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersVertexColorGL_Test VertexColorGL_Test.cpp LIBRARIES MagnumShaders )
corrade_add_test ( ShadersLineGL_Test LineGL_Test.cpp LIBRARIES MagnumShaders )
endif ( )
if ( MAGNUM_BUILD_GL_TESTS )
# O t h e r w i s e C M a k e c o m p l a i n s t h a t C o r r a d e : : P l u g i n M a n a g e r i s n o t f o u n d , w t f
find_package ( Corrade REQUIRED PluginManager )
if ( CORRADE_TARGET_EMSCRIPTEN OR CORRADE_TARGET_ANDROID )
set ( SHADERS_TEST_DIR "." )
else ( )
set ( SHADERS_TEST_DIR ${ CMAKE_CURRENT_SOURCE_DIR } )
endif ( )
if ( NOT MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
set ( ANYIMAGEIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:AnyImageImporter > )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
endif ( )
if ( NOT MAGNUM_TARGET_GLES2 )
corrade_add_test ( ShadersLineGL_Test LineGL_Test.cpp LIBRARIES MagnumShaders )
endif ( )
# F i r s t r e p l a c e $ { } v a r i a b l e s , t h e n $ < > g e n e r a t o r e x p r e s s i o n s
configure_file ( ${ CMAKE_CURRENT_SOURCE_DIR } /configure.h.cmake
$ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / c o n f i g u r e . h . i n )
file ( GENERATE OUTPUT ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > /configure.h
I N P U T $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / c o n f i g u r e . h . i n )
if ( MAGNUM_BUILD_GL_TESTS )
# O t h e r w i s e C M a k e c o m p l a i n s t h a t C o r r a d e : : P l u g i n M a n a g e r i s n o t f o u n d ,
# w t f
find_package ( Corrade REQUIRED PluginManager )
set ( ShadersDistanceFieldVectorGLTest_SRCS DistanceFieldVectorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersDistanceFieldVectorGLTest_SRCS TestFiles VectorTestFiles )
endif ( )
corrade_add_test ( ShadersDistanceFieldVectorGLTest ${ ShadersDistanceFieldVectorGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / v e c t o r - d i s t a n c e f i e l d . t g a
V e c t o r T e s t F i l e s / d e f a u l t s . t g a
V e c t o r T e s t F i l e s / d e f a u l t s - d i s t a n c e f i e l d . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 1 - 2 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 1 - 3 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 2 - 2 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 2 - 3 D . t g a
V e c t o r T e s t F i l e s / o u t l i n e 2 D . t g a
V e c t o r T e s t F i l e s / o u t l i n e 3 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 2 D - d i s t a n c e f i e l d . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 3 D - d i s t a n c e f i e l d . t g a )
target_include_directories ( ShadersDistanceFieldVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersDistanceFieldVectorGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersDistanceFieldVectorGLTest TgaImporter )
if ( CORRADE_TARGET_EMSCRIPTEN OR CORRADE_TARGET_ANDROID )
set ( SHADERS_TEST_DIR "." )
else ( )
set ( SHADERS_TEST_DIR ${ CMAKE_CURRENT_SOURCE_DIR } )
endif ( )
endif ( )
set ( ShadersFlatGLTest_SRCS FlatGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersFlatGLTest_SRCS TestFiles FlatTestFiles )
endif ( )
corrade_add_test ( ShadersFlatGLTest ${ ShadersFlatGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / d i f f u s e - a l p h a - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - t e x t u r e . t g a
T e s t F i l e s / a l p h a - m a s k 1 . 0 . t g a
T e s t F i l e s / s k i n n i n g . t g a
T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
T e s t F i l e s / s k i n n i n g - m u l t i . t g a
F l a t T e s t F i l e s / c o l o r e d 2 D . t g a
F l a t T e s t F i l e s / c o l o r e d 3 D . t g a
F l a t T e s t F i l e s / d e f a u l t s . t g a
F l a t T e s t F i l e s / i n s t a n c e d 2 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d 3 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d - t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d - t e x t u r e d 3 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D - a l p h a . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D - a l p h a - m a s k 0 . 5 . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a - m a s k 0 . 5 . t g a
F l a t T e s t F i l e s / v e r t e x C o l o r 2 D . t g a
F l a t T e s t F i l e s / v e r t e x C o l o r 3 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w 2 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w 3 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w - t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w - t e x t u r e d 3 D . t g a )
target_include_directories ( ShadersFlatGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersFlatGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersFlatGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersFlatGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersFlatGLTest TgaImporter )
if ( NOT MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
set ( ANYIMAGEIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:AnyImageImporter > )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
endif ( )
endif ( )
endif ( )
corrade_add_test ( ShadersGLShaderWrapperGLTest GLShaderWrapperGLTest.cpp LIBRARIES MagnumShaders MagnumOpenGLTester )
# F i r s t r e p l a c e $ { } v a r i a b l e s , t h e n $ < > g e n e r a t o r e x p r e s s i o n s
configure_file ( ${ CMAKE_CURRENT_SOURCE_DIR } /configure.h.cmake
$ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / c o n f i g u r e . h . i n )
file ( GENERATE OUTPUT ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > /configure.h
I N P U T $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / c o n f i g u r e . h . i n )
set ( ShadersMeshVisualizerGLTest_SRCS MeshVisualizerGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersMeshVisualizerGLTest_SRCS FlatTestFiles MeshVisualizerTestFiles )
endif ( )
corrade_add_test ( ShadersMeshVisualizerGLTest ${ ShadersMeshVisualizerGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
M e s h V i s u a l i z e r T e s t F i l e s / b i t a n g e n t s - f r o m - t a n g e n t s . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - p r i m i t i v e i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - p r i m i t i v e i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - t b n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / t b n - w i d e . t g a
M e s h V i s u a l i z e r T e s t F i l e s / t b n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - p e r s p e c t i v e . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - p r i m i t i v e i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - t n - s m o o t h . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - w i d e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - w i d e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - t b n 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - t b n 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - m u l t i . t g a )
target_include_directories ( ShadersMeshVisualizerGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersMeshVisualizerGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersMeshVisualizerGLTest TgaImporter )
set ( ShadersDistanceFieldVectorGLTest_SRCS DistanceFieldVectorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersDistanceFieldVectorGLTest_SRCS TestFiles VectorTestFiles )
endif ( )
endif ( )
set ( ShadersPhongGLTest_SRCS PhongGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersPhongGLTest_SRCS TestFiles PhongTestFiles FlatTestFiles )
endif ( )
corrade_add_test ( ShadersPhongGLTest ${ ShadersPhongGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / a l p h a - t e x t u r e . t g a
T e s t F i l e s / a m b i e n t - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - a l p h a - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - t e x t u r e . t g a
T e s t F i l e s / n o r m a l - t e x t u r e . t g a
T e s t F i l e s / s p e c u l a r - t e x t u r e . t g a
T e s t F i l e s / a l p h a - m a s k 1 . 0 . t g a
T e s t F i l e s / s k i n n i n g . t g a
T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
T e s t F i l e s / s k i n n i n g - m u l t i . t g a
P h o n g T e s t F i l e s / c o l o r e d . t g a
P h o n g T e s t F i l e s / d e f a u l t s . t g a
P h o n g T e s t F i l e s / d o u b l e - s i d e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d - t e x t u r e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d - n o r m a l . t g a
P h o n g T e s t F i l e s / l o w - l i g h t - a n g l e . t g a
P h o n g T e s t F i l e s / s h i n i n e s s - n o - s p e c u l a r . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 0 - o v e r f l o w . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 0 . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 1 0 . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 8 0 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - a m b i e n t . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a - m a s k 0 . 5 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - t r a n s f o r m e d . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l - l e f t . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l 0 . 0 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l 0 . 5 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - s p e c u l a r . t g a
P h o n g T e s t F i l e s / t e x t u r e d . t g a
P h o n g T e s t F i l e s / v e r t e x C o l o r . t g a
P h o n g T e s t F i l e s / l i g h t - d i r e c t i o n a l - i n t e n s i t y 2 . t g a
P h o n g T e s t F i l e s / l i g h t - d i r e c t i o n a l . t g a
P h o n g T e s t F i l e s / l i g h t - n o n e . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - a t t e n u a t e d - s p e c u l a r . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - i n t e n s i t y 1 0 - r a n g e 1 . 0 . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - r a n g e 1 . 5 . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - s p e c u l a r - c o l o r . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t . t g a
P h o n g T e s t F i l e s / m u l t i d r a w . t g a
P h o n g T e s t F i l e s / m u l t i d r a w - t e x t u r e d . t g a
corrade_add_test ( ShadersDistanceFieldVectorGLTest ${ ShadersDistanceFieldVectorGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / v e c t o r - d i s t a n c e f i e l d . t g a
# F o r z e r o l i g h t s test ( equivalency to Flat3D )
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a - m a s k 0 . 5 . t g a )
target_include_directories ( ShadersPhongGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersPhongGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersPhongGLTest PRIVATE TgaImporter )
V e c t o r T e s t F i l e s / d e f a u l t s . t g a
V e c t o r T e s t F i l e s / d e f a u l t s - d i s t a n c e f i e l d . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 1 - 2 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 1 - 3 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 2 - 2 D . t g a
V e c t o r T e s t F i l e s / s m o o t h 0 . 2 - 3 D . t g a
V e c t o r T e s t F i l e s / o u t l i n e 2 D . t g a
V e c t o r T e s t F i l e s / o u t l i n e 3 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 2 D - d i s t a n c e f i e l d . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 3 D - d i s t a n c e f i e l d . t g a )
target_include_directories ( ShadersDistanceFieldVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersDistanceFieldVectorGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersDistanceFieldVectorGLTest TgaImporter )
endif ( )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersPhongGLTest AnyImageImporter )
set ( ShadersFlatGLTest_SRCS FlatGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersFlatGLTest_SRCS TestFiles FlatTestFiles )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersPhongGLTest TgaImporter )
corrade_add_test ( ShadersFlatGLTest ${ ShadersFlatGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / d i f f u s e - a l p h a - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - t e x t u r e . t g a
T e s t F i l e s / a l p h a - m a s k 1 . 0 . t g a
T e s t F i l e s / s k i n n i n g . t g a
T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
T e s t F i l e s / s k i n n i n g - m u l t i . t g a
F l a t T e s t F i l e s / c o l o r e d 2 D . t g a
F l a t T e s t F i l e s / c o l o r e d 3 D . t g a
F l a t T e s t F i l e s / d e f a u l t s . t g a
F l a t T e s t F i l e s / i n s t a n c e d 2 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d 3 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d - t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / i n s t a n c e d - t e x t u r e d 3 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D - a l p h a . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a . t g a
F l a t T e s t F i l e s / t e x t u r e d 2 D - a l p h a - m a s k 0 . 5 . t g a
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a - m a s k 0 . 5 . t g a
F l a t T e s t F i l e s / v e r t e x C o l o r 2 D . t g a
F l a t T e s t F i l e s / v e r t e x C o l o r 3 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w 2 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w 3 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w - t e x t u r e d 2 D . t g a
F l a t T e s t F i l e s / m u l t i d r a w - t e x t u r e d 3 D . t g a )
target_include_directories ( ShadersFlatGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersFlatGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersFlatGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersFlatGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersFlatGLTest TgaImporter )
endif ( )
endif ( )
endif ( )
set ( ShadersVectorGLTest_SRCS VectorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersVectorGLTest_SRCS TestFiles VectorTestFiles )
endif ( )
corrade_add_test ( ShadersVectorGLTest ${ ShadersVectorGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / v e c t o r . t g a
corrade_add_test ( ShadersGLShaderWrapperGLTest GLShaderWrapperGLTest.cpp LIBRARIES MagnumShaders MagnumOpenGLTester )
V e c t o r T e s t F i l e s / d e f a u l t s . t g a
V e c t o r T e s t F i l e s / v e c t o r 2 D . t g a
V e c t o r T e s t F i l e s / v e c t o r 3 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 2 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 3 D . t g a )
target_include_directories ( ShadersVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersVectorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersVectorGLTest PRIVATE TgaImporter )
set ( ShadersMeshVisualizerGLTest_SRCS MeshVisualizerGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersMeshVisualizerGLTest_SRCS FlatTestFiles MeshVisualizerTestFiles )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersVectorGLTest AnyImageImporter )
corrade_add_test ( ShadersMeshVisualizerGLTest ${ ShadersMeshVisualizerGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
M e s h V i s u a l i z e r T e s t F i l e s / b i t a n g e n t s - f r o m - t a n g e n t s . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - p r i m i t i v e i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - p r i m i t i v e i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - t b n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / d e f a u l t s - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / p r i m i t i v e i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / t b n - w i d e . t g a
M e s h V i s u a l i z e r T e s t F i l e s / t b n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - n o g e o - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - p e r s p e c t i v e . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - p r i m i t i v e i d - t n . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - t n - s m o o t h . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - w i d e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e - w i d e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - w i r e f r a m e - t b n 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - i n s t a n c e d o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / i n s t a n c e d - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - t b n 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - n o g e o 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - w i r e f r a m e - n o g e o 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - v e r t e x i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - v e r t e x i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - i n s t a n c e d o b j e c t i d 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - i n s t a n c e d o b j e c t i d 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - o b j e c t i d t e x t u r e 2 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / m u l t i d r a w - o b j e c t i d t e x t u r e 3 D . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
M e s h V i s u a l i z e r T e s t F i l e s / s k i n n i n g - m u l t i . t g a )
target_include_directories ( ShadersMeshVisualizerGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersMeshVisualizerGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersMeshVisualizerGLTest TgaImporter )
endif ( )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersVectorGLTest TgaImporter )
set ( ShadersPhongGLTest_SRCS PhongGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersPhongGLTest_SRCS TestFiles PhongTestFiles FlatTestFiles )
endif ( )
endif ( )
corrade_add_test ( ShadersPhongGLTest ${ ShadersPhongGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / a l p h a - t e x t u r e . t g a
T e s t F i l e s / a m b i e n t - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - a l p h a - t e x t u r e . t g a
T e s t F i l e s / d i f f u s e - t e x t u r e . t g a
T e s t F i l e s / n o r m a l - t e x t u r e . t g a
T e s t F i l e s / s p e c u l a r - t e x t u r e . t g a
T e s t F i l e s / a l p h a - m a s k 1 . 0 . t g a
T e s t F i l e s / s k i n n i n g . t g a
T e s t F i l e s / s k i n n i n g - d e f a u l t . t g a
T e s t F i l e s / s k i n n i n g - i n s t a n c e d . t g a
T e s t F i l e s / s k i n n i n g - m u l t i . t g a
set ( ShadersVertexColorGLTest_SRCS VertexColorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersVertexColorGLTest_SRCS FlatTestFiles VertexColorTestFiles )
endif ( )
corrade_add_test ( ShadersVertexColorGLTest ${ ShadersVertexColorGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
F l a t T e s t F i l e s / d e f a u l t s . t g a
P h o n g T e s t F i l e s / c o l o r e d . t g a
P h o n g T e s t F i l e s / d e f a u l t s . t g a
P h o n g T e s t F i l e s / d o u b l e - s i d e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d - t e x t u r e d . t g a
P h o n g T e s t F i l e s / i n s t a n c e d - n o r m a l . t g a
P h o n g T e s t F i l e s / l o w - l i g h t - a n g l e . t g a
P h o n g T e s t F i l e s / s h i n i n e s s - n o - s p e c u l a r . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 0 - o v e r f l o w . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 0 . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 1 0 . t g a
P h o n g T e s t F i l e s / s h i n i n e s s 8 0 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - a m b i e n t . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a - m a s k 0 . 5 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - a l p h a . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e . t g a
P h o n g T e s t F i l e s / t e x t u r e d - d i f f u s e - t r a n s f o r m e d . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l - l e f t . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l 0 . 0 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - n o r m a l 0 . 5 . t g a
P h o n g T e s t F i l e s / t e x t u r e d - s p e c u l a r . t g a
P h o n g T e s t F i l e s / t e x t u r e d . t g a
P h o n g T e s t F i l e s / v e r t e x C o l o r . t g a
P h o n g T e s t F i l e s / l i g h t - d i r e c t i o n a l - i n t e n s i t y 2 . t g a
P h o n g T e s t F i l e s / l i g h t - d i r e c t i o n a l . t g a
P h o n g T e s t F i l e s / l i g h t - n o n e . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - a t t e n u a t e d - s p e c u l a r . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - i n t e n s i t y 1 0 - r a n g e 1 . 0 . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - r a n g e 1 . 5 . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t - s p e c u l a r - c o l o r . t g a
P h o n g T e s t F i l e s / l i g h t - p o i n t . t g a
P h o n g T e s t F i l e s / m u l t i d r a w . t g a
P h o n g T e s t F i l e s / m u l t i d r a w - t e x t u r e d . t g a
V e r t e x C o l o r T e s t F i l e s / v e r t e x C o l o r 2 D . t g a
V e r t e x C o l o r T e s t F i l e s / v e r t e x C o l o r 3 D . t g a
V e r t e x C o l o r T e s t F i l e s / m u l t i d r a w 2 D . t g a
V e r t e x C o l o r T e s t F i l e s / m u l t i d r a w 3 D . t g a )
target_include_directories ( ShadersVertexColorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersVertexColorGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersVertexColorGLTest TgaImporter )
# F o r z e r o l i g h t s test ( equivalency to Flat3D )
F l a t T e s t F i l e s / t e x t u r e d 3 D - a l p h a - m a s k 0 . 5 . t g a )
target_include_directories ( ShadersPhongGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersPhongGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersPhongGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersPhongGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersPhongGLTest TgaImporter )
endif ( )
endif ( )
endif ( )
corrade_add_test ( ShadersGLBenchmark ShadersGLBenchmark.cpp
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s
M a g n u m O p e n G L T e s t e r
F I L E S
B e n c h m a r k F i l e s / t r i v i a l . t g a )
target_include_directories ( ShadersGLBenchmark PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersGLBenchmark PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersGLBenchmark PRIVATE TgaImporter )
set ( ShadersVectorGLTest_SRCS VectorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersVectorGLTest_SRCS TestFiles VectorTestFiles )
endif ( )
endif ( )
corrade_add_test ( ShadersVectorGLTest ${ ShadersVectorGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
T e s t F i l e s / v e c t o r . t g a
if ( CORRADE_TARGET_IOS )
set_source_files_properties (
T e s t F i l e s
V e c t o r T e s t F i l e s
F l a t T e s t F i l e s
M e s h V i s u a l i z e r T e s t F i l e s
P h o n g T e s t F i l e s
V e c t o r T e s t F i l e s
V e r t e x C o l o r T e s t F i l e s
P R O P E R T I E S M A C O S X _ P A C K A G E _ L O C A T I O N R e s o u r c e s )
endif ( )
V e c t o r T e s t F i l e s / d e f a u l t s . t g a
V e c t o r T e s t F i l e s / v e c t o r 2 D . t g a
V e c t o r T e s t F i l e s / v e c t o r 3 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 2 D . t g a
V e c t o r T e s t F i l e s / m u l t i d r a w 3 D . t g a )
target_include_directories ( ShadersVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersVectorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersVectorGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersVectorGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersVectorGLTest TgaImporter )
endif ( )
endif ( )
if ( NOT MAGNUM_TARGET_GLES2 )
set ( ShadersLineGLTest_SRCS LineGLTest.cpp )
set ( ShadersVertexColorGLTest_SRCS VertexColorGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersLineGLTest_SRCS TestFiles LineTestFiles )
list ( APPEND ShadersVertexColorGLTest_SRCS FlatTestFiles VertexColor TestFiles )
endif ( )
corrade_add_test ( ShadersLineGLTest ${ ShadersLineGLTest_SRCS }
corrade_add_test ( ShadersVertexColorGLTest ${ ShadersVertexColor GLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
@ -478,48 +413,116 @@ if(MAGNUM_BUILD_GL_TESTS)
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
L i n e T e s t F i l e s / c a p s - b u t t - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c a p s - b u t t - j o i n s - m i t e r - f l a t . t g a
L i n e T e s t F i l e s / c a p s - r o u n d - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - f l a t . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 3 6 . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 7 0 d e g . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 9 1 d e g . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c a p s - t r i a n g l e - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c u b e 3 D - c a p s - b u t t - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c u b e 3 D - c a p s - s q u a r e - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c u b e 3 D - d e p t h . t g a
L i n e T e s t F i l e s / c u b e 3 D - f l a t - s i n g l e - p i x e l . t g a
L i n e T e s t F i l e s / d e f a u l t s . t g a
L i n e T e s t F i l e s / i n s t a n c e d . t g a
L i n e T e s t F i l e s / m u l t i d r a w . t g a
L i n e T e s t F i l e s / p e r s p e c t i v e 3 D . t g a
L i n e T e s t F i l e s / v e r t e x - c o l o r . t g a )
target_include_directories ( ShadersLineGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
F l a t T e s t F i l e s / d e f a u l t s . t g a
V e r t e x C o l o r T e s t F i l e s / v e r t e x C o l o r 2 D . t g a
V e r t e x C o l o r T e s t F i l e s / v e r t e x C o l o r 3 D . t g a
V e r t e x C o l o r T e s t F i l e s / m u l t i d r a w 2 D . t g a
V e r t e x C o l o r T e s t F i l e s / m u l t i d r a w 3 D . t g a )
target_include_directories ( ShadersVertexColorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersLine GLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersLine GLTest PRIVATE TgaImporter )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersLine GLTest AnyImageImporter )
add_dependencies ( ShadersVertexColorGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersLineGLTest TgaImporter )
add_dependencies ( ShadersVertexColorGLTest TgaImporter )
endif ( )
endif ( )
corrade_add_test ( ShadersGLBenchmark ShadersGLBenchmark.cpp
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s
M a g n u m O p e n G L T e s t e r
F I L E S
B e n c h m a r k F i l e s / t r i v i a l . t g a )
target_include_directories ( ShadersGLBenchmark PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersGLBenchmark PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersGLBenchmark PRIVATE TgaImporter )
endif ( )
endif ( )
if ( CORRADE_TARGET_IOS )
set_source_files_properties (
L i n e T e s t F i l e s
T e s t F i l e s
V e c t o r T e s t F i l e s
F l a t T e s t F i l e s
M e s h V i s u a l i z e r T e s t F i l e s
P h o n g T e s t F i l e s
V e c t o r T e s t F i l e s
V e r t e x C o l o r T e s t F i l e s
P R O P E R T I E S M A C O S X _ P A C K A G E _ L O C A T I O N R e s o u r c e s )
endif ( )
if ( NOT MAGNUM_TARGET_GLES2 )
set ( ShadersLineGLTest_SRCS LineGLTest.cpp )
if ( CORRADE_TARGET_IOS )
list ( APPEND ShadersLineGLTest_SRCS TestFiles LineTestFiles )
endif ( )
corrade_add_test ( ShadersLineGLTest ${ ShadersLineGLTest_SRCS }
L I B R A R I E S
M a g n u m D e b u g T o o l s
M a g n u m M e s h T o o l s
M a g n u m P r i m i t i v e s
M a g n u m S h a d e r s T e s t L i b
M a g n u m O p e n G L T e s t e r
F I L E S
L i n e T e s t F i l e s / c a p s - b u t t - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c a p s - b u t t - j o i n s - m i t e r - f l a t . t g a
L i n e T e s t F i l e s / c a p s - r o u n d - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - f l a t . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 3 6 . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 7 0 d e g . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r - l i m i t - 9 1 d e g . t g a
L i n e T e s t F i l e s / c a p s - s q u a r e - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c a p s - t r i a n g l e - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c u b e 3 D - c a p s - b u t t - j o i n s - b e v e l . t g a
L i n e T e s t F i l e s / c u b e 3 D - c a p s - s q u a r e - j o i n s - m i t e r . t g a
L i n e T e s t F i l e s / c u b e 3 D - d e p t h . t g a
L i n e T e s t F i l e s / c u b e 3 D - f l a t - s i n g l e - p i x e l . t g a
L i n e T e s t F i l e s / d e f a u l t s . t g a
L i n e T e s t F i l e s / i n s t a n c e d . t g a
L i n e T e s t F i l e s / m u l t i d r a w . t g a
L i n e T e s t F i l e s / p e r s p e c t i v e 3 D . t g a
L i n e T e s t F i l e s / v e r t e x - c o l o r . t g a )
target_include_directories ( ShadersLineGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( MAGNUM_BUILD_PLUGINS_STATIC )
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersLineGLTest PRIVATE AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
target_link_libraries ( ShadersLineGLTest PRIVATE TgaImporter )
endif ( )
else ( )
# S o t h e p l u g i n s g e t p r o p e r l y b u i l t w h e n b u i l d i n g t h e t e s t
if ( MAGNUM_WITH_ANYIMAGEIMPORTER )
add_dependencies ( ShadersLineGLTest AnyImageImporter )
endif ( )
if ( MAGNUM_WITH_TGAIMPORTER )
add_dependencies ( ShadersLineGLTest TgaImporter )
endif ( )
endif ( )
if ( CORRADE_TARGET_IOS )
set_source_files_properties (
L i n e T e s t F i l e s
P R O P E R T I E S M A C O S X _ P A C K A G E _ L O C A T I O N R e s o u r c e s )
endif ( )
endif ( )
endif ( )
endif ( )