]> granicus.if.org Git - graphviz/commitdiff
Add plugin/dot_layout to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Sat, 18 Mar 2017 21:02:07 +0000 (22:02 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 6 Apr 2017 19:38:02 +0000 (21:38 +0200)
The dynamic library 'gvplugin_dot_layout' has no dependencies outside the
libraries from `lib`.

plugin/CMakeLists.txt
plugin/dot_layout/CMakeLists.txt [new file with mode: 0644]

index ad6d4787c23e301370f65bac17e7904ad27d4a22..eef0932654053a13921f0c93542468df6e5bbb2b 100644 (file)
@@ -1 +1,2 @@
+add_subdirectory(dot_layout)
 add_subdirectory(core)
diff --git a/plugin/dot_layout/CMakeLists.txt b/plugin/dot_layout/CMakeLists.txt
new file mode 100644 (file)
index 0000000..242112b
--- /dev/null
@@ -0,0 +1,36 @@
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/gvc
+    ${GRAPHVIZ_LIB_DIR}/pathplan
+)
+
+add_library(gvplugin_dot_layout SHARED
+    # Source files
+       gvplugin_dot_layout.c
+       gvlayout_dot_layout.c
+)
+
+target_link_libraries(gvplugin_dot_layout
+    cdt
+    cgraph
+    dotgen
+    gvc
+    pathplan
+)
+
+# Installation location of library files
+install(
+    TARGETS gvplugin_dot_layout
+    RUNTIME DESTINATION ${BINARY_INSTALL_DIR}
+    LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
+    ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR}
+)
+
+# Specify library version and soversion
+set_target_properties(gvplugin_dot_layout PROPERTIES
+    VERSION 6.0.0
+    SOVERSION 6
+)