Switch to CMake

This commit is contained in:
Bertrand Songis
2015-12-21 23:43:18 +01:00
parent c8358d7e37
commit 88841f63ca
94 changed files with 1553 additions and 956 deletions
+14
View File
@@ -0,0 +1,14 @@
file(GLOB translations *.h.txt)
foreach(translation ${translations})
get_filename_component(language ${translation} NAME_WE)
get_filename_component(path ${translation} DIRECTORY)
set(target ${language}.h)
add_custom_command(
OUTPUT ${target}
COMMAND python ${RADIO_DIRECTORY}/util/translate.py ${translation} ${target} ${language}
DEPENDS ${translation}
)
list(APPEND translations_files ${target})
endforeach()
add_custom_target(firmware_translations DEPENDS ${translations_files})