|
|
|
|
@ -54,7 +54,19 @@ endif()
|
|
|
|
|
install(FILES ${MagnumFontConverter_HEADERS} DESTINATION ${MAGNUM_PLUGINS_INCLUDE_INSTALL_DIR}/MagnumFontConverter) |
|
|
|
|
|
|
|
|
|
if(BUILD_GL_TESTS) |
|
|
|
|
add_library(MagnumMagnumFontConverterTestLib STATIC $<TARGET_OBJECTS:MagnumFontConverterObjects>) |
|
|
|
|
# On Win32 we need to avoid dllimporting TgaImageConverter symbols, because |
|
|
|
|
# it would search for the symbols in some DLL even when they were linked |
|
|
|
|
# statically. However it apparently doesn't matter that they were |
|
|
|
|
# dllexported when building the static library. EH. |
|
|
|
|
if(WIN32) |
|
|
|
|
add_library(MagnumMagnumFontConverterTestLib STATIC |
|
|
|
|
${MagnumFontConverter_SRCS} |
|
|
|
|
${MagnumFontConverter_HEADERS}) |
|
|
|
|
set_target_properties(MagnumMagnumFontConverterTestLib PROPERTIES COMPILE_FLAGS "-DMAGNUM_TGAIMAGECONVERTER_BUILD_STATIC") |
|
|
|
|
else() |
|
|
|
|
add_library(MagnumMagnumFontConverterTestLib STATIC $<TARGET_OBJECTS:MagnumFontConverterObjects>) |
|
|
|
|
endif() |
|
|
|
|
target_link_libraries(MagnumMagnumFontConverterTestLib Magnum MagnumText MagnumTgaImageConverterTestLib) |
|
|
|
|
|
|
|
|
|
add_subdirectory(Test) |
|
|
|
|
endif() |
|
|
|
|
|