where are compiler optiones in KDevelop4?

Andreas Pakulat apaku at gmx.de
Tue Oct 11 14:35:29 BST 2011


On 11.10.11 13:19:10, cgrima wrote:
> 
> 
> I am trying to program a simple application to control de volume with
> Alsa API. To do that, I need to use the library "libasound.os". 
> 
> If I
> compile with command like: 
> 
> g++ -lasound main.cpp 
> 
> ... it works
> perfectly. "-lasound" is for linking the libasound.os library. 
> 
> The
> question is: 
> 
> How can I set compiler options (like "-lasound") in
> KDevelop4? Or how can I link libraries easily (without using the
> CMakeLists.txt)? (for example, like in NetBeans... I click-right on the
> project name, and I select "add library") 

You can't, you'll have to do it by editing the cmake files.

Andreas





More information about the KDevelop mailing list