]> git.lyx.org Git - lyx.git/blobdiff - src/support/tests/CMakeLists.txt
Amend 7d021a93: Use interprocedural optimization if possible
[lyx.git] / src / support / tests / CMakeLists.txt
index ed4f9bb25d9c5aa2578372c7e3a56811b9ddd452..e5ef4fa6a8f8ef65e13e57c7f0c26062f7ec80ba 100644 (file)
@@ -15,7 +15,13 @@ 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} ${Magic_LIBRARY})
+               ${ZLIB_LIBRARY} ${ICONV_LIBRARY})
+       lyx_target_link_libraries(${_program} Magic)
+       if(CYGWIN)
+               target_link_libraries(${_program} shlwapi)
+       endif()
+       qt_use_modules(${_program} Core)
+       set_property(TARGET ${_program} PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
 endmacro()
 
 file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})
@@ -27,7 +33,7 @@ include_directories(
        ${ZLIB_INCLUDE_DIR})
 
 
-set(check_PROGRAMS check_convert check_filetools check_lstrings)
+set(check_PROGRAMS check_convert check_filetools check_lstrings check_trivstring)
 
 file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/regfiles")