ladanyi@473: INCLUDE_DIRECTORIES( ladanyi@549: ${PROJECT_SOURCE_DIR} ladanyi@549: ${PROJECT_BINARY_DIR} ladanyi@473: ) alpar@225: ladanyi@473: CONFIGURE_FILE( ladanyi@473: ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ladanyi@473: ${CMAKE_CURRENT_BINARY_DIR}/config.h ladanyi@473: ) ladanyi@473: ladanyi@473: SET(LEMON_SOURCES alpar@225: arg_parser.cc alpar@225: base.cc alpar@225: color.cc ladanyi@473: lp_base.cc ladanyi@473: lp_skeleton.cc alpar@482: random.cc alpar@482: bits/windows.cc alpar@482: ) alpar@225: ladanyi@473: IF(HAVE_GLPK) ladanyi@473: SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) ladanyi@619: INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) ladanyi@475: IF(WIN32) ladanyi@475: INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) ladanyi@475: INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) ladanyi@475: INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) ladanyi@475: ENDIF(WIN32) ladanyi@473: ENDIF(HAVE_GLPK) ladanyi@473: ladanyi@620: IF(HAVE_CPLEX) ladanyi@620: SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) ladanyi@620: INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) ladanyi@620: ENDIF(HAVE_CPLEX) ladanyi@620: ladanyi@621: IF(HAVE_CLP) ladanyi@621: SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) ladanyi@621: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@621: ENDIF(HAVE_CLP) ladanyi@621: ladanyi@621: IF(HAVE_CBC) ladanyi@621: SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) ladanyi@621: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@621: ENDIF(HAVE_CBC) ladanyi@621: ladanyi@473: ADD_LIBRARY(lemon ${LEMON_SOURCES}) ladanyi@473: alpar@225: INSTALL( alpar@225: TARGETS lemon alpar@225: ARCHIVE DESTINATION lib alpar@225: COMPONENT library) alpar@225: alpar@225: INSTALL( alpar@225: DIRECTORY . bits concepts alpar@225: DESTINATION include/lemon alpar@225: COMPONENT headers alpar@225: FILES_MATCHING PATTERN "*.h")