# 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
|
|
34 | 34 | ^objs.*/.* |
35 | 35 | ^test/[a-z_]*$ |
36 | 36 | ^demo/.*_demo$ |
| 37 | CMakeFiles |
| 38 | DartTestfile.txt |
| 39 | cmake_install.cmake |
| 40 | CMakeCache.txt |
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
-
|
+
|
|
| 1 | project (LEMON) |
| 2 | enable_testing () |
| 3 | add_subdirectory (lemon) |
| 4 | add_subdirectory (test) |
diff --git a/benchmark/Makefile b/benchmark/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |
diff --git a/demo/Makefile b/demo/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |
diff --git a/doc/Makefile b/doc/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |
diff --git a/lemon/CMakeLists.txt b/lemon/CMakeLists.txt
new file mode 100644
-
|
+
|
|
| 1 | include_directories (${LEMON_SOURCE_DIR}) |
| 2 | add_library (lemon arg_parser.cc base.cc random.cc) |
diff --git a/lemon/Makefile b/lemon/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
-
|
+
|
|
| 1 | include_directories (${LEMON_SOURCE_DIR}) |
| 2 | |
| 3 | link_directories (${LEMON_BINARY_DIR}/lemon) |
| 4 | |
| 5 | set (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 | |
| 20 | foreach (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}) |
| 24 | endforeach (TEST_NAME) |
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |
diff --git a/tools/Makefile b/tools/Makefile
deleted file mode 100644
+
|
-
|
|
1 | | all: |
2 | | $(MAKE) -C .. |