ladanyi@510: INCLUDE_DIRECTORIES( ladanyi@549: ${PROJECT_SOURCE_DIR} ladanyi@510: ${PROJECT_BINARY_DIR} ladanyi@510: ) ladanyi@510: ladanyi@510: CONFIGURE_FILE( alpar@981: ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ladanyi@510: ${CMAKE_CURRENT_BINARY_DIR}/config.h ladanyi@510: ) alpar@225: alpar@908: CONFIGURE_FILE( alpar@981: ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.in alpar@908: ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc alpar@908: @ONLY alpar@908: ) alpar@908: 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@491: random.cc alpar@491: bits/windows.cc alpar@491: ) alpar@225: ladanyi@627: IF(LEMON_HAVE_GLPK) ladanyi@473: SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) ladanyi@619: INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS}) ladanyi@474: IF(WIN32) ladanyi@474: INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin) ladanyi@474: INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin) ladanyi@474: INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin) ladanyi@679: ENDIF() ladanyi@679: ENDIF() ladanyi@473: ladanyi@627: IF(LEMON_HAVE_CPLEX) ladanyi@620: SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) alpar@1062: INCLUDE_DIRECTORIES(${ILOG_INCLUDE_DIRS}) ladanyi@679: ENDIF() ladanyi@620: ladanyi@627: IF(LEMON_HAVE_CLP) ladanyi@621: SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) ladanyi@621: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@679: ENDIF() ladanyi@621: ladanyi@627: IF(LEMON_HAVE_CBC) ladanyi@621: SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) ladanyi@621: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@679: ENDIF() ladanyi@621: alpar@1088: IF(LEMON_HAVE_SOPLEX) alpar@1088: SET(LEMON_SOURCES ${LEMON_SOURCES} soplex.cc) alpar@1088: INCLUDE_DIRECTORIES(${SOPLEX_INCLUDE_DIRS}) alpar@1088: ENDIF() alpar@1088: ladanyi@473: ADD_LIBRARY(lemon ${LEMON_SOURCES}) alpar@1116: alpar@1116: TARGET_LINK_LIBRARIES(lemon alpar@1116: ${GLPK_LIBRARIES} ${COIN_LIBRARIES} ${ILOG_LIBRARIES} ${SOPLEX_LIBRARIES} alpar@1116: ) alpar@1116: ladanyi@675: IF(UNIX) alpar@1115: SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon VERSION ${LEMON_VERSION} SOVERSION ${LEMON_VERSION}) ladanyi@679: ENDIF() ladanyi@473: alpar@225: INSTALL( alpar@225: TARGETS lemon alpar@225: ARCHIVE DESTINATION lib alpar@968: LIBRARY DESTINATION lib ladanyi@675: COMPONENT library ladanyi@675: ) alpar@225: alpar@225: INSTALL( alpar@225: DIRECTORY . bits concepts alpar@225: DESTINATION include/lemon alpar@225: COMPONENT headers ladanyi@675: FILES_MATCHING PATTERN "*.h" ladanyi@675: ) ladanyi@510: ladanyi@510: INSTALL( ladanyi@510: FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h ladanyi@510: DESTINATION include/lemon ladanyi@675: COMPONENT headers ladanyi@675: ) alpar@908: alpar@908: INSTALL( alpar@908: FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc alpar@908: DESTINATION lib/pkgconfig alpar@908: ) alpar@908: