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.
     1 INCLUDE_DIRECTORIES(
     2   ${CMAKE_SOURCE_DIR}
     3   ${CMAKE_BINARY_DIR}
     4 )
     5 
     6 CONFIGURE_FILE(
     7   ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
     8   ${CMAKE_CURRENT_BINARY_DIR}/config.h
     9 )
    10 
    11 SET(LEMON_SOURCES
    12   arg_parser.cc
    13   base.cc
    14   color.cc
    15   lp_base.cc
    16   lp_skeleton.cc
    17   random.cc)
    18 
    19 IF(HAVE_GLPK)
    20   SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
    21   INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
    22   IF(WIN32)
    23     INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
    24     INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
    25     INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
    26   ENDIF(WIN32)
    27 ENDIF(HAVE_GLPK)
    28 
    29 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    30 
    31 INSTALL(
    32   TARGETS lemon
    33   ARCHIVE DESTINATION lib
    34   COMPONENT library)
    35 
    36 INSTALL(
    37   DIRECTORY . bits concepts
    38   DESTINATION include/lemon
    39   COMPONENT headers
    40   FILES_MATCHING PATTERN "*.h")