Create and install lemon.pc (#393)
authorAlpar Juttner <alpar@cs.elte.hu>
Sun, 26 Sep 2010 16:17:33 +0200
changeset 90810242c611190
parent 907 1937b6455b7d
child 909 48e29534cf03
Create and install lemon.pc (#393)
lemon/CMakeLists.txt
lemon/lemon.pc.cmake
     1.1 --- a/lemon/CMakeLists.txt	Wed Sep 22 09:38:23 2010 +0200
     1.2 +++ b/lemon/CMakeLists.txt	Sun Sep 26 16:17:33 2010 +0200
     1.3 @@ -8,6 +8,12 @@
     1.4    ${CMAKE_CURRENT_BINARY_DIR}/config.h
     1.5  )
     1.6  
     1.7 +CONFIGURE_FILE(
     1.8 +  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
     1.9 +  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
    1.10 +  @ONLY
    1.11 +)
    1.12 +
    1.13  SET(LEMON_SOURCES
    1.14    arg_parser.cc
    1.15    base.cc
    1.16 @@ -66,3 +72,9 @@
    1.17    DESTINATION include/lemon
    1.18    COMPONENT headers
    1.19  )
    1.20 +
    1.21 +INSTALL(
    1.22 +  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
    1.23 +  DESTINATION lib/pkgconfig
    1.24 +)
    1.25 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lemon/lemon.pc.cmake	Sun Sep 26 16:17:33 2010 +0200
     2.3 @@ -0,0 +1,10 @@
     2.4 +prefix=@CMAKE_INSTALL_PREFIX@
     2.5 +exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
     2.6 +libdir=@CMAKE_INSTALL_PREFIX@/lib
     2.7 +includedir=@CMAKE_INSTALL_PREFIX@/include
     2.8 +
     2.9 +Name: @PROJECT_NAME@
    2.10 +Description: Library for Efficient Modeling and Optimization in Networks
    2.11 +Version: @PROJECT_VERSION@
    2.12 +Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@
    2.13 +Cflags: -I${includedir}