@ -232,17 +232,14 @@
# D E A L I N G S I N T H E S O F T W A R E .
# D E A L I N G S I N T H E S O F T W A R E .
#
#
# 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 . A t t h i s p o i n t t h e y ' r e j u s t l o o k e d u p , w i t h
set ( _MAGNUM_CORRADE_DEPENDENCIES )
# t r a n s i t i v e d e p e n d e n c i e s i n c l u d i n g p l u g i n s t a k e n i n t o a c c o u n t , t h e a s s o c i a t i o n
# w i t h a c o n c r e t e M a g n u m c o m p o n e n t i s d o n e b e l o w .
foreach ( _magnum_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
# 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 .
# T O D O : D e b u g T o o l s d e p e n d s o n Trade ( and thus PluginManager ) o n l y
# T O D O : D e b u g T o o l s d e p e n d s o n Trade ( and thus PluginManager ) o n l y
# o p t i o n a l l y , t a k e t h a t i n t o a c c o u n t s o m e h o w ?
# o p t i o n a l l y , t a k e t h a t i n t o a c c o u n t s o m e h o w ?
if ( _magnum_component MATCHES "^(Audio|DebugTools|MeshTools|Primitives|SceneTools|ShaderTools|Text|TextureTools|Trade|.+Importer|.+ImageConverter|.+SceneConverter|.+Font|.+FontConverter|.+ShaderConverter)$" )
if ( _magnum_component MATCHES "^(Audio|DebugTools|MeshTools|Primitives|SceneTools|ShaderTools|Text|TextureTools|Trade|.+Importer|.+ImageConverter|.+SceneConverter|.+Font|.+FontConverter|.+ShaderConverter)$" )
list ( APPEND _MAGNUM_ ${ _magnum_component } _ CORRADE_DEPENDENCIES PluginManager )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES PluginManager )
endif ( )
endif ( )
if ( _magnum_component STREQUAL DebugTools )
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
# 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
@ -251,15 +248,16 @@ foreach(_magnum_component ${Magnum_FIND_COMPONENTS})
# _ 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 .
# _ 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 )
find_package ( Corrade QUIET COMPONENTS TestSuite )
if ( Corrade_TestSuite_FOUND )
if ( Corrade_TestSuite_FOUND )
list ( APPEND _MAGNUM_ ${ _magnum_component } _ CORRADE_DEPENDENCIES TestSuite )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES TestSuite )
endif ( )
endif ( )
endif ( )
endif ( )
if ( _magnum_component STREQUAL OpenGLTester )
if ( _magnum_component STREQUAL OpenGLTester )
list ( APPEND _MAGNUM_ ${ _magnum_component } _ CORRADE_DEPENDENCIES TestSuite )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES TestSuite )
endif ( )
endif ( )
list ( APPEND _MAGNUM_CORRADE_DEPENDENCIES ${ _MAGNUM_${_magnum_component } _CORRADE_DEPENDENCIES} )
endforeach ( )
endforeach ( )
if ( _MAGNUM_CORRADE_DEPENDENCIES )
list ( REMOVE_DUPLICATES _MAGNUM_CORRADE_DEPENDENCIES )
endif ( )
find_package ( Corrade REQUIRED Utility ${ _MAGNUM_CORRADE_DEPENDENCIES } )
find_package ( Corrade REQUIRED Utility ${ _MAGNUM_CORRADE_DEPENDENCIES } )
# R o o t i n c l u d e d i r
# R o o t i n c l u d e d i r
@ -458,6 +456,7 @@ if(CORRADE_TARGET_UNIX OR CORRADE_TARGET_WINDOWS)
endif ( )
endif ( )
# 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
# 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
set ( _MAGNUM_Audio_CORRADE_DEPENDENCIES PluginManager )
set ( _MAGNUM_Audio_DEPENDENCIES )
set ( _MAGNUM_Audio_DEPENDENCIES )
# T r a d e i s u s e d b y C o m p a r e I m a g e . I f T r a d e i s n o t e n a b l e d , C o m p a r e I m a g e i s n o t
# T r a d e i s u s e d b y C o m p a r e I m a g e . I f T r a d e i s n o t e n a b l e d , C o m p a r e I m a g e i s n o t
@ -486,6 +485,7 @@ if(MAGNUM_TARGET_GL)
list ( APPEND _MAGNUM_MeshTools_DEPENDENCIES GL )
list ( APPEND _MAGNUM_MeshTools_DEPENDENCIES GL )
endif ( )
endif ( )
set ( _MAGNUM_OpenGLTester_CORRADE_DEPENDENCIES TestSuite )
set ( _MAGNUM_OpenGLTester_DEPENDENCIES GL )
set ( _MAGNUM_OpenGLTester_DEPENDENCIES GL )
if ( MAGNUM_TARGET_EGL )
if ( MAGNUM_TARGET_EGL )
list ( APPEND _MAGNUM_OpenGLTester_DEPENDENCIES WindowlessEglApplication )
list ( APPEND _MAGNUM_OpenGLTester_DEPENDENCIES WindowlessEglApplication )
@ -512,8 +512,10 @@ if(MAGNUM_TARGET_GL)
list ( APPEND _MAGNUM_Shaders_DEPENDENCIES GL )
list ( APPEND _MAGNUM_Shaders_DEPENDENCIES GL )
endif ( )
endif ( )
set ( _MAGNUM_ShaderTools_CORRADE_DEPENDENCIES PluginManager )
set ( _MAGNUM_ShaderTools_DEPENDENCIES )
set ( _MAGNUM_ShaderTools_DEPENDENCIES )
set ( _MAGNUM_Text_CORRADE_DEPENDENCIES PluginManager )
set ( _MAGNUM_Text_DEPENDENCIES TextureTools )
set ( _MAGNUM_Text_DEPENDENCIES TextureTools )
if ( MAGNUM_TARGET_GL )
if ( MAGNUM_TARGET_GL )
list ( APPEND _MAGNUM_Text_DEPENDENCIES GL )
list ( APPEND _MAGNUM_Text_DEPENDENCIES GL )
@ -524,7 +526,9 @@ if(MAGNUM_TARGET_GL)
list ( APPEND _MAGNUM_TextureTools_DEPENDENCIES GL )
list ( APPEND _MAGNUM_TextureTools_DEPENDENCIES GL )
endif ( )
endif ( )
set ( _MAGNUM_Trade_CORRADE_DEPENDENCIES PluginManager )
set ( _MAGNUM_Trade_DEPENDENCIES )
set ( _MAGNUM_Trade_DEPENDENCIES )
set ( _MAGNUM_VulkanTester_DEPENDENCIES Vk )
set ( _MAGNUM_VulkanTester_DEPENDENCIES Vk )
set ( _MAGNUM_AndroidApplication_DEPENDENCIES GL )
set ( _MAGNUM_AndroidApplication_DEPENDENCIES GL )