Cmake build: Added magic library to some link commands.

Needed due to the use of magic_(open|load|error|file|close) after recent changes.
This commit is contained in:
Kornel Benko 2014-06-12 07:49:17 +02:00
parent f439609304
commit 2b0511510a
4 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,8 @@ target_link_libraries(${_lyxclient}
${Lyx_Boost_Libraries}
${ICONV_LIBRARY}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY})
${QT_QTGUI_LIBRARY}
${Magic_LIBRARY})
if(ASPELL_FOUND)
target_link_libraries(${_lyxclient} ${ASPELL_LIBRARY})

View File

@ -15,7 +15,7 @@ macro(sources _program)
add_executable(${_program} ${_tmplist})
target_link_libraries(${_program} support
${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
${ZLIB_LIBRARY} ${ICONV_LIBRARY})
${ZLIB_LIBRARY} ${ICONV_LIBRARY} ${Magic_LIBRARY})
endmacro()
file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})

View File

@ -18,7 +18,7 @@ add_executable(check_layout ${check_layout_SOURCES})
target_link_libraries(check_layout support
${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
${ZLIB_LIBRARY} ${ICONV_LIBRARY})
${ZLIB_LIBRARY} ${ICONV_LIBRARY} ${Magic_LIBRARY})
add_dependencies(lyx_run_tests check_layout)
set_target_properties(check_layout PROPERTIES FOLDER "tests/src")

View File

@ -48,7 +48,8 @@ target_link_libraries(${_tex2lyx}
${Lyx_Boost_Libraries}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${ICONV_LIBRARY})
${ICONV_LIBRARY}
${Magic_LIBRARY})
add_dependencies(${_tex2lyx} lyx_version)