diff options
author | rikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-10-02 19:58:55 +0000 |
---|---|---|
committer | rikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-10-02 19:58:55 +0000 |
commit | faf8136eb0ffa70ee5d9494b4b387c0aabaac8b5 (patch) | |
tree | e2cdd914ff2b3be4c97a0d3ffb150ab13068f3d1 /cmake/navit_xml_parser.cmake | |
parent | cf3d13d788278d4989fe0f0287fc224087d36f32 (diff) | |
download | navit-faf8136eb0ffa70ee5d9494b4b387c0aabaac8b5.tar.gz |
Add:core:Initial support for cmake build system. This first stage partly supports windows and linux platforms.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3589 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'cmake/navit_xml_parser.cmake')
-rw-r--r-- | cmake/navit_xml_parser.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/navit_xml_parser.cmake b/cmake/navit_xml_parser.cmake new file mode 100644 index 000000000..d39833010 --- /dev/null +++ b/cmake/navit_xml_parser.cmake @@ -0,0 +1,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() |