@ -33,7 +33,7 @@ endif()
# 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
# 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 t h a t . S h o u l d
# 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 ( xcode7.3 has CMake 3.6 ) .
# 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 has CMake 3.6 ) .
if ( NOT BUILD_PLUGINS _STATIC )
if ( NOT MAGNUM_MAGNUMFONT_ BUILD_STATIC)
set ( MAGNUMFONT_PLUGIN_FILENAME $< TARGET_FILE:MagnumFont > )
set ( MAGNUMFONT_PLUGIN_FILENAME $< TARGET_FILE:MagnumFont > )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
set ( TGAIMPORTER_PLUGIN_FILENAME $< TARGET_FILE:TgaImporter > )
endif ( )
endif ( )
@ -50,11 +50,11 @@ corrade_add_test(MagnumFontTest MagnumFontTest.cpp
f o n t . c o n f
f o n t . c o n f
f o n t . t g a )
f o n t . t g a )
target_include_directories ( MagnumFontTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( MagnumFontTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( BUILD_PLUGINS _STATIC )
if ( MAGNUM_MAGNUMFONT_ BUILD_STATIC)
target_link_libraries ( MagnumFontTest PRIVATE MagnumFont TgaImporter )
target_link_libraries ( MagnumFontTest PRIVATE MagnumFont TgaImporter )
endif ( )
endif ( )
set_target_properties ( MagnumFontTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test" )
set_target_properties ( MagnumFontTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test" )
if ( CORRADE_BUILD_STATIC AND NOT BUILD_PLUGINS _STATIC )
if ( CORRADE_BUILD_STATIC AND NOT MAGNUM_MAGNUMFONT_ BUILD_STATIC)
# C M a k e < 3 . 4 d o e s t h i s i m p l i c i t l y , b u t 3 . 4 + n o t anymore ( see CMP0065 ) .
# C M a k e < 3 . 4 d o e s t h i s i m p l i c i t l y , b u t 3 . 4 + n o t anymore ( see CMP0065 ) .
# T h a t ' s g e n e r a l l y o k a y , * e x c e p t i f * t h e b u i l d i s s t a t i c , t h e e x e c u t a b l e
# T h a t ' s g e n e r a l l y o k a y , * e x c e p t i f * t h e b u i l d i s s t a t i c , t h e e x e c u t a b l e
# u s e s a p l u g i n m a n a g e r a n d n e e d s t o s h a r e g l o b a l s w i t h t h e plugins ( such
# u s e s a p l u g i n m a n a g e r a n d n e e d s t o s h a r e g l o b a l s w i t h t h e plugins ( such
@ -69,14 +69,14 @@ if(BUILD_GL_TESTS)
f o n t . c o n f
f o n t . c o n f
f o n t . t g a )
f o n t . t g a )
target_include_directories ( MagnumFontGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
target_include_directories ( MagnumFontGLTest PRIVATE ${ CMAKE_CURRENT_BINARY_DIR } / $< CONFIG > )
if ( BUILD_PLUGINS _STATIC )
if ( MAGNUM_MAGNUMFONT_ BUILD_STATIC)
target_link_libraries ( MagnumFontGLTest PRIVATE MagnumFont TgaImporter )
target_link_libraries ( MagnumFontGLTest PRIVATE MagnumFont TgaImporter )
else ( )
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
# 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
add_dependencies ( MagnumFontGLTest MagnumFont TgaImporter )
add_dependencies ( MagnumFontGLTest MagnumFont TgaImporter )
endif ( )
endif ( )
set_target_properties ( MagnumFontGLTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test" )
set_target_properties ( MagnumFontGLTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test" )
if ( ( CORRADE_BUILD_STATIC OR MAGNUM_BUILD_STATIC ) AND NOT BUILD_PLUGINS _STATIC )
if ( ( CORRADE_BUILD_STATIC OR MAGNUM_BUILD_STATIC ) AND NOT MAGNUM_MAGNUMFONT_ BUILD_STATIC)
# C M a k e < 3 . 4 d o e s t h i s i m p l i c i t l y , b u t 3 . 4 + n o t anymore ( see CMP0065 ) .
# C M a k e < 3 . 4 d o e s t h i s i m p l i c i t l y , b u t 3 . 4 + n o t anymore ( see CMP0065 ) .
# T h a t ' s g e n e r a l l y o k a y , * e x c e p t i f * t h e b u i l d i s s t a t i c , t h e
# T h a t ' s g e n e r a l l y o k a y , * e x c e p t i f * t h e b u i l d i s s t a t i c , t h e
# e x e c u t a b l e u s e s a p l u g i n m a n a g e r a n d n e e d s t o s h a r e g l o b a l s w i t h t h e
# e x e c u t a b l e u s e s a p l u g i n m a n a g e r a n d n e e d s t o s h a r e g l o b a l s w i t h t h e