[CMake] add_custom_command question

Łukasz Tasz lukasz at tasz.eu
Thu Oct 20 06:37:29 EDT 2011


Hi all,

In my cmake project I have few commands that are creating outputs.

But Unfortunately those outputs are used across many directories.

So my question is what's the real scope of output_command? only
Current_CmakeLists.txt?
Can I somehow make make_target that is creating output registered in
global scope?

I'm familiar with pattern of attaching custom target with custom
command, but I would like to avoid managing separately target, and
output name.


thanks in advance
Lukasz


More information about the CMake mailing list