COIN-OR::LEMON - Graph Library

Ticket #393: 10242c611190.patch

File 10242c611190.patch, 1.2 KB (added by Alpar Juttner, 11 years ago)
  • lemon/CMakeLists.txt

    # HG changeset patch
    # User Alpar Juttner <alpar@cs.elte.hu>
    # Date 1285510653 -7200
    # Node ID 10242c6111900376d7d913923eaf94f61b13d05c
    # Parent  1937b6455b7d0cff4f1e21bdd7c5a66b4c1af1cf
    Create and install lemon.pc (#393)
    
    diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
    a b  
    88  ${CMAKE_CURRENT_BINARY_DIR}/config.h
    99)
    1010
     11CONFIGURE_FILE(
     12  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
     13  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
     14  @ONLY
     15)
     16
    1117SET(LEMON_SOURCES
    1218  arg_parser.cc
    1319  base.cc
     
    6672  DESTINATION include/lemon
    6773  COMPONENT headers
    6874)
     75
     76INSTALL(
     77  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
     78  DESTINATION lib/pkgconfig
     79)
     80
  • new file lemon/lemon.pc.cmake

    diff --git a/lemon/lemon.pc.cmake b/lemon/lemon.pc.cmake
    new file mode 100644
    - +  
     1prefix=@CMAKE_INSTALL_PREFIX@
     2exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
     3libdir=@CMAKE_INSTALL_PREFIX@/lib
     4includedir=@CMAKE_INSTALL_PREFIX@/include
     5
     6Name: @PROJECT_NAME@
     7Description: Library for Efficient Modeling and Optimization in Networks
     8Version: @PROJECT_VERSION@
     9Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@
     10Cflags: -I${includedir}