-target_link_libraries(check_Layout support ${QT_QTMAIN_LIBRARY})
-add_dependencies(lyx_run_tests check_Layout)
+target_link_libraries(check_layout support ${intl_link}
+ ${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
+ ${ZLIB_LIBRARY} ${ICONV_LIBRARY})
+add_dependencies(lyx_run_tests check_layout)
+set_target_properties(check_layout PROPERTIES FOLDER "tests/src")