<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 'a.cpp' to be compiled in all configurations (release & debug).<br></div>
<div>I only want 'b.cpp' to be compiled in DEBUG configuration.<br></div><div>I only want 'c.cpp' 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>