|
|
|
|
@ -54,6 +54,13 @@ if(BUILD_PLUGINS_STATIC)
|
|
|
|
|
target_link_libraries(MagnumFontTest PRIVATE MagnumFont TgaImporter) |
|
|
|
|
endif() |
|
|
|
|
set_target_properties(MagnumFontTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test") |
|
|
|
|
if(CORRADE_BUILD_STATIC AND NOT BUILD_PLUGINS_STATIC) |
|
|
|
|
# CMake < 3.4 does this implicitly, but 3.4+ not anymore (see CMP0065). |
|
|
|
|
# That's generally okay, *except if* the build is static, the executable |
|
|
|
|
# uses a plugin manager and needs to share globals with the plugins (such |
|
|
|
|
# as output redirection and so on). |
|
|
|
|
set_target_properties(MagnumFontTest PROPERTIES ENABLE_EXPORTS ON) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(BUILD_GL_TESTS) |
|
|
|
|
corrade_add_test(MagnumFontGLTest MagnumFontGLTest.cpp |
|
|
|
|
@ -66,4 +73,12 @@ if(BUILD_GL_TESTS)
|
|
|
|
|
target_link_libraries(MagnumFontGLTest PRIVATE MagnumFont TgaImporter) |
|
|
|
|
endif() |
|
|
|
|
set_target_properties(MagnumFontGLTest PROPERTIES FOLDER "MagnumPlugins/MagnumFont/Test") |
|
|
|
|
if((CORRADE_BUILD_STATIC OR MAGNUM_BUILD_STATIC) AND NOT BUILD_PLUGINS_STATIC) |
|
|
|
|
# CMake < 3.4 does this implicitly, but 3.4+ not anymore (see CMP0065). |
|
|
|
|
# That's generally okay, *except if* the build is static, the |
|
|
|
|
# executable uses a plugin manager and needs to share globals with the |
|
|
|
|
# plugins (such as output redirection, GL::Context::current() and so |
|
|
|
|
# on). |
|
|
|
|
set_target_properties(MagnumFontGLTest PROPERTIES ENABLE_EXPORTS ON) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|