Skip to content

Commit

Permalink
FreeTypeFont: fix linker errors with static build on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Jan 21, 2014
1 parent 9c44003 commit 7bd47d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MagnumPlugins/FreeTypeFont/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ add_plugin(FreeTypeFont ${MAGNUM_PLUGINS_FONT_INSTALL_DIR}
$<TARGET_OBJECTS:FreeTypeFontObjects>
pluginRegistration.cpp)
target_link_libraries(FreeTypeFont
${MAGNUM_LIBRARIES}
${MAGNUM_TEXT_LIBRARIES}
${MAGNUM_TEXTURETOOLS_LIBRARIES}
${MAGNUM_LIBRARIES}
${FREETYPE_LIBRARIES})

install(FILES ${FreeTypeFont_HEADERS} DESTINATION ${MAGNUM_PLUGINS_INCLUDE_INSTALL_DIR}/FreeTypeFont)
Expand All @@ -52,9 +53,9 @@ install(FILES ${FreeTypeFont_HEADERS} DESTINATION ${MAGNUM_PLUGINS_INCLUDE_INSTA
if(BUILD_TESTS)
add_library(FreeTypeFontTestLib SHARED $<TARGET_OBJECTS:FreeTypeFontObjects>)
target_link_libraries(FreeTypeFontTestLib
${MAGNUM_LIBRARIES}
${MAGNUM_TEXT_LIBRARIES}
${MAGNUM_TEXTURETOOLS_LIBRARIES}
${MAGNUM_LIBRARIES}
${FREETYPE_LIBRARIES})
endif()

Expand Down

0 comments on commit 7bd47d8

Please sign in to comment.