Add a Module

Packages cannot be added directly to a program but have to be grouped in a module.

  1. Select a program in the project view, click on the right mouse button to make the project context menu appear, and select Add Library.

    Or from the main menu, select Project ▸ Add Library....

  2. On the Add Library dialog, click on the New Library button.

  3. You will get a list of all the packaged libraries installed on your system. You can check one or more libraries.

    If the library you want does not appear here:

    • Perhaps it is not installed on your system. Launch the application you use to install new programs and search for the library name. The package you need often has a "dev" or "devel" suffix and should include header files and a pkg-config file with a .pc extension.

    • It could be that the library is not packaged, it is often the case for libraries not developed on Linux. See the chapter Add a Custom Library explaining how to use them.

  4. After selecting one library, a module name will be automatically generated but you can change it. You can select an already existing module name to add a new library to it and to all targets already using it.

  5. When you are done, click on the Add button to create the new module with the selected libraries. You need to add a new module to at least one target to really use it.