demo/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Wed, 29 Apr 2009 16:54:27 +0200
changeset 642 111698359429
parent 475 f59df77f5c8d
child 627 20dac2104519
permissions -rw-r--r--
Less map copying in NetworkSimplex (#234)

- The graph is copied in the constructor instead of the init() function.
It must not be modified after the class is constructed.
- The maps are copied once (instead of twice).
- Remove FlowMap, PotentialMap typedefs and flowMap(), pontentialMap()
setter functions.
- flowMap() and potentialMap() query functions copy the values into the
given map (reference) instead of returning a const reference to a
previously constructed map.
ladanyi@473
     1
INCLUDE_DIRECTORIES(
ladanyi@549
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@549
     3
  ${PROJECT_BINARY_DIR}
ladanyi@473
     4
)
ladanyi@141
     5
ladanyi@549
     6
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
ladanyi@141
     7
alpar@225
     8
SET(DEMOS
ladanyi@141
     9
  arg_parser_demo
ladanyi@141
    10
  graph_to_eps_demo
ladanyi@141
    11
  lgf_demo)
ladanyi@141
    12
alpar@225
    13
FOREACH(DEMO_NAME ${DEMOS})
alpar@225
    14
  ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc)
alpar@225
    15
  TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon)
alpar@225
    16
ENDFOREACH(DEMO_NAME)