From b3b45507fe8d977578ac98764bff4675cb92be92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 5 Oct 2014 17:09:20 +0200 Subject: [PATCH] Build test libraries as static. Removes the need to export symbols for plugins which otherwise don't need that, we then also don't have to install the test library on Windows. --- src/MagnumPlugins/AnyImageImporter/CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/MagnumPlugins/AnyImageImporter/CMakeLists.txt b/src/MagnumPlugins/AnyImageImporter/CMakeLists.txt index 760d2a7e7..505b16b94 100644 --- a/src/MagnumPlugins/AnyImageImporter/CMakeLists.txt +++ b/src/MagnumPlugins/AnyImageImporter/CMakeLists.txt @@ -53,17 +53,6 @@ install(FILES ${AnyImageImporter_HEADERS} DESTINATION ${MAGNUM_PLUGINS_INCLUDE_I if(BUILD_TESTS) add_library(MagnumAnyImageImporterTestLib STATIC $) - set_target_properties(MagnumAnyImageImporterTestLib PROPERTIES DEBUG_POSTFIX "-d") target_link_libraries(MagnumAnyImageImporterTestLib ${MAGNUM_LIBRARIES}) - - # On Windows we need to install first and then run the tests to avoid "DLL - # not found" hell, thus we need to install this too - if(CORRADE_TARGET_WINDOWS AND NOT CMAKE_CROSSCOMPILING) - install(TARGETS MagnumAnyImageImporterTestLib - RUNTIME DESTINATION ${MAGNUM_BINARY_INSTALL_DIR} - LIBRARY DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR} - ARCHIVE DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR}) - endif() - add_subdirectory(Test) endif()