COIN-OR::LEMON - Graph Library

Ticket #87: cmake.patch

File cmake.patch, 2.3 KB (added by Alpar Juttner, 17 years ago)
  • .hgignore

    # HG changeset patch
    # User Akos Ladanyi <ladanyi@tmit.bme.hu>
    # Date 1208085772 -7200
    # Node ID 73bf871c5bdee83fcada58af29d0f76bfc1dc8cc
    # Parent  ae7785fe84315de6be35a182420b6369e851f00d
    CMake based build system.
    
    diff --git a/.hgignore b/.hgignore
    a b  
    3434^objs.*/.*
    3535^test/[a-z_]*$
    3636^demo/.*_demo$
     37CMakeFiles
     38DartTestfile.txt
     39cmake_install.cmake
     40CMakeCache.txt
  • new file CMakeLists.txt

    diff --git a/CMakeLists.txt b/CMakeLists.txt
    new file mode 100644
    - +  
     1project (LEMON)
     2enable_testing ()
     3add_subdirectory (lemon)
     4add_subdirectory (test)
  • deleted file benchmark/Makefile

    diff --git a/benchmark/Makefile b/benchmark/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..
  • deleted file demo/Makefile

    diff --git a/demo/Makefile b/demo/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..
  • deleted file doc/Makefile

    diff --git a/doc/Makefile b/doc/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..
  • new file lemon/CMakeLists.txt

    diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
    new file mode 100644
    - +  
     1include_directories (${LEMON_SOURCE_DIR})
     2add_library (lemon arg_parser.cc base.cc random.cc)
  • deleted file lemon/Makefile

    diff --git a/lemon/Makefile b/lemon/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..
  • new file test/CMakeLists.txt

    diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
    new file mode 100644
    - +  
     1include_directories (${LEMON_SOURCE_DIR})
     2
     3link_directories (${LEMON_BINARY_DIR}/lemon)
     4
     5set (TESTS
     6  bfs_test
     7  counter_test
     8  dfs_test
     9  digraph_test
     10  dim_test
     11  error_test
     12  graph_test
     13  kruskal_test
     14  maps_test
     15  random_test
     16  path_test
     17  time_measure_test
     18  unionfind_test)
     19
     20foreach (TEST_NAME ${TESTS})
     21  add_executable (${TEST_NAME} ${TEST_NAME}.cc)
     22  target_link_libraries (${TEST_NAME} lemon)
     23  add_test(${TEST_NAME} ${TEST_NAME})
     24endforeach (TEST_NAME)
  • deleted file test/Makefile

    diff --git a/test/Makefile b/test/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..
  • deleted file tools/Makefile

    diff --git a/tools/Makefile b/tools/Makefile
    deleted file mode 100644
    + -  
    1 all:
    2         $(MAKE) -C ..