2 file(GLOB lyx_files "${LYX_ROOT}/lib/doc/*.lyx")
3 message(STATUS "lyx_files = ${lyx_files}")
6 foreach(format lyx16x xhtml)
7 foreach(f ${lyx_files})
8 message(STATUS "Executing ${lyx} -E ${format} localtest.${format} ${f}")
9 execute_process(COMMAND ${CMAKE_COMMAND} -E remove localtest.xhtml localtest.16.lyx)
11 COMMAND ${lyx} -E ${format} localtest.${format} ${f}
13 string(COMPARE NOTEQUAL ${_err} 0 _erg)
15 list(APPEND ERRORS "Exporting ${f} to ${format}")
23 message(FATAL_ERROR "Export failed")