here is the function : <br><br>FUNCTION( Append_headers_to_src_list&nbsp; src_list_out src_list_in&nbsp; header_file_path_in )<br>&nbsp;&nbsp;&nbsp; MESSAGE( src_list_in&nbsp; &quot; : ${src_list_in}&quot; )<br>&nbsp;&nbsp;&nbsp; FILE( GLOB_RECURSE TEMP_LIST ${header_file_path_in}/*.h )<br>
&nbsp;&nbsp;&nbsp; SET( ${src_list_out} ${src_list_in} ${TEMP_LIST} PARENT_SCOPE )<br>ENDFUNCTION( Append_headers_to_src_list <br><br><br>here is the place where the function is invoked:<br><br>AUX_SOURCE_DIRECTORY( . SRC_LIST&nbsp; )<br>MESSAGE( SRC_LIST&nbsp; &quot; : ${SRC_LIST} &quot; )<br>

<br>Append_headers_to_src_list( SRC_LIST&nbsp; ${SRC_LIST}&nbsp; ${CMAKE_SOURCE_DIR}/include/test&nbsp; )<br><br>here is output¡¡£º¡¡<br><br>SRC_LIST : ./a.cpp;./c.cpp;./main.cpp<br>src_list_in : ./a.cpp<br><br>Output expected :<br><br>SRC_LIST : ./a.cpp;./c.cpp;./main.cpp<br>

src_list_in : ./a.cpp<br><br>£Ñ£õ£å£ó£ô£é£ï£î£º<br>¡¡&nbsp;&nbsp;&nbsp;&nbsp; &lt;1&gt;&nbsp; how to get expected Output ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;2&gt;&nbsp; why ?<br><br>Thanks.<br>