COIN-OR::LEMON - Graph Library

Ticket #87: cmake-3.patch

File cmake-3.patch, 973 bytes (added by Alpar Juttner, 16 years ago)
  • CMakeLists.txt

    Add some new stuff to CMAKE
    
    diff --git a/CMakeLists.txt b/CMakeLists.txt
    a b  
    11project (LEMON)
    22enable_testing ()
    33add_subdirectory (lemon)
     4add_subdirectory (demo)
    45add_subdirectory (test)
  • new file demo/CMakeLists.txt

    diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
    new file mode 100644
    - +  
     1include_directories (${LEMON_SOURCE_DIR})
     2
     3link_directories (${LEMON_BINARY_DIR}/lemon)
     4
     5set (DEMOS
     6  arg_parser_demo
     7  graph_to_eps_demo
     8  lgf_demo)
     9
     10foreach (DEMO_NAME ${DEMOS})
     11  add_executable (${DEMO_NAME} ${DEMO_NAME}.cc)
     12  target_link_libraries (${DEMO_NAME} lemon)
     13  endforeach (DEMO_NAME)
  • lemon/CMakeLists.txt

    diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
    a b  
    11include_directories (${LEMON_SOURCE_DIR})
    2 add_library (lemon arg_parser.cc base.cc random.cc)
     2add_library (lemon arg_parser.cc base.cc color.cc random.cc)