]> git.lyx.org Git - features.git/blobdiff - src/support/tests/CMakeLists.txt
Make trivstring class ready for use
[features.git] / src / support / tests / CMakeLists.txt
index 7c4600f1705b3248394f6062c0d7049698abb146..2d1998927f72723d5461b8a1a349957bde4547d3 100644 (file)
@@ -6,8 +6,6 @@
 
 project(supporttest)
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LYX_CXX_SPECIFIC_FLAGS}")
-
 macro(sources _program)
        set(_tmplist)
        foreach(_tmp ${ARGN})
@@ -18,6 +16,7 @@ macro(sources _program)
        target_link_libraries(${_program} support
                ${Lyx_Boost_Libraries} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}
                ${ZLIB_LIBRARY} ${ICONV_LIBRARY})
+        lyx_target_link_libraries(${_program} Magic)
 endmacro()
 
 file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})
@@ -29,7 +28,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")