[Lemon-commits] Alpar Juttner: Create and install lemon.pc (#393)

Lemon HG hg at lemon.cs.elte.hu
Sun Nov 14 15:25:56 CET 2010


details:   http://lemon.cs.elte.hu/hg/lemon/rev/10242c611190
changeset: 1012:10242c611190
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Sun Sep 26 16:17:33 2010 +0200
description:
	Create and install lemon.pc (#393)

diffstat:

 lemon/CMakeLists.txt |  12 ++++++++++++
 lemon/lemon.pc.cmake |  10 ++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)

diffs (41 lines):

diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
--- a/lemon/CMakeLists.txt
+++ b/lemon/CMakeLists.txt
@@ -8,6 +8,12 @@
   ${CMAKE_CURRENT_BINARY_DIR}/config.h
 )
 
+CONFIGURE_FILE(
+  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
+  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
+  @ONLY
+)
+
 SET(LEMON_SOURCES
   arg_parser.cc
   base.cc
@@ -66,3 +72,9 @@
   DESTINATION include/lemon
   COMPONENT headers
 )
+
+INSTALL(
+  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
+  DESTINATION lib/pkgconfig
+)
+
diff --git a/lemon/lemon.pc.cmake b/lemon/lemon.pc.cmake
new file mode 100644
--- /dev/null
+++ b/lemon/lemon.pc.cmake
@@ -0,0 +1,10 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
+libdir=@CMAKE_INSTALL_PREFIX@/lib
+includedir=@CMAKE_INSTALL_PREFIX@/include
+
+Name: @PROJECT_NAME@
+Description: Library for Efficient Modeling and Optimization in Networks
+Version: @PROJECT_VERSION@
+Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@
+Cflags: -I${includedir}



More information about the Lemon-commits mailing list