1 SET(LOCALE_ROOT_PATH "${ROOT_DIR}/target/generic/root/usr/share/locale")
3 FILE(GLOB _pofiles *.po)
5 FOREACH(_file ${_pofiles})
6 GET_FILENAME_COMPONENT(_in ${_file} ABSOLUTE)
7 GET_FILENAME_COMPONENT(_basename ${_file} NAME_WE)
9 SET(_out "${LOCALE_ROOT_PATH}/${_basename}/LC_MESSAGES/osp.mo")
13 COMMENT "Generating ${_out}"
14 COMMAND mkdir -p ${LOCALE_ROOT_PATH}/${_basename}/LC_MESSAGES
15 COMMAND msgfmt -o ${_out} ${_in}
19 SET(mo_files ${mo_files} ${_out})
21 #INSTALL(FILES ${_out} DESTINATION "${_out}")
22 ENDFOREACH(_file ${_pofiles})
24 ADD_CUSTOM_TARGET(osp-string ALL DEPENDS ${mo_files})