gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Create and install lemon.pc (#393)
0 1 1
default
2 files changed with 22 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 8 line context
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}
Ignore white space 6 line context
... ...
@@ -7,8 +7,14 @@
7 7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
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
14 20
  color.cc
... ...
@@ -65,4 +71,10 @@
65 71
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
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

	
0 comments (0 inline)