|
|
|
|
@ -33,10 +33,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure.h.cmake
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/configure.h) |
|
|
|
|
|
|
|
|
|
corrade_add_test(AnyImageImporterTest Test.cpp LIBRARIES MagnumAnyImageImporterTestLib) |
|
|
|
|
# On Win32 we need to avoid dllimporting TgaImporter 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. |
|
|
|
|
# On Win32 we need to avoid dllimporting AnyImageImporter 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) |
|
|
|
|
set_target_properties(AnyImageImporterTest PROPERTIES COMPILE_FLAGS "-DMAGNUM_ANYIMAGEIMPORTER_BUILD_STATIC") |
|
|
|
|
endif() |
|
|
|
|
|