Re: [CMake] Fwd: how do I test if a library target is static or shared?

2008-09-23 Thread Aleksander Demko
I think in the end I'll replace my ADD_SUBDIRECTORY+macros[1] method for a simpler INCLUDE based ones. The INCLUDE based one isn't ideal (and really, it seems like an abuse of INCLUDE for something ADD_SUBDIRECTORY or EXPORT should do), but its less code and more natural to cmake users. Thanks for

Re: [CMake] Fwd: how do I test if a library target is static or shared?

2008-09-23 Thread Mike Jackson
That is basically what I do. Until someone tells me a better way. Take a look at the following link: http://www.bluequartz.net/viewvc/CTMD/MXATools/CMakeLists.txt?view=markup for an example of how I am doing things. mike Aleksander Demko wrote: I guess I'm looking for a way to automaticall

[CMake] Fwd: how do I test if a library target is static or shared?

2008-09-23 Thread Aleksander Demko
I guess I'm looking for a way to automatically "relay" information between the main project B and one or more library projects A, etc. My projects tend to involve lots of sub libraries, so I need a way for this to work in a scalable manner. If I try to simply INCLUDE A in B, then all the relative