lemon/CMakeLists.txt
changeset 805 d3e32a777d0b
parent 675 c5dc4d3124aa
child 908 10242c611190
equal deleted inserted replaced
14:66eeb9538be0 15:87014a11b1cb
    23   INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
    23   INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
    24   IF(WIN32)
    24   IF(WIN32)
    25     INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
    25     INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
    26     INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
    26     INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
    27     INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
    27     INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
    28   ENDIF(WIN32)
    28   ENDIF()
    29 ENDIF(LEMON_HAVE_GLPK)
    29 ENDIF()
    30 
    30 
    31 IF(LEMON_HAVE_CPLEX)
    31 IF(LEMON_HAVE_CPLEX)
    32   SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
    32   SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
    33   INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
    33   INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
    34 ENDIF(LEMON_HAVE_CPLEX)
    34 ENDIF()
    35 
    35 
    36 IF(LEMON_HAVE_CLP)
    36 IF(LEMON_HAVE_CLP)
    37   SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
    37   SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
    38   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    38   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    39 ENDIF(LEMON_HAVE_CLP)
    39 ENDIF()
    40 
    40 
    41 IF(LEMON_HAVE_CBC)
    41 IF(LEMON_HAVE_CBC)
    42   SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
    42   SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
    43   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    43   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    44 ENDIF(LEMON_HAVE_CBC)
    44 ENDIF()
    45 
    45 
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    47 IF(UNIX)
    47 IF(UNIX)
    48   SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
    48   SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
    49 ENDIF(UNIX)
    49 ENDIF()
    50 
    50 
    51 INSTALL(
    51 INSTALL(
    52   TARGETS lemon
    52   TARGETS lemon
    53   ARCHIVE DESTINATION lib
    53   ARCHIVE DESTINATION lib
    54   COMPONENT library
    54   COMPONENT library