ladanyi@620: INCLUDE_DIRECTORIES( ladanyi@538: ${PROJECT_SOURCE_DIR} ladanyi@620: ${PROJECT_BINARY_DIR} ladanyi@620: ) ladanyi@620: ladanyi@620: CONFIGURE_FILE( ladanyi@620: ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ladanyi@620: ${CMAKE_CURRENT_BINARY_DIR}/config.h ladanyi@620: ) alpar@225: alpar@742: CONFIGURE_FILE( alpar@742: ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake alpar@742: ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc alpar@742: @ONLY alpar@742: ) alpar@742: 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@622: IF(LEMON_HAVE_GLPK) ladanyi@473: SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc) ladanyi@611: 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@681: ENDIF() ladanyi@681: ENDIF() ladanyi@473: ladanyi@622: IF(LEMON_HAVE_CPLEX) ladanyi@612: SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc) ladanyi@612: INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS}) ladanyi@681: ENDIF() ladanyi@612: ladanyi@622: IF(LEMON_HAVE_CLP) ladanyi@613: SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc) ladanyi@613: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@681: ENDIF() ladanyi@613: ladanyi@622: IF(LEMON_HAVE_CBC) ladanyi@613: SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc) ladanyi@613: INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS}) ladanyi@681: ENDIF() ladanyi@613: ladanyi@473: ADD_LIBRARY(lemon ${LEMON_SOURCES}) ladanyi@677: IF(UNIX) ladanyi@677: SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon) ladanyi@681: ENDIF() ladanyi@473: alpar@225: INSTALL( alpar@225: TARGETS lemon alpar@225: ARCHIVE DESTINATION lib ladanyi@677: COMPONENT library ladanyi@677: ) alpar@225: alpar@225: INSTALL( alpar@225: DIRECTORY . bits concepts alpar@225: DESTINATION include/lemon alpar@225: COMPONENT headers ladanyi@677: FILES_MATCHING PATTERN "*.h" ladanyi@677: ) ladanyi@620: ladanyi@620: INSTALL( ladanyi@620: FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h ladanyi@620: DESTINATION include/lemon ladanyi@677: COMPONENT headers ladanyi@677: ) alpar@742: alpar@742: INSTALL( alpar@742: FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc alpar@742: DESTINATION lib/pkgconfig alpar@742: ) alpar@742: