]> granicus.if.org Git - graphviz/commitdiff
Add lib/rbtree to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 9 Jan 2017 22:06:34 +0000 (23:06 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:52 +0000 (12:53 +0100)
The static library 'rbtree' has no dependencies and required no
additional checks.

lib/CMakeLists.txt
lib/rbtree/CMakeLists.txt [new file with mode: 0644]

index bee6281a5152df34276c3b5a305e0ed6af19dddf..5d0a236b060b271d00540f6df530cdff022a62d0 100644 (file)
@@ -9,6 +9,7 @@ add_subdirectory(osage)
 add_subdirectory(pack)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
+add_subdirectory(rbtree)
 add_subdirectory(sparse)
 add_subdirectory(spine)
 add_subdirectory(twopigen)
diff --git a/lib/rbtree/CMakeLists.txt b/lib/rbtree/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bf6283a
--- /dev/null
@@ -0,0 +1,15 @@
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+add_library(rbtree STATIC
+    # Header files
+    misc.h
+    red_black_tree.h
+    stack.h
+
+    # Source files
+    misc.c
+    red_black_tree.c
+    stack.c
+)