lemon/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 12 Nov 2009 23:49:05 +0100
changeset 878 4b1b378823dc
parent 722 c5dc4d3124aa
child 1012 10242c611190
permissions -rw-r--r--
Small doc improvements + unifications in MCF classes (#180)
ladanyi@539
     1
INCLUDE_DIRECTORIES(
ladanyi@596
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@539
     3
  ${PROJECT_BINARY_DIR}
ladanyi@539
     4
)
ladanyi@539
     5
ladanyi@539
     6
CONFIGURE_FILE(
ladanyi@539
     7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
ladanyi@539
     8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@539
     9
)
alpar@225
    10
ladanyi@496
    11
SET(LEMON_SOURCES
alpar@225
    12
  arg_parser.cc
alpar@225
    13
  base.cc
alpar@225
    14
  color.cc
ladanyi@496
    15
  lp_base.cc
ladanyi@496
    16
  lp_skeleton.cc
alpar@511
    17
  random.cc
alpar@511
    18
  bits/windows.cc
alpar@511
    19
)
alpar@225
    20
ladanyi@674
    21
IF(LEMON_HAVE_GLPK)
ladanyi@496
    22
  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
ladanyi@666
    23
  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
ladanyi@498
    24
  IF(WIN32)
ladanyi@498
    25
    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
ladanyi@498
    26
    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
ladanyi@498
    27
    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
ladanyi@726
    28
  ENDIF()
ladanyi@726
    29
ENDIF()
ladanyi@496
    30
ladanyi@674
    31
IF(LEMON_HAVE_CPLEX)
ladanyi@667
    32
  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
ladanyi@667
    33
  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
ladanyi@726
    34
ENDIF()
ladanyi@667
    35
ladanyi@674
    36
IF(LEMON_HAVE_CLP)
ladanyi@668
    37
  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
ladanyi@668
    38
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ladanyi@726
    39
ENDIF()
ladanyi@668
    40
ladanyi@674
    41
IF(LEMON_HAVE_CBC)
ladanyi@668
    42
  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
ladanyi@668
    43
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ladanyi@726
    44
ENDIF()
ladanyi@668
    45
ladanyi@496
    46
ADD_LIBRARY(lemon ${LEMON_SOURCES})
ladanyi@722
    47
IF(UNIX)
ladanyi@722
    48
  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
ladanyi@726
    49
ENDIF()
ladanyi@496
    50
alpar@225
    51
INSTALL(
alpar@225
    52
  TARGETS lemon
alpar@225
    53
  ARCHIVE DESTINATION lib
ladanyi@722
    54
  COMPONENT library
ladanyi@722
    55
)
alpar@225
    56
alpar@225
    57
INSTALL(
alpar@225
    58
  DIRECTORY . bits concepts
alpar@225
    59
  DESTINATION include/lemon
alpar@225
    60
  COMPONENT headers
ladanyi@722
    61
  FILES_MATCHING PATTERN "*.h"
ladanyi@722
    62
)
ladanyi@539
    63
ladanyi@539
    64
INSTALL(
ladanyi@539
    65
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@539
    66
  DESTINATION include/lemon
ladanyi@722
    67
  COMPONENT headers
ladanyi@722
    68
)