[cmake-developers] Current deficiencies of automoc

Craig Scott craig.scott at crascit.com
Sat Oct 22 03:16:30 EDT 2016


Good background, just a minor correction:

On Sat, Oct 22, 2016 at 5:44 PM, Sascha Cunz <sascha at cunz-rad.com> wrote:

>
> The problem here is, that once a target is created in CMake, you can’t add
> any files to it. So this has to be done that way.
>

Not actually true, the target_sources()
<https://cmake.org/cmake/help/latest/command/target_sources.html> command
can do precisely that. The following article shows some reasons why this is
particularly useful:

https://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/


-- 
Craig Scott
Melbourne, Australia
https://crascit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20161022/0049405d/attachment.html>


More information about the cmake-developers mailing list