Prev Next pkgconfig

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
CppAD pkg-config Files

Purpose
The pkg-config package helps with the use of installed libraries; see its guide for more information.

Usage
The necessary flags for compiling code that includes CppAD can be obtained with the command
 
    pkg-config --cflags cppad
The flags for linking can be obtains with the command
 
    pkg-config --libs cppad
Note that this command assumes cppad.pc is in the search path PKG_CONFIG_PATH.

Defined Fields
The pkg-config files cppad.pc and cppad-uninstalled.pc contain the following information:
Name A human-readable name for the CppAD package.
Description A brief description of the CppAD package.
URL A URL where people can get more information about the CppAD package.
Version A string specifically defining the version of the CppAD package.
Cflags The necessary flags for using any of the CppAD include files.
Libs The flags necessary for linking programs that use CppAD include files.
Requires If ipopt_prefix is specified, the packages required to use the cppad_ipopt library.

CppAD Configuration Paths
The location of cppad.pc and cppad-uninstalled.pc are given below. Note that cppad.pc is placed in two locations.
Path Description
builddir directory where the cmake command is executed.
prefix value of cppad_prefix during configuration.
datadir value of cmake_install_datadir .
libdir first directory in cmake_install_libdirs .
builddir/pkgconfig/cppad-uninstalled.pc for testing before make install
prefix/datadir/pkgconfig/cppad.pc for use after make install
prefix/libdir/pkgconfig/cppad.pc

Input File: omh/install/pkgconfig.omh