Hi,<br>I need to include cpp files out of tree to build test codes.<br>The source file directory structure is<br><span style="color: rgb(255, 0, 0);"><CSC></span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> src\</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> <CSU1></span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> <CSU2></span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> test\</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> <CSU1_TEST>\</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> [Source Codes and CMakeLists.txt] under this directory</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> <CSU2_TEST></span><br style="color: rgb(255, 0, 0);" clear="all"><br>To add source code files under <CSU1> i added following line to CMakeLists.txt under CSU1_TEST directory<br>
<span style="color: rgb(255, 0, 0);">FILE(GLOB_RECURSE CSU1_SOURCE <Absolute Path to CSU1>)<br><br>ADD_EXECUTABLE(${UNIT_NAME} ${CSU1_SOURCE} )<br><br><font color="#000000">But still not able to add *cpp files under CSU1.<br>
<br>What should I do in order to add CSU1's *cpp files to source file list of test code's build.<br><br>Thanks<br><br>--tunca<br><br></font></span><br>-- <br><br>Who wills, can..<br>Who tries, does..<br>Who loves, lives..