From 8d15aec5698532d7bd1a7d2a35652a8f73e83ea9 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Sat, 18 Mar 2017 22:02:07 +0100 Subject: [PATCH] Add plugin/dot_layout to CMake build The dynamic library 'gvplugin_dot_layout' has no dependencies outside the libraries from `lib`. --- plugin/CMakeLists.txt | 1 + plugin/dot_layout/CMakeLists.txt | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 plugin/dot_layout/CMakeLists.txt diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index ad6d4787c..eef093265 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -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 index 000000000..242112b58 --- /dev/null +++ b/plugin/dot_layout/CMakeLists.txt @@ -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 +) -- 2.50.0