This package seems to have a really easy way of creating a pkg-config file from CMake:
http://plplot.sourceforge.net/ Garth -------- Forwarded Message -------- > From: nore...@launchpad.net > Reply-to: nore...@launchpad.net > To: Garth Wells <gn...@cam.ac.uk> > Subject: [Branch ~dolfin-core/dolfin/main] Rev 4918: Initial attempt > at generating pkg-config file dolfin.pc. Need to figure out how to set > Libs and C... > Date: Tue, 10 Aug 2010 07:08:23 -0000 > > ------------------------------------------------------------ > revno: 4918 > committer: Johannes Ring <joha...@simula.no> > branch nick: dolfin > timestamp: Tue 2010-08-10 09:05:07 +0200 > message: > Initial attempt at generating pkg-config file dolfin.pc. Need to figure out > how to set Libs and Cflags. > added: > dolfin/dolfin.pc.cmake.in > modified: > dolfin/CMakeLists.txt > > > -- > lp:dolfin > https://code.launchpad.net/~dolfin-core/dolfin/main > > Your team DOLFIN Core Team is subscribed to branch lp:dolfin. > To unsubscribe from this branch go to > https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription > differences between files attachment (revision-diff.txt) > === modified file 'dolfin/CMakeLists.txt' > --- dolfin/CMakeLists.txt 2010-08-09 19:49:59 +0000 > +++ dolfin/CMakeLists.txt 2010-08-10 07:05:07 +0000 > @@ -85,3 +85,11 @@ > ) > > add_subdirectory(swig) > + > +# Generate and install pkg-config file > +set(PACKAGE_REQUIRES "ufc-1 libxml-2.0") > +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dolfin.pc.cmake.in" > "${CMAKE_CURRENT_BINARY_DIR}/dolfin.pc" @ONLY) > +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dolfin.pc" > + DESTINATION ${DOLFIN_LIB_DIR}/pkgconfig > + COMPONENT Development > + ) > > === added file 'dolfin/dolfin.pc.cmake.in' > --- dolfin/dolfin.pc.cmake.in 1970-01-01 00:00:00 +0000 > +++ dolfin/dolfin.pc.cmake.in 2010-08-10 07:05:07 +0000 > @@ -0,0 +1,17 @@ > +# pkg-config configuration for DOLFIN > +pref...@cmake_install_prefix@ > +exec_pref...@cmake_install_prefix@ > +libdir=${exec_prefix}/lib > +includedir=${prefix}/include > +compil...@cmake_cxx_compiler@ > +definitio...@dolfin_definitions@ > +swigcfla...@python_cppflags@ > +extli...@dolfin_ext_libs@ > + > +Name: DOLFIN > +Description: Dynamic Object-oriented Library for FINite element computation > +Version: @DOLFIN_VERSION@ > +Requires: @PACKAGE_REQUIRES@ > +Conflicts: > +Libs: @PACKAGE_LINKFLAGS@ -L${libdir} -ldolfin > +Cflags: @PACKAGE_CXXFLAGS@ -I${includedir} >
=== modified file 'dolfin/CMakeLists.txt' --- dolfin/CMakeLists.txt 2010-08-09 19:49:59 +0000 +++ dolfin/CMakeLists.txt 2010-08-10 07:05:07 +0000 @@ -85,3 +85,11 @@ ) add_subdirectory(swig) + +# Generate and install pkg-config file +set(PACKAGE_REQUIRES "ufc-1 libxml-2.0") +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dolfin.pc.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/dolfin.pc" @ONLY) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dolfin.pc" + DESTINATION ${DOLFIN_LIB_DIR}/pkgconfig + COMPONENT Development + ) === added file 'dolfin/dolfin.pc.cmake.in' --- dolfin/dolfin.pc.cmake.in 1970-01-01 00:00:00 +0000 +++ dolfin/dolfin.pc.cmake.in 2010-08-10 07:05:07 +0000 @@ -0,0 +1,17 @@ +# pkg-config configuration for DOLFIN +pref...@cmake_install_prefix@ +exec_pref...@cmake_install_prefix@ +libdir=${exec_prefix}/lib +includedir=${prefix}/include +compil...@cmake_cxx_compiler@ +definitio...@dolfin_definitions@ +swigcfla...@python_cppflags@ +extli...@dolfin_ext_libs@ + +Name: DOLFIN +Description: Dynamic Object-oriented Library for FINite element computation +Version: @DOLFIN_VERSION@ +Requires: @PACKAGE_REQUIRES@ +Conflicts: +Libs: @PACKAGE_LINKFLAGS@ -L${libdir} -ldolfin +Cflags: @PACKAGE_CXXFLAGS@ -I${includedir}
_______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp