author | Alpar Juttner <alpar@cs.elte.hu> |
Wed, 11 Jan 2012 13:58:30 +0100 | |
branch | 1.1 |
changeset 1121 | 1309a803a057 |
parent 1012 | 10242c611190 |
child 1133 | cdd2c7dad989 |
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( |
ladanyi@539 | 7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
ladanyi@539 | 8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@539 | 9 |
) |
alpar@225 | 10 |
|
alpar@1012 | 11 |
CONFIGURE_FILE( |
alpar@1012 | 12 |
${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake |
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) |
ladanyi@667 | 39 |
INCLUDE_DIRECTORIES(${CPLEX_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 |
|
ladanyi@496 | 52 |
ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
ladanyi@722 | 53 |
IF(UNIX) |
ladanyi@722 | 54 |
SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) |
ladanyi@726 | 55 |
ENDIF() |
ladanyi@496 | 56 |
|
alpar@225 | 57 |
INSTALL( |
alpar@225 | 58 |
TARGETS lemon |
alpar@225 | 59 |
ARCHIVE DESTINATION lib |
alpar@1113 | 60 |
LIBRARY DESTINATION lib |
ladanyi@722 | 61 |
COMPONENT library |
ladanyi@722 | 62 |
) |
alpar@225 | 63 |
|
alpar@225 | 64 |
INSTALL( |
alpar@225 | 65 |
DIRECTORY . bits concepts |
alpar@225 | 66 |
DESTINATION include/lemon |
alpar@225 | 67 |
COMPONENT headers |
ladanyi@722 | 68 |
FILES_MATCHING PATTERN "*.h" |
ladanyi@722 | 69 |
) |
ladanyi@539 | 70 |
|
ladanyi@539 | 71 |
INSTALL( |
ladanyi@539 | 72 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@539 | 73 |
DESTINATION include/lemon |
ladanyi@722 | 74 |
COMPONENT headers |
ladanyi@722 | 75 |
) |
alpar@1012 | 76 |
|
alpar@1012 | 77 |
INSTALL( |
alpar@1012 | 78 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
alpar@1012 | 79 |
DESTINATION lib/pkgconfig |
alpar@1012 | 80 |
) |
alpar@1012 | 81 |