author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 13 Feb 2009 14:56:27 +0000 | |
changeset 486 | bc0a130bbb46 |
parent 473 | 17d918051964 |
child 492 | b9b3473327e3 |
permissions | -rw-r--r-- |
1 INCLUDE_DIRECTORIES(
2 ${CMAKE_SOURCE_DIR}
3 ${CMAKE_BINARY_DIR}
4 )
6 CONFIGURE_FILE(
7 ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
8 ${CMAKE_CURRENT_BINARY_DIR}/config.h
9 )
11 SET(LEMON_SOURCES
12 arg_parser.cc
13 base.cc
14 color.cc
15 lp_base.cc
16 lp_skeleton.cc
17 random.cc)
19 IF(HAVE_GLPK)
20 SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
21 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
22 IF(WIN32)
23 INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
24 INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
25 INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
26 ENDIF(WIN32)
27 ENDIF(HAVE_GLPK)
29 ADD_LIBRARY(lemon ${LEMON_SOURCES})
31 INSTALL(
32 TARGETS lemon
33 ARCHIVE DESTINATION lib
34 COMPONENT library)
36 INSTALL(
37 DIRECTORY . bits concepts
38 DESTINATION include/lemon
39 COMPONENT headers
40 FILES_MATCHING PATTERN "*.h")