--- /dev/null
+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
+)