lemon/CMakeLists.txt
author Balazs Dezso <deba@inf.elte.hu>
Fri, 13 Feb 2009 13:29:28 +0100
changeset 512 9b9ffe7d9b75
parent 473 17d918051964
child 515 b9b3473327e3
permissions -rw-r--r--
Fixes for MSVC 2008 in grap_adaptors.h and edge_set.h (#194)

Several renamings and changes in adaptors and edge sets

- Fixing scope usage for MSVC
- ResidualDigraph based on SubDigraph instead of FilterArcs
- Use initialize() in adaptors and edge sets
- Wrap ListDigraph for edge set tests
     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")