[Cmake] Using gtk-config to find pacakges

Amitha Perera perera at cs.rpi.edu
Wed Apr 23 16:17:15 EDT 2003


On Wed 23 Apr 2003, Andy Cedilnik wrote:
> Anyway, I think we should modify all Find(toolkit).cmake to use
> appropriate (toolkit)-config files. We do this for wxWindows and it
> works fine. There is no reason for it not to work. Maybe we could have a
> boolean:
> 
> IF(TOOLKIT_USE_CONFIG)
>   FIND_FILE(TOOLKIT_CONFIG toolkit-config /usr/bin...)
>   SET(TOOLKIT_LIBRARY ...)
> ELSE(
>   FIND_FILE(...)
> ENDIF(

Great. Thanks.

A minor point: the FindwxWindows.cmake is inconsistent with (some of)
the other FindXXX modules, in that it sets WXWINDOWS_LIBRARY instead
of WXWINDOWS_LIBRARIES, and sets something like CXX_FLAGS instead of
WXWINDOWS_DEFINITIONS.

Amitha.



More information about the CMake mailing list