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} ${f}")
9 #execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${f} localtest.lyx)
10 execute_process(COMMAND ${CMAKE_COMMAND} -E remove localtest.xhtml localtest.16.lyx)
12 COMMAND ${lyx} -E ${format} localtest.lyx ${f}
14 string(COMPARE NOTEQUAL ${_err} 0 _erg)
16 list(APPEND ERRORS "Exporting ${f} to ${format}")
24 message(FATAL_ERROR "Export failed")