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
Note that this command assumes cppad.pc is in the search path PKG_CONFIG_PATH. If ipopt_prefix is specified, the necessary flags for linking cppad_ipopt can be obtained with the commands
 
     pkg-config --libs cppad
Note that this command assumes ipopt.pc is in the search path PKG_CONFIG_PATH.

Defined Fields
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 If ipopt_prefix is specified, the necessary flags for using the cppad_ipopt library
Requires If ipopt_prefix is specified, the packages required to use the cppad_ipopt library

CppAD Configuration Files
In the table below, builddir is the build directory; i.e., the directory where the CppAD cmake command is executed. The directory prefix is the value of cppad_prefix during configuration. The directory datadir is the value of cmake_install_datadir . The following configuration files contain the information above
File Description
prefix/datadir/pkgconfig/cppad.pc for use after make install
builddir/pkgconfig/cppad-uninstalled.pc for testing before make install

Input File: omh/install/pkgconfig.omh