summaryrefslogtreecommitdiff
path: root/cmake/navit_xml_parser.cmake
blob: d39833010d88a6d692ce17fc27aeaadfe20c09d3 (plain)
1
2
3
4
5
6
7
8
file(STRINGS "${SRC}" TEXT_LINES REGEX "_\\(")
file(WRITE ${DST} "// Strings from navit_shipped.xml\n")

foreach (LINE ${TEXT_LINES})
   message(STATUS ${LINE})
   string(REGEX REPLACE ".*(_\\(\"[^\"]*\"\\)).*" "\\1\n" OUTPUT_LINE ${LINE})
   file(APPEND ${DST} ${OUTPUT_LINE})
endforeach()