When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
8 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
sure there is, you can call it more than once and (perhaps conditionally) enable/disable certain files from begin compiled
But you can only have 1 call to add_library, in a single file, and that's it. with target_soruces those restrictions do not apply
Also, you can use a FILE_SET with target_sotuces but not with add_library/executible
You can include another file, or set of files, each of them can modify the target sources
not always, sometimes you want to enable certain feature if an optional library is found, and disable them othewise
you can think of add_library/executible as a combination of creating the target and automatically calling target_sources. Just more flexible as it can be called multiple times (in multiple files), possibly controlled by IF's
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity