]> git.lyx.org Git - lyx.git/blobdiff - src/tests/CMakeLists.txt
Adjust indentation after ff42fea8.
[lyx.git] / src / tests / CMakeLists.txt
index 82eb68eb1b09a105199cf33bf6e0fb6be0f84b82..f2dd265b4048f5d2e5b41214108e6fc225a25205 100644 (file)
@@ -8,16 +8,21 @@ set(check_layout_SOURCES)
 foreach(_f insets/InsetLayout.cpp Color.cpp Counters.cpp Floating.cpp
        FloatList.cpp FontInfo.cpp Layout.cpp LayoutFile.cpp Lexer.cpp
        ModuleList.cpp Spacing.cpp TextClass.cpp tests/check_layout.cpp
-       support/tests/boost.cpp support/tests/dummy_functions.cpp)
+       tests/boost.cpp tests/dummy_functions.cpp)
   list(APPEND check_layout_SOURCES "${TOP_SRC_DIR}/src/${_f}")
 endforeach()
 
-add_definitions(-DNO_LAYOUT_CSS)
+include_directories(${TOP_SRC_DIR}/src/support/tests)
+
 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})
+if(CYGWIN)
+    target_link_libraries(check_layout shlwapi)
+endif()
+lyx_target_link_libraries(check_layout Magic)
 
 add_dependencies(lyx_run_tests check_layout)
 set_target_properties(check_layout PROPERTIES FOLDER "tests/src")
@@ -31,3 +36,28 @@ foreach(bns ${layout_files})
     COMMAND check_layout "${TOP_SRC_DIR}/lib/layouts/${bn}")
   settestlabel("check_layout/${bns}" "layout")
 endforeach()
+
+set(check_ExternalTransforms_SOURCES)
+foreach(_f graphics/GraphicsParams.cpp insets/ExternalTransforms.cpp
+       Length.cpp lengthcommon.cpp tests/check_ExternalTransforms.cpp
+       tests/boost.cpp tests/dummy_functions.cpp)
+    list(APPEND check_ExternalTransforms_SOURCES ${TOP_SRC_DIR}/src/${_f})
+endforeach()
+
+include_directories(${TOP_SRC_DIR}/src/tests)
+add_executable(check_ExternalTransforms ${check_ExternalTransforms_SOURCES})
+
+target_link_libraries(check_ExternalTransforms support
+       ${Lyx_Boost_Libraries} ${QT_QTCORE_LIBRARY})
+
+add_dependencies(lyx_run_tests check_ExternalTransforms)
+set_target_properties(check_ExternalTransforms PROPERTIES FOLDER "src")
+target_link_libraries(check_ExternalTransforms ${ICONV_LIBRARY})
+
+add_test(NAME "check_ExternalTransforms"
+  COMMAND ${CMAKE_COMMAND} -DCommand=$<TARGET_FILE:check_ExternalTransforms>
+       "-DInput=${TOP_SRC_DIR}/src/tests/regfiles/ExternalTransforms"
+       "-DOutput=${CMAKE_CURRENT_BINARY_DIR}/ExternalTransforms_data"
+       -P "${TOP_SRC_DIR}/src/support/tests/supporttest.cmake")
+add_dependencies(lyx_run_tests check_ExternalTransforms)
+