Browse Source

Link plugin dependencies to libraries, not test executables.

The test executables shouldn't need it at all.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
82ffeaae01
  1. 3
      src/Plugins/MagnumFontConverter/CMakeLists.txt
  2. 1
      src/Plugins/MagnumFontConverter/Test/CMakeLists.txt

3
src/Plugins/MagnumFontConverter/CMakeLists.txt

@ -47,6 +47,7 @@ if(BUILD_GL_TESTS)
add_library(MagnumFontConverterTestLib STATIC $<TARGET_OBJECTS:MagnumFontConverterObjects>) add_library(MagnumFontConverterTestLib STATIC $<TARGET_OBJECTS:MagnumFontConverterObjects>)
target_link_libraries(MagnumFontConverterTestLib target_link_libraries(MagnumFontConverterTestLib
${MAGNUM_LIBRARIES} ${MAGNUM_LIBRARIES}
${MAGNUM_TEXT_LIBRARIES}) ${MAGNUM_TEXT_LIBRARIES}
TgaImageConverterTestLib)
add_subdirectory(Test) add_subdirectory(Test)
endif() endif()

1
src/Plugins/MagnumFontConverter/Test/CMakeLists.txt

@ -32,6 +32,5 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../FreeTypeFont/Test/
corrade_add_test(MagnumFontConverterTest MagnumFontConverterTest.cpp LIBRARIES corrade_add_test(MagnumFontConverterTest MagnumFontConverterTest.cpp LIBRARIES
MagnumFontConverterTestLib MagnumFontConverterTestLib
FreeTypeFontTestLib FreeTypeFontTestLib
TgaImageConverterTestLib
TgaImporterTestLib TgaImporterTestLib
${GL_TEST_LIBRARIES}) ${GL_TEST_LIBRARIES})

Loading…
Cancel
Save