author | Alpar Juttner <alpar@cs.elte.hu> |
Fri, 24 Aug 2012 15:37:23 +0200 | |
changeset 959 | 157427808b40 |
parent 904 | 16d466589b54 |
permissions | -rw-r--r-- |
ladanyi@499 | 1 |
INCLUDE_DIRECTORIES( |
ladanyi@549 | 2 |
${PROJECT_SOURCE_DIR} |
ladanyi@499 | 3 |
${PROJECT_BINARY_DIR} |
ladanyi@499 | 4 |
) |
ladanyi@499 | 5 |
|
ladanyi@499 | 6 |
CONFIGURE_FILE( |
ladanyi@499 | 7 |
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
ladanyi@499 | 8 |
${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@499 | 9 |
) |
alpar@225 | 10 |
|
alpar@904 | 11 |
CONFIGURE_FILE( |
alpar@904 | 12 |
${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake |
alpar@904 | 13 |
${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
alpar@904 | 14 |
@ONLY |
alpar@904 | 15 |
) |
alpar@904 | 16 |
|
ladanyi@473 | 17 |
SET(LEMON_SOURCES |
alpar@225 | 18 |
arg_parser.cc |
alpar@225 | 19 |
base.cc |
alpar@225 | 20 |
color.cc |
ladanyi@473 | 21 |
lp_base.cc |
ladanyi@473 | 22 |
lp_skeleton.cc |
alpar@482 | 23 |
random.cc |
alpar@482 | 24 |
bits/windows.cc |
alpar@482 | 25 |
) |
alpar@225 | 26 |
|
ladanyi@627 | 27 |
IF(LEMON_HAVE_GLPK) |
ladanyi@473 | 28 |
SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
ladanyi@619 | 29 |
INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
ladanyi@475 | 30 |
IF(WIN32) |
ladanyi@475 | 31 |
INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
ladanyi@475 | 32 |
INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
ladanyi@475 | 33 |
INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
ladanyi@679 | 34 |
ENDIF() |
ladanyi@679 | 35 |
ENDIF() |
ladanyi@473 | 36 |
|
ladanyi@627 | 37 |
IF(LEMON_HAVE_CPLEX) |
ladanyi@620 | 38 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) |
ladanyi@620 | 39 |
INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) |
ladanyi@679 | 40 |
ENDIF() |
ladanyi@620 | 41 |
|
ladanyi@627 | 42 |
IF(LEMON_HAVE_CLP) |
ladanyi@621 | 43 |
SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) |
ladanyi@621 | 44 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@679 | 45 |
ENDIF() |
ladanyi@621 | 46 |
|
ladanyi@627 | 47 |
IF(LEMON_HAVE_CBC) |
ladanyi@621 | 48 |
SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) |
ladanyi@621 | 49 |
INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
ladanyi@679 | 50 |
ENDIF() |
ladanyi@621 | 51 |
|
ladanyi@473 | 52 |
ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
ladanyi@675 | 53 |
IF(UNIX) |
ladanyi@675 | 54 |
SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) |
ladanyi@679 | 55 |
ENDIF() |
ladanyi@473 | 56 |
|
alpar@225 | 57 |
INSTALL( |
alpar@225 | 58 |
TARGETS lemon |
alpar@225 | 59 |
ARCHIVE DESTINATION lib |
alpar@946 | 60 |
LIBRARY DESTINATION lib |
ladanyi@675 | 61 |
COMPONENT library |
ladanyi@675 | 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@675 | 68 |
FILES_MATCHING PATTERN "*.h" |
ladanyi@675 | 69 |
) |
ladanyi@499 | 70 |
|
ladanyi@499 | 71 |
INSTALL( |
ladanyi@499 | 72 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
ladanyi@499 | 73 |
DESTINATION include/lemon |
ladanyi@675 | 74 |
COMPONENT headers |
ladanyi@675 | 75 |
) |
alpar@904 | 76 |
|
alpar@904 | 77 |
INSTALL( |
alpar@904 | 78 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc |
alpar@904 | 79 |
DESTINATION lib/pkgconfig |
alpar@904 | 80 |
) |
alpar@904 | 81 |