<div>In my particular CMake project, I have three CPP files:</div><div><br></div><div>    a.cpp</div><div>    b.cpp</div><div>    c.cpp</div><div><br></div><div>I want &#39;a.cpp&#39; to be compiled in all configurations (release &amp; debug).&lt;br&gt;</div>
<div>I only want &#39;b.cpp&#39; to be compiled in DEBUG configuration.&lt;br&gt;</div><div>I only want &#39;c.cpp&#39; to be compiled in RELEASE configuration.</div><div><br></div><div>How can I do this? I need something similar to the `debug` and `optimized` keywords that are accepted by the `target_link_libraries()` CMake operation.</div>
<div><br></div><div>---------</div>Robert Dailey<br>