# HG changeset patch # User Alpar Juttner # Date 1285510653 -7200 # Node ID 10242c6111900376d7d913923eaf94f61b13d05c # Parent 1937b6455b7d0cff4f1e21bdd7c5a66b4c1af1cf Create and install lemon.pc (#393) diff -r 1937b6455b7d -r 10242c611190 lemon/CMakeLists.txt --- a/lemon/CMakeLists.txt Wed Sep 22 09:38:23 2010 +0200 +++ b/lemon/CMakeLists.txt Sun Sep 26 16:17:33 2010 +0200 @@ -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 -r 1937b6455b7d -r 10242c611190 lemon/lemon.pc.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lemon/lemon.pc.cmake Sun Sep 26 16:17:33 2010 +0200 @@ -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}