automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add convenience libraries to the include path


From: Bob Friesenhahn
Subject: Re: Add convenience libraries to the include path
Date: Wed, 21 May 2014 08:55:22 -0500 (CDT)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Wed, 21 May 2014, Zé wrote:

I'm refactoring a small C++ project and in the process I've migrated a component to a convenience library.

I would like to add the convenience library's root directory to the project's include path, but I haven't found any reference on how to do this. The closest I could find was adding ${srcdir} to the include path, but that doesn't sound right.

Does anyone know how to pull this off?

You can create/add definitions to AM_CPPFLAGS to specify where the C/C++ compiler should search for header files.

For example

AM_CPPFLAGS = -I$(top_srcdir)/my/convenience

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]