]> granicus.if.org Git - graphviz/commitdiff
Add lib/circogen to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Tue, 3 Jan 2017 23:49:15 +0000 (00:49 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:50 +0000 (12:53 +0100)
The static library circogen has no dependencies and required no
additional checks.

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

index c03e844852bf29b35c50f6122e933e2892e7b1fd..23718a336a583b808f6349ac69f9120a1d9bef84 100644 (file)
@@ -1,5 +1,6 @@
 # No dependencies
 add_subdirectory(cdt)
+add_subdirectory(circogen)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
 add_subdirectory(twopigen)
diff --git a/lib/circogen/CMakeLists.txt b/lib/circogen/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2841c06
--- /dev/null
@@ -0,0 +1,37 @@
+include_directories(
+    .
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/gvc
+    ${GRAPHVIZ_LIB_DIR}/neatogen
+    ${GRAPHVIZ_LIB_DIR}/pack
+    ${GRAPHVIZ_LIB_DIR}/pathplan
+    ${GRAPHVIZ_LIB_DIR}/sparse
+)
+
+add_library(circogen STATIC
+    # Header files
+    block.h
+    blockpath.h
+    blocktree.h
+    circo.h
+    circpos.h
+    circular.h
+    deglist.h
+    edgelist.h
+    nodelist.h
+    nodeset.h
+
+    # Source files
+    block.c
+    blockpath.c
+    blocktree.c
+    circpos.c
+    circular.c
+    circularinit.c
+    deglist.c
+    edgelist.c
+    nodelist.c
+    nodeset.c
+)