@ -228,14 +228,26 @@
# C o r r a d e l i b r a r y d e p e n d e n c i e s
# C o r r a d e l i b r a r y d e p e n d e n c i e s
set ( _MAGNUM_CORRADE_DEPENDENCIES )
set ( _MAGNUM_CORRADE_DEPENDENCIES )
foreach ( _component ${ Magnum_FIND_COMPONENTS } )
foreach ( _magnum_component ${ Magnum_FIND_COMPONENTS } )
set ( _MAGNUM_ ${ _magnum_component } _CORRADE_DEPENDENCIES )
# U n r o l l i n g t h e t r a n s i t i v e d e p e n d e n c i e s h e r e s o t h i s d o e s n ' t n e e d t o b e
# U n r o l l i n g t h e t r a n s i t i v e d e p e n d e n c i e s h e r e s o t h i s d o e s n ' t n e e d t o b e
# a f t e r r e s o l v i n g i n t e r - c o m p o n e n t d e p e n d e n c i e s . L i s t i n g a l s o a l l p l u g i n s .
# a f t e r r e s o l v i n g i n t e r - c o m p o n e n t d e p e n d e n c i e s . L i s t i n g a l s o a l l p l u g i n s .
if ( _component MATCHES "^(Audio|DebugTools|MeshTools|Primitives|SceneTools|ShaderTools|Text|TextureTools|Trade|.+Importer|.+ImageConverter|.+Font|.+ShaderConverter)$" )
if ( _magnum_component MATCHES "^(Audio|DebugTools|MeshTools|Primitives|SceneTools|ShaderTools|Text|TextureTools|Trade|.+Importer|.+ImageConverter|.+Font|.+ShaderConverter)$" )
set ( _MAGNUM_ ${ _component } _CORRADE_DEPENDENCIES PluginManager )
list ( APPEND _MAGNUM_ ${ _magnum_component } _CORRADE_DEPENDENCIES PluginManager )
endif ( )
if ( _magnum_component STREQUAL DebugTools )
# D e b u g T o o l s d e p e n d s o n T e s t S u i t e o p t i o n a l l y , s o i f i t ' s n o t t h e r e
# a s s u m e i t w a s n ' t c o m p i l e d a g a i n s t i t . A l s o , a l l v a r i a b l e s f r o m t h e
# F i n d C o r r a d e m o d u l e o v e r w r i t e t h e l o c a l v a r i a b l e s here ( in particular
# _ c o m p o n e n t , _ C O M P O N E N T a n d s u c h ) , s o w e n e e d t o p r e f i x e x t e n s i v e l y .
find_package ( Corrade QUIET COMPONENTS TestSuite )
if ( Corrade_TestSuite_FOUND )
list ( APPEND _MAGNUM_ ${ _magnum_component } _CORRADE_DEPENDENCIES TestSuite )
endif ( )
endif ( )
endif ( )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES ${ _MAGNUM_${_component } _CORRADE_DEPENDENCIES} )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES ${ _MAGNUM_${_magnum_ component } _CORRADE_DEPENDENCIES} )
endforeach ( )
endforeach ( )
find_package ( Corrade REQUIRED Utility ${ _MAGNUM_CORRADE_DEPENDENCIES } )
find_package ( Corrade REQUIRED Utility ${ _MAGNUM_CORRADE_DEPENDENCIES } )