lemon/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Fri, 13 Feb 2009 15:01:09 +0000
changeset 511 06787db0ef5f
parent 473 17d918051964
child 515 b9b3473327e3
permissions -rw-r--r--
Change LEMON's isnan() to isNaN() for the sake of AIX/xlC

Certain xlC versions implement isnan() as a #define.
ladanyi@473
     1
INCLUDE_DIRECTORIES(
ladanyi@473
     2
  ${CMAKE_SOURCE_DIR}
ladanyi@473
     3
  ${CMAKE_BINARY_DIR}
ladanyi@473
     4
)
alpar@225
     5
ladanyi@473
     6
CONFIGURE_FILE(
ladanyi@473
     7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
ladanyi@473
     8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@473
     9
)
ladanyi@473
    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@225
    17
  random.cc)
alpar@225
    18
ladanyi@473
    19
IF(HAVE_GLPK)
ladanyi@473
    20
  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
ladanyi@475
    21
  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
ladanyi@475
    22
  IF(WIN32)
ladanyi@475
    23
    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
ladanyi@475
    24
    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
ladanyi@475
    25
    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
ladanyi@475
    26
  ENDIF(WIN32)
ladanyi@473
    27
ENDIF(HAVE_GLPK)
ladanyi@473
    28
ladanyi@473
    29
ADD_LIBRARY(lemon ${LEMON_SOURCES})
ladanyi@473
    30
alpar@225
    31
INSTALL(
alpar@225
    32
  TARGETS lemon
alpar@225
    33
  ARCHIVE DESTINATION lib
alpar@225
    34
  COMPONENT library)
alpar@225
    35
alpar@225
    36
INSTALL(
alpar@225
    37
  DIRECTORY . bits concepts
alpar@225
    38
  DESTINATION include/lemon
alpar@225
    39
  COMPONENT headers
alpar@225
    40
  FILES_MATCHING PATTERN "*.h")