On Wed, Feb 18, 2009 at 3:40 PM, Matthew Woehlke
<[email protected]> 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(TARGET test_standard [...]) (and also
> add_dependencies as needed)? What doesn't work?

>From the docs, it sounded like this only worked when adding commands
to existing targets, not for creating new ones.

My testing though seems to show that the correct usage is actually:

add_custom_command(foo ...)

if you use:

add_custom_command(TARGET foo ...)

then the target name (verified by 'make help') is called "TARGET", not "foo"

cmake 2.6-patch2

Should work though.   Thanks!

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little
temporary Safety,
deserve neither Liberty nor Safety.
    -- Benjamin Franklin
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to