Sort entries in created POTFILES.in

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34814 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2010-07-08 11:23:30 +00:00
parent f4aedbe672
commit e2f01217a8

View File

@ -86,6 +86,7 @@ SET(_potfiles_dep)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in "")
foreach(_dir src/frontends/qt4 src/insets src/mathed src/support src/tex2lyx src)
file(GLOB _tmp_potfiles RELATIVE ${TOP_SRC_DIR} ${TOP_SRC_DIR}/${_dir}/*.cpp)
list(SORT _tmp_potfiles)
foreach(_f ${_tmp_potfiles})
LIST(APPEND _potfiles_dep "${TOP_SRC_DIR}/${_f}")
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in "${_f}\n")