From a5317f659427d53726158bb17afbd20ad42364c8 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 16 Oct 2012 22:36:23 +0200 Subject: [PATCH] add QT_QTGUI_LIBRARY to link libraries of check programs to get access to QDesktopServices on Mac OS X --- src/support/tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support/tests/CMakeLists.txt b/src/support/tests/CMakeLists.txt index eb6c2a1f48..d04c02f99e 100644 --- a/src/support/tests/CMakeLists.txt +++ b/src/support/tests/CMakeLists.txt @@ -13,7 +13,9 @@ macro(sources _program) endforeach() set(${_program}_SOURCES ${_tmplist}) add_executable(${_program} ${_tmplist}) - target_link_libraries(${_program} support ${Lyx_Boost_Libraries} ${QT_QTCORE_LIBRARY} ${ZLIB_LIBRARY} ${LIBINTL_LIBRARIES} ${ICONV_LIBRARY}) + target_link_libraries(${_program} support + ${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} + ${ZLIB_LIBRARY} ${LIBINTL_LIBRARIES} ${ICONV_LIBRARY}) endmacro() file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})