lemon/CMakeLists.txt
changeset 653 682941948726
parent 621 b536eaacb39b
parent 499 d8ca76573eb3
child 675 c5dc4d3124aa
equal deleted inserted replaced
12:47f83cb354e5 13:48ec2f53aade
    16   lp_skeleton.cc
    16   lp_skeleton.cc
    17   random.cc
    17   random.cc
    18   bits/windows.cc
    18   bits/windows.cc
    19 )
    19 )
    20 
    20 
    21 IF(HAVE_GLPK)
    21 IF(LEMON_HAVE_GLPK)
    22   SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
    22   SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
    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(WIN32)
    29 ENDIF(HAVE_GLPK)
    29 ENDIF(LEMON_HAVE_GLPK)
    30 
    30 
    31 IF(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(HAVE_CPLEX)
    34 ENDIF(LEMON_HAVE_CPLEX)
    35 
    35 
    36 IF(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(HAVE_CLP)
    39 ENDIF(LEMON_HAVE_CLP)
    40 
    40 
    41 IF(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(HAVE_CBC)
    44 ENDIF(LEMON_HAVE_CBC)
    45 
    45 
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    47 
    47 
    48 INSTALL(
    48 INSTALL(
    49   TARGETS lemon
    49   TARGETS lemon
    53 INSTALL(
    53 INSTALL(
    54   DIRECTORY . bits concepts
    54   DIRECTORY . bits concepts
    55   DESTINATION include/lemon
    55   DESTINATION include/lemon
    56   COMPONENT headers
    56   COMPONENT headers
    57   FILES_MATCHING PATTERN "*.h")
    57   FILES_MATCHING PATTERN "*.h")
       
    58 
       
    59 INSTALL(
       
    60   FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
       
    61   DESTINATION include/lemon
       
    62   COMPONENT headers)