WIthout adding a bunch of custom addtions, is there something I can
test to see if a target is already defined?

What I would like is although this whole project tree can build, I
really want to build sub-projects.  That is I have say 15
applications, all sharing a common 15 or so libraries (probably more,
maybe less), and I want to have each library include it's parts with
(often) out-of-source references on the add_subdirectory().  ALthough,
if I do specify to build the whole tree, then without testing somehow
if targets are defined already, so I don't re-process what's already
done for this build tree, multiple definintions end up happening.

example case


if( ? )

PROJECT( xyzz )
add_library( ${PROJECT_NAME} source.c )

endif()

is there something that will result from just the above code that I
can use to test for?
_______________________________________________
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