@ -52,7 +52,7 @@ if(BUILD_GL_TESTS)
# C M a k e b e f o r e 3 . 8 h a s b r o k e n $ < T A R G E T _ F I L E * > e x p r e s s i o n s f o r iOS ( see
# C M a k e b e f o r e 3 . 8 h a s b r o k e n $ < T A R G E T _ F I L E * > e x p r e s s i o n s f o r iOS ( see
# h t t p s : / / g i t l a b . k i t w a r e . c o m / c m a k e / c m a k e / m e r g e _ r e q u e s t s / 4 0 4 ) a n d s i n c e
# h t t p s : / / g i t l a b . k i t w a r e . c o m / c m a k e / c m a k e / m e r g e _ r e q u e s t s / 4 0 4 ) a n d s i n c e
# C o r r a d e d o e s n ' t s u p p o r t d y n a m i c p l u g i n s o n i O S , t h i s s o r t a w o r k s a r o u n d
# C o r r a d e d o e s n ' t s u p p o r t d y n a m i c p l u g i n s o n i O S , t h i s s o r t a w o r k s a r o u n d
# t h a t . S h o u l d b e r e v i s i t e d w h e n u p d a t i n g T r a v i s t o n e w e r Xcode ( current
# t h a t . S h o u l d b e r e v i s i t e d w h e n u p d a t i n g T r a v i s t o n e w e r Xcode ( xcode7.3
# h a s C M a k e 3 . 6 ) .
# h a s C M a k e 3 . 6 ) .
if ( NOT BUILD_PLUGINS_STATIC )
if ( NOT BUILD_PLUGINS_STATIC )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
@ -61,17 +61,14 @@ if(BUILD_GL_TESTS)
if ( WITH_TGAIMPORTER )
if ( WITH_TGAIMPORTER )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
endif ( )
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 $< TARGET_FILE_DIR:ShadersPhongGLTest > /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 )
else ( )
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 )
endif ( )
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 )
corrade_add_test ( ShadersDistanceFieldVectorGLTest DistanceFieldVectorGLTest.cpp
corrade_add_test ( ShadersDistanceFieldVectorGLTest DistanceFieldVectorGLTest.cpp
L I B R A R I E S
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 D e b u g T o o l s
@ -90,10 +87,8 @@ if(BUILD_GL_TESTS)
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 / 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 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 / o u t l i n e 3 D . t g a )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersDistanceFieldVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersDistanceFieldVectorGLTest PRIVATE $< TARGET_FILE_DIR:ShadersDistanceFieldVectorGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersDistanceFieldVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersDistanceFieldVectorGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )
@ -125,10 +120,8 @@ if(BUILD_GL_TESTS)
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 / 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 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 / v e r t e x C o l o r 3 D . t g a )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersFlatGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersFlatGLTest PRIVATE $< TARGET_FILE_DIR:ShadersPhongGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersFlatGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersFlatGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersFlatGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )
@ -151,10 +144,8 @@ if(BUILD_GL_TESTS)
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 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 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 . 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 . 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 . 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 . t g a )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersMeshVisualizerGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersMeshVisualizerGLTest PRIVATE $< TARGET_FILE_DIR:ShadersPhongGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersMeshVisualizerGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersMeshVisualizerGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )
@ -198,10 +189,8 @@ if(BUILD_GL_TESTS)
# F o r z e r o l i g h t s test ( equivalency to Flat3D )
# 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 )
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 )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersPhongGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersPhongGLTest PRIVATE $< TARGET_FILE_DIR:ShadersPhongGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersPhongGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersPhongGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersPhongGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )
@ -223,10 +212,8 @@ if(BUILD_GL_TESTS)
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 . 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 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 / v e c t o r 3 D . t g a )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersVectorGLTest PRIVATE $< TARGET_FILE_DIR:ShadersVectorGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersVectorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersVectorGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersVectorGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )
@ -247,10 +234,8 @@ if(BUILD_GL_TESTS)
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 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 / v e r t e x C o l o r 3 D . t g a )
if ( NOT BUILD_PLUGINS_STATIC )
target_include_directories ( ShadersVertexColorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( ShadersVertexColorGLTest PRIVATE $< TARGET_FILE_DIR:ShadersPhongGLTest > )
if ( BUILD_PLUGINS_STATIC )
else ( )
target_include_directories ( ShadersVertexColorGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } )
if ( WITH_ANYIMAGEIMPORTER )
if ( WITH_ANYIMAGEIMPORTER )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE AnyImageImporter )
target_link_libraries ( ShadersVertexColorGLTest PRIVATE AnyImageImporter )
endif ( )
endif ( )