Brad King writes:
> To answer the original question, the best way to generate a
> bunch of things only when the users asks is to use
> add_custom_command to create the rules and then associate them
> with a top-level target using add_custom_target:
>
>add_custom_command(
> OUTPUT myfile
Aaron Turner wrote:
Whoops, my bad. Typed "add_custom_target" not "add_custom_command".
Thanks everyone, this makes sense now.
To answer the original question, the best way to generate a bunch of things
only when the users asks is to use add_custom_command to create the rules
and then associa
On Thu, Feb 19, 2009 at 8:29 AM, Matthew Woehlke
wrote:
> Aaron Turner wrote:
>>
>> From the docs, it sounded like this only worked when adding commands
>> to existing targets, not for creating new ones.
>
> Correct, as Eric already pointed out. You need to create the target first
> with add_custo
Aaron Turner wrote:
From the docs, it sounded like this only worked when adding commands
to existing targets, not for creating new ones.
Correct, as Eric already pointed out. You need to create the target
first with add_custom_target.
My testing though seems to show that the correct usage i
2009/2/19 Aaron Turner :
> On Wed, Feb 18, 2009 at 3:40 PM, Matthew Woehlke
> wrote:
>> Aaron Turner wrote:
>>>
>>> Basically, I'm looking for a way to create a new make target
>>> "test_standard" and associate create_custom_target()'s to it.
>>
>> I assume you mean add_custom_target.
>>
>>> Sugge
On Wed, Feb 18, 2009 at 3:40 PM, Matthew Woehlke
wrote:
> Aaron Turner wrote:
>>
>> Basically, I'm looking for a way to create a new make target
>> "test_standard" and associate create_custom_target()'s to it.
>
> I assume you mean add_custom_target.
>
>> Suggestions?
>
> Use add_custom_command(TA
Aaron Turner wrote:
Basically, I'm looking for a way to create a new make target
"test_standard" and associate create_custom_target()'s to it.
I assume you mean add_custom_target.
Suggestions?
Use add_custom_command(TARGET test_standard [...]) (and also
add_dependencies as needed)? What do
No, this isn't create_custom_target- this is a generic target
(non-executable) that should only be built when the user specifies it
explicitly.
Basically, I have a bunch of unit tests (which want to convert to
CTest framework). Each of these tests executes a command and compares
it's output to a