trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-devel] cmake options

From: Serghei Amelian <serghei@...>
Date: Sat, 7 Jan 2012 11:42:26 +0200
On Saturday 07 January 2012 06:12:51 Fat-Zer wrote:
> 2012/1/7 Darrell Anderson <humanreadable@...>
>
> > Hmm. Same problem is going to happen with several other packages, such as
> > amarok. In amarok there is a -DWITH_MP4V2 option, but I need to ensure
> > cmake finds the header files in /usr/include/mp4v2 and not in
> > /usr/include/mp4. I can use the -DINCLUDE_DIRECTORIES option, but seems
> > cmake should be configured to look in that directory automatically. How
> > do I revise the cmake files to look there automatically?
>
> Just add this to ConfigureChecks.cmake:
>
> if( WITH_SPEEX )
>   pkg_search_module( SPEEX speex )
>   if( NOT SPEEX_FOUND )
>     tde_message_fatal( "speex is required, but was not found on your
> system" )
>   endif( NOT SPEEX_FOUND )
> endif( WITH_SPEEX )
>
> # haven't tested but should work.
> # and check the name of speex *.pc file in /usr/lib/pkgconfig.

This check is already exists in 
kdenetwork/kopete/protocols/jabber/jingle/libjingle/talk/ConfigureChecks.cmake

-- 
Serghei