pkgconfig

View page source

CppAD pkg-config Files

Purpose

The pkg-config program helps with the used if installed libraries and include files; see its guide for more information on writing an using pkg-config files.

cppad.pc

PKG_CONFIG_PATH

The cppad.pc file is installed in the following two directories:

      prefix / libdir / pkgconfig
      prefix / datadir / pkgconfig

where prefix is cppad_prefix , libdir is the first entry in cmake_install_libdirs , and # datadir is cmake_install_datadir . In order to use pkg-config , one of these directories must your PKG_CONFIG_PATH .

Compile Flags

The necessary flags for compiling code that includes CppAD can be obtained with the command

pkg-config --cflags cppad

Extra Definitions

The cppad.pc file contains the text:

      prefix = prefix
      exec_prefix = exec_prefix
      includedir = includedir
      libdir = libdir

where prefix , exec_prefix , includedir , and libdir are the gnu installation variables.

cppad-uninstalled.pc

PKG_CONFIG_PATH

The cppad-uninstalled.pc file is located in the following directory:

builddir / pkgconfig

where builddir is the directory where the cmake command is executed.

Compile Flags

The necessary flags for compiling code that includes CppAD, before CppAD is installed, can be obtained with the command

pkg-config --cflags cppad-uninstalled

Extra Definitions

The cppad-uninstalled.pc file has the same extra variables as the cppad.pc file.