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

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

index 1934f622f6cbbbf58e413d97d94183bb4593bce9..137102b32b8810287b15fd2af6a91cd77f680df6 100644 (file)
@@ -8,6 +8,7 @@ add_subdirectory(label)
 add_subdirectory(pack)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
+add_subdirectory(sparse)
 add_subdirectory(spine)
 add_subdirectory(twopigen)
 add_subdirectory(vmalloc)
diff --git a/lib/sparse/CMakeLists.txt b/lib/sparse/CMakeLists.txt
new file mode 100644 (file)
index 0000000..382650c
--- /dev/null
@@ -0,0 +1,37 @@
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/sfdpgen
+)
+
+add_library(sparse STATIC
+    # Header files
+    BinaryHeap.h
+    clustering.h
+    color_palette.h
+    colorutil.h
+    DotIO.h
+    general.h
+    IntStack.h
+    LinkedList.h
+    mq.h
+    QuadTree.h
+    SparseMatrix.h
+    vector.h
+
+    # Source files
+    BinaryHeap.c
+    clustering.c
+    color_palette.c
+    colorutil.c
+    DotIO.c
+    general.c
+    IntStack.c
+    LinkedList.c
+    mq.c
+    QuadTree.c
+    SparseMatrix.c
+    vector.c
+)