On Feb 18, 2008 3:34 PM, Fernando Cacciola <[EMAIL PROTECTED]> wrote:
>
> XXXConfig.cmake should ...
>
> FindXXX.cmake shoud ...
>
> UseXXX.cmake should set include directories, libraries, compiler and linker
> flags, etc, based on the settings defined in a XXXConfig.cmake that must has
> been processed already.

I've yet to use any of the current UseXXX modules.  I looked at the
source for one of them.  All they're doing aside from the usual
FindXXX stuff is defining some macros, which you can choose to call or
not call.  I don't see a point in breaking all this functionality up
into 3 different include files.  1 is fine; you choose to call
whatever macros you want to call.

> XXX users would load XXX in their own programs via:
>
>
> find_package(XXX)
>
> if ( XXX_FOUND )
>
>   include( ${XXX_USE_FILE} )
>
> endif()

What's wrong with:

include(findXXX)
if(XXX_FOUND)
  someXXX_macro(whatever)
endif(XXX_FOUND)


Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to