[cmake-developers] [CMake 0011446]: cmake should generate .pc file
Mantis Bug Tracker
mantis at public.kitware.com
Thu Nov 11 11:47:45 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=11446
======================================================================
Reported By: lesmana
Assigned To:
======================================================================
Project: CMake
Issue ID: 11446
Category: CMake
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-11-11 11:47 EST
Last Modified: 2010-11-11 11:47 EST
======================================================================
Summary: cmake should generate .pc file
Description:
or alternatively: cmake should generate makefiles which generates a .pc
file
i will try to explain the idea using VTK as example. suppose i have
downloaded and build VTK in the directory ~/VTK-build. i have my own little
project which is using VTK. now the problem is: how do i get the CXXFLAGS
and LDFLAGS for my project to compile using VTK in ~/VTK-build.
if i use cmake for my project i can use:
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
if i can't or won't use cmake, i could use the pkg-config command to fetch
the CXXFLAGS and LDFLAGS from the prepared .pc file.
read here for more:
http://en.wikipedia.org/wiki/Pkg-config
http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/index.html
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-11 11:47 lesmana New Issue
======================================================================
More information about the cmake-developers
mailing list