Rev | Line | |
---|
[510] | 1 | INCLUDE_DIRECTORIES( |
---|
[549] | 2 | ${PROJECT_SOURCE_DIR} |
---|
[510] | 3 | ${PROJECT_BINARY_DIR} |
---|
| 4 | ) |
---|
| 5 | |
---|
| 6 | CONFIGURE_FILE( |
---|
| 7 | ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake |
---|
| 8 | ${CMAKE_CURRENT_BINARY_DIR}/config.h |
---|
| 9 | ) |
---|
[225] | 10 | |
---|
[473] | 11 | SET(LEMON_SOURCES |
---|
[225] | 12 | arg_parser.cc |
---|
| 13 | base.cc |
---|
| 14 | color.cc |
---|
[473] | 15 | lp_base.cc |
---|
| 16 | lp_skeleton.cc |
---|
[491] | 17 | random.cc |
---|
| 18 | bits/windows.cc |
---|
| 19 | ) |
---|
[225] | 20 | |
---|
[627] | 21 | IF(LEMON_HAVE_GLPK) |
---|
[473] | 22 | SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) |
---|
[619] | 23 | INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) |
---|
[474] | 24 | IF(WIN32) |
---|
| 25 | INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) |
---|
| 26 | INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) |
---|
| 27 | INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) |
---|
| 28 | ENDIF(WIN32) |
---|
[627] | 29 | ENDIF(LEMON_HAVE_GLPK) |
---|
[473] | 30 | |
---|
[627] | 31 | IF(LEMON_HAVE_CPLEX) |
---|
[620] | 32 | SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) |
---|
| 33 | INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) |
---|
[627] | 34 | ENDIF(LEMON_HAVE_CPLEX) |
---|
[620] | 35 | |
---|
[627] | 36 | IF(LEMON_HAVE_CLP) |
---|
[621] | 37 | SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) |
---|
| 38 | INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
---|
[627] | 39 | ENDIF(LEMON_HAVE_CLP) |
---|
[621] | 40 | |
---|
[627] | 41 | IF(LEMON_HAVE_CBC) |
---|
[621] | 42 | SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) |
---|
| 43 | INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) |
---|
[627] | 44 | ENDIF(LEMON_HAVE_CBC) |
---|
[621] | 45 | |
---|
[473] | 46 | ADD_LIBRARY(lemon ${LEMON_SOURCES}) |
---|
[675] | 47 | IF(UNIX) |
---|
| 48 | SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) |
---|
| 49 | ENDIF(UNIX) |
---|
[473] | 50 | |
---|
[225] | 51 | INSTALL( |
---|
| 52 | TARGETS lemon |
---|
| 53 | ARCHIVE DESTINATION lib |
---|
[675] | 54 | COMPONENT library |
---|
| 55 | ) |
---|
[225] | 56 | |
---|
| 57 | INSTALL( |
---|
| 58 | DIRECTORY . bits concepts |
---|
| 59 | DESTINATION include/lemon |
---|
| 60 | COMPONENT headers |
---|
[675] | 61 | FILES_MATCHING PATTERN "*.h" |
---|
| 62 | ) |
---|
[510] | 63 | |
---|
| 64 | INSTALL( |
---|
| 65 | FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h |
---|
| 66 | DESTINATION include/lemon |
---|
[675] | 67 | COMPONENT headers |
---|
| 68 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.