# 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
|
|
8 | 8 | ${CMAKE_CURRENT_BINARY_DIR}/config.h |
9 | 9 | ) |
10 | 10 | |
| 11 | CONFIGURE_FILE( |
| 12 | ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake |
| 13 | ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
| 14 | @ONLY |
| 15 | ) |
| 16 | |
11 | 17 | SET(LEMON_SOURCES |
12 | 18 | arg_parser.cc |
13 | 19 | base.cc |
… |
… |
|
66 | 72 | DESTINATION include/lemon |
67 | 73 | COMPONENT headers |
68 | 74 | ) |
| 75 | |
| 76 | INSTALL( |
| 77 | FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
| 78 | DESTINATION lib/pkgconfig |
| 79 | ) |
| 80 | |
diff --git a/lemon/lemon.pc.cmake b/lemon/lemon.pc.cmake
new file mode 100644
-
|
+
|
|
| 1 | prefix=@CMAKE_INSTALL_PREFIX@ |
| 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@/bin |
| 3 | libdir=@CMAKE_INSTALL_PREFIX@/lib |
| 4 | includedir=@CMAKE_INSTALL_PREFIX@/include |
| 5 | |
| 6 | Name: @PROJECT_NAME@ |
| 7 | Description: Library for Efficient Modeling and Optimization in Networks |
| 8 | Version: @PROJECT_VERSION@ |
| 9 | Libs: -L${libdir} -lemon @GLPK_LIBS@ @CPLEX_LIBS@ @SOPLEX_LIBS@ @CLP_LIBS@ @CBC_LIBS@ |
| 10 | Cflags: -I${includedir} |