<div dir="ltr">Hi,<br><br>In the root CMakeLists.txt, I have a variable - a list of files...<br><br>set( TRANSFILES )&nbsp;&nbsp; ? how do i create an empty list ?<br><br><br>then i add a subdirectory<br>add_subdirectory(whatever)<br>
<br>and in whatever/CMakeLists.txt, i want to add some files...<br><br>file (GLOB CPPFILES *.cpp)<br><br>set (TRANSFILES ${TRANSFILES} ${CPPFILES})<br><br><br><br>and now, back in the root CMakeLists.txt, I want to do something on that list of files...<br>
<br>qt4_create_translation(QM_FILES ${TRANSFILES} translation/<a href="http://app_fr.tr">app_fr.tr</a>)<br><br><br>But, I find that whatever I do to the variable in the subdirectory is not seen in the root dir... How should I do this ?<br>
<br>thanks,<br>Paul<br><br></div>