← Back to team overview

dolfin team mailing list archive

[Fwd: [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...]

 

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: noreply@xxxxxxxxxxxxx
> Reply-to: noreply@xxxxxxxxxxxxx
> To: Garth Wells <gnw20@xxxxxxxxx>
> 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 <johannr@xxxxxxxxx>
> 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
> +prefix=@CMAKE_INSTALL_PREFIX@
> +exec_prefix=@CMAKE_INSTALL_PREFIX@
> +libdir=${exec_prefix}/lib
> +includedir=${prefix}/include
> +compiler=@CMAKE_CXX_COMPILER@
> +definitions=@DOLFIN_DEFINITIONS@
> +swigcflags=@PYTHON_CPPFLAGS@ 
> +extlibs=@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
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+compiler=@CMAKE_CXX_COMPILER@
+definitions=@DOLFIN_DEFINITIONS@
+swigcflags=@PYTHON_CPPFLAGS@ 
+extlibs=@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}