author | Peter Kovacs <kpeter@inf.elte.hu> |
Wed, 29 Apr 2009 14:25:51 +0200 | |
changeset 641 | 756a5ec551c8 |
parent 620 | c3ce597c11ae |
child 627 | 20dac2104519 |
permissions | -rw-r--r-- |
ladanyi@473 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@549 | 2 |
${PROJECT_SOURCE_DIR} |
ladanyi@549 | 3 |
${PROJECT_BINARY_DIR} |
ladanyi@473 | 4 |
) |
alpar@225 | 5 |
|
ladanyi@473 | 6 |
CONFIGURE_FILE( |
ladanyi@473 | 7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
ladanyi@473 | 8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@473 | 9 |
) |
ladanyi@473 | 10 |
|
ladanyi@473 | 11 |
SET(LEMON_SOURCES |
alpar@225 | 12 |
arg_parser.cc |
alpar@225 | 13 |
base.cc |
alpar@225 | 14 |
color.cc |
ladanyi@473 | 15 |
lp_base.cc |
ladanyi@473 | 16 |
lp_skeleton.cc |
alpar@482 | 17 |
random.cc |
alpar@482 | 18 |
bits/windows.cc |
alpar@482 | 19 |
) |
alpar@225 | 20 |
|
ladanyi@473 | 21 |
IF(HAVE_GLPK) |
ladanyi@473 | 22 |
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
ladanyi@619 | 23 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
ladanyi@475 | 24 |
IF(WIN32) |
ladanyi@475 | 25 |
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
ladanyi@475 | 26 |
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
ladanyi@475 | 27 |
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
ladanyi@475 | 28 |
ENDIF(WIN32) |
ladanyi@473 | 29 |
ENDIF(HAVE_GLPK) |
ladanyi@473 | 30 |
|
ladanyi@620 | 31 |
IF(HAVE_CPLEX) |
ladanyi@620 | 32 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) |
ladanyi@620 | 33 |
INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) |
ladanyi@620 | 34 |
ENDIF(HAVE_CPLEX) |
ladanyi@620 | 35 |
|
ladanyi@621 | 36 |
IF(HAVE_CLP) |
ladanyi@621 | 37 |
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) |
ladanyi@621 | 38 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@621 | 39 |
ENDIF(HAVE_CLP) |
ladanyi@621 | 40 |
|
ladanyi@621 | 41 |
IF(HAVE_CBC) |
ladanyi@621 | 42 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) |
ladanyi@621 | 43 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@621 | 44 |
ENDIF(HAVE_CBC) |
ladanyi@621 | 45 |
|
ladanyi@473 | 46 |
ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
ladanyi@473 | 47 |
|
alpar@225 | 48 |
INSTALL( |
alpar@225 | 49 |
TARGETS lemon |
alpar@225 | 50 |
ARCHIVE DESTINATION lib |
alpar@225 | 51 |
COMPONENT library) |
alpar@225 | 52 |
|
alpar@225 | 53 |
INSTALL( |
alpar@225 | 54 |
DIRECTORY . bits concepts |
alpar@225 | 55 |
DESTINATION include/lemon |
alpar@225 | 56 |
COMPONENT headers |
alpar@225 | 57 |
FILES_MATCHING PATTERN "*.h") |