author | Akos Ladanyi <ladanyi@tmit.bme.hu> |
Mon, 27 Apr 2009 18:05:04 +0100 | |
changeset 637 | 4faa0c763906 |
parent 621 | b536eaacb39b |
parent 510 | d8ca76573eb3 |
child 675 | c5dc4d3124aa |
permissions | -rw-r--r-- |
ladanyi@510 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@549 | 2 |
${PROJECT_SOURCE_DIR} |
ladanyi@510 | 3 |
${PROJECT_BINARY_DIR} |
ladanyi@510 | 4 |
) |
ladanyi@510 | 5 |
|
ladanyi@510 | 6 |
CONFIGURE_FILE( |
ladanyi@510 | 7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
ladanyi@510 | 8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@510 | 9 |
) |
alpar@225 | 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@491 | 17 |
random.cc |
alpar@491 | 18 |
bits/windows.cc |
alpar@491 | 19 |
) |
alpar@225 | 20 |
|
ladanyi@627 | 21 |
IF(LEMON_HAVE_GLPK) |
ladanyi@473 | 22 |
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
ladanyi@619 | 23 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
ladanyi@474 | 24 |
IF(WIN32) |
ladanyi@474 | 25 |
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
ladanyi@474 | 26 |
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
ladanyi@474 | 27 |
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
ladanyi@474 | 28 |
ENDIF(WIN32) |
ladanyi@627 | 29 |
ENDIF(LEMON_HAVE_GLPK) |
ladanyi@473 | 30 |
|
ladanyi@627 | 31 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@620 | 32 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) |
ladanyi@620 | 33 |
INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) |
ladanyi@627 | 34 |
ENDIF(LEMON_HAVE_CPLEX) |
ladanyi@620 | 35 |
|
ladanyi@627 | 36 |
IF(LEMON_HAVE_CLP) |
ladanyi@621 | 37 |
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) |
ladanyi@621 | 38 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@627 | 39 |
ENDIF(LEMON_HAVE_CLP) |
ladanyi@621 | 40 |
|
ladanyi@627 | 41 |
IF(LEMON_HAVE_CBC) |
ladanyi@621 | 42 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) |
ladanyi@621 | 43 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@627 | 44 |
ENDIF(LEMON_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") |
ladanyi@510 | 58 |
|
ladanyi@510 | 59 |
INSTALL( |
ladanyi@510 | 60 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@510 | 61 |
DESTINATION include/lemon |
ladanyi@510 | 62 |
COMPONENT headers) |