automoc4 from kdesupport now supported for building KDE

Brad King brad.king at kitware.com
Tue Jun 3 19:28:00 CEST 2008


David Faure wrote:
> On Tuesday 03 June 2008, Alexander Neundorf wrote:
>> P.S. the issue here is that I try to find a file which is not a library in a 
>> subdir of the lib dirs, so FIND_LIBRARY() would be a good candidate, but 
>> since it automatically adds prefixes and suffixes ("lib" and ".so") that 
>> doesn't work, so FIND_FILE() has to be used instead, and all paths where 
>> FIND_LIBRARY() would search are added explicitely.
>> Maybe it would be easier to just use FIND_PROGRAM(automoc4) and then 
>> check ../lib/automoc/ for the Automoc4Config.cmake file ?
> 
> Not really, since ../lib can be ../lib64 or ../lib32, and in theory one doesn't have to
> set things up that way at all...

Finding lib/automoc4/Automoc4Config.cmake is the exact purpose of
find_package().  The CMake 2.6 version is *much* more powerful than 2.4
and completely solves the problem.  Please make sure that
Automoc4Config.cmake is installed in a way that will work with
find_package so that when CMake 2.6 is required it doesn't have to move.

-Brad


More information about the Kde-buildsystem mailing list