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);">&lt;CSC&gt;</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; src\</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CSU1&gt;</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CSU2&gt;</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; test\</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CSU1_TEST&gt;\</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Source Codes and CMakeLists.txt] under this directory</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CSU2_TEST&gt;</span><br style="color: rgb(255, 0, 0);" clear="all"><br>To add source code files under &lt;CSU1&gt; i added following line to CMakeLists.txt under CSU1_TEST directory<br>
<span style="color: rgb(255, 0, 0);">FILE(GLOB_RECURSE CSU1_SOURCE &lt;Absolute Path to CSU1&gt;)<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&#39;s *cpp files to source file list of test code&#39;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..