author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 09 Aug 2013 18:56:00 +0200 | |
branch | 1.3 |
changeset 1280 | fbdde70389da |
parent 1230 | caf16813b1e8 |
child 1314 | 9153e490f09c |
permissions | -rw-r--r-- |
ladanyi@539 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@596 | 2 |
${PROJECT_SOURCE_DIR} |
ladanyi@539 | 3 |
${PROJECT_BINARY_DIR} |
ladanyi@539 | 4 |
) |
ladanyi@539 | 5 |
|
ladanyi@539 | 6 |
CONFIGURE_FILE( |
alpar@1133 | 7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.in |
ladanyi@539 | 8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@539 | 9 |
) |
alpar@225 | 10 |
|
alpar@1012 | 11 |
CONFIGURE_FILE( |
alpar@1133 | 12 |
${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.in |
alpar@1012 | 13 |
${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
alpar@1012 | 14 |
@ONLY |
alpar@1012 | 15 |
) |
alpar@1012 | 16 |
|
ladanyi@496 | 17 |
SET(LEMON_SOURCES |
alpar@225 | 18 |
arg_parser.cc |
alpar@225 | 19 |
base.cc |
alpar@225 | 20 |
color.cc |
ladanyi@496 | 21 |
lp_base.cc |
ladanyi@496 | 22 |
lp_skeleton.cc |
alpar@511 | 23 |
random.cc |
alpar@511 | 24 |
bits/windows.cc |
alpar@511 | 25 |
) |
alpar@225 | 26 |
|
ladanyi@674 | 27 |
IF(LEMON_HAVE_GLPK) |
ladanyi@496 | 28 |
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
ladanyi@666 | 29 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
ladanyi@498 | 30 |
IF(WIN32) |
ladanyi@498 | 31 |
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
ladanyi@498 | 32 |
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
ladanyi@498 | 33 |
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
ladanyi@726 | 34 |
ENDIF() |
ladanyi@726 | 35 |
ENDIF() |
ladanyi@496 | 36 |
|
ladanyi@674 | 37 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@667 | 38 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) |
alpar@1230 | 39 |
INCLUDE_DIRECTORIES(${ILOG_INCLUDE_DIRS}) |
ladanyi@726 | 40 |
ENDIF() |
ladanyi@667 | 41 |
|
ladanyi@674 | 42 |
IF(LEMON_HAVE_CLP) |
ladanyi@668 | 43 |
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) |
ladanyi@668 | 44 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@726 | 45 |
ENDIF() |
ladanyi@668 | 46 |
|
ladanyi@674 | 47 |
IF(LEMON_HAVE_CBC) |
ladanyi@668 | 48 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) |
ladanyi@668 | 49 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@726 | 50 |
ENDIF() |
ladanyi@668 | 51 |
|
alpar@1264 | 52 |
IF(LEMON_HAVE_SOPLEX) |
alpar@1264 | 53 |
SET(LEMON_SOURCES ${LEMON_SOURCES} soplex.cc) |
alpar@1264 | 54 |
INCLUDE_DIRECTORIES(${SOPLEX_INCLUDE_DIRS}) |
alpar@1264 | 55 |
ENDIF() |
alpar@1264 | 56 |
|
ladanyi@496 | 57 |
ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
ladanyi@722 | 58 |
IF(UNIX) |
ladanyi@722 | 59 |
SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) |
ladanyi@726 | 60 |
ENDIF() |
ladanyi@496 | 61 |
|
alpar@225 | 62 |
INSTALL( |
alpar@225 | 63 |
TARGETS lemon |
alpar@225 | 64 |
ARCHIVE DESTINATION lib |
alpar@1113 | 65 |
LIBRARY DESTINATION lib |
ladanyi@722 | 66 |
COMPONENT library |
ladanyi@722 | 67 |
) |
alpar@225 | 68 |
|
alpar@225 | 69 |
INSTALL( |
alpar@225 | 70 |
DIRECTORY . bits concepts |
alpar@225 | 71 |
DESTINATION include/lemon |
alpar@225 | 72 |
COMPONENT headers |
ladanyi@722 | 73 |
FILES_MATCHING PATTERN "*.h" |
ladanyi@722 | 74 |
) |
ladanyi@539 | 75 |
|
ladanyi@539 | 76 |
INSTALL( |
ladanyi@539 | 77 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@539 | 78 |
DESTINATION include/lemon |
ladanyi@722 | 79 |
COMPONENT headers |
ladanyi@722 | 80 |
) |
alpar@1012 | 81 |
|
alpar@1012 | 82 |
INSTALL( |
alpar@1012 | 83 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
alpar@1012 | 84 |
DESTINATION lib/pkgconfig |
alpar@1012 | 85 |
) |
alpar@1012 | 86 |