lemon/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Sat, 03 Oct 2009 06:54:18 +0200
branch1.1
changeset 692 78b7231f0b2e
parent 677 c5dc4d3124aa
child 742 16d466589b54
permissions -rw-r--r--
Update NEWS file
ladanyi@620
     1
INCLUDE_DIRECTORIES(
ladanyi@538
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@620
     3
  ${PROJECT_BINARY_DIR}
ladanyi@620
     4
)
ladanyi@620
     5
ladanyi@620
     6
CONFIGURE_FILE(
ladanyi@620
     7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
ladanyi@620
     8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@620
     9
)
alpar@225
    10
ladanyi@473
    11
SET(LEMON_SOURCES
alpar@225
    12
  arg_parser.cc
alpar@225
    13
  base.cc
alpar@225
    14
  color.cc
ladanyi@473
    15
  lp_base.cc
ladanyi@473
    16
  lp_skeleton.cc
alpar@491
    17
  random.cc
alpar@491
    18
  bits/windows.cc
alpar@491
    19
)
alpar@225
    20
ladanyi@622
    21
IF(LEMON_HAVE_GLPK)
ladanyi@473
    22
  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
ladanyi@611
    23
  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
ladanyi@474
    24
  IF(WIN32)
ladanyi@474
    25
    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
ladanyi@474
    26
    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
ladanyi@474
    27
    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
ladanyi@681
    28
  ENDIF()
ladanyi@681
    29
ENDIF()
ladanyi@473
    30
ladanyi@622
    31
IF(LEMON_HAVE_CPLEX)
ladanyi@612
    32
  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
ladanyi@612
    33
  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
ladanyi@681
    34
ENDIF()
ladanyi@612
    35
ladanyi@622
    36
IF(LEMON_HAVE_CLP)
ladanyi@613
    37
  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
ladanyi@613
    38
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ladanyi@681
    39
ENDIF()
ladanyi@613
    40
ladanyi@622
    41
IF(LEMON_HAVE_CBC)
ladanyi@613
    42
  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
ladanyi@613
    43
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
ladanyi@681
    44
ENDIF()
ladanyi@613
    45
ladanyi@473
    46
ADD_LIBRARY(lemon ${LEMON_SOURCES})
ladanyi@677
    47
IF(UNIX)
ladanyi@677
    48
  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
ladanyi@681
    49
ENDIF()
ladanyi@473
    50
alpar@225
    51
INSTALL(
alpar@225
    52
  TARGETS lemon
alpar@225
    53
  ARCHIVE DESTINATION lib
ladanyi@677
    54
  COMPONENT library
ladanyi@677
    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@677
    61
  FILES_MATCHING PATTERN "*.h"
ladanyi@677
    62
)
ladanyi@620
    63
ladanyi@620
    64
INSTALL(
ladanyi@620
    65
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@620
    66
  DESTINATION include/lemon
ladanyi@677
    67
  COMPONENT headers
ladanyi@677
    68
)