| 1 |
add_library(gvplugin_neato_layout |
| 2 |
# Source files |
| 3 |
gvplugin_neato_layout.c |
| 4 |
gvlayout_neato_layout.c |
| 5 |
) |
| 6 |
|
| 7 |
target_include_directories(gvplugin_neato_layout PRIVATE |
| 8 |
../../lib |
| 9 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 10 |
../../lib/cdt |
| 11 |
../../lib/cgraph |
| 12 |
../../lib/common |
| 13 |
../../lib/gvc |
| 14 |
../../lib/pathplan |
| 15 |
) |
| 16 |
|
| 17 |
target_link_libraries(gvplugin_neato_layout PRIVATE |
| 18 |
circogen |
| 19 |
fdpgen |
| 20 |
gvc |
| 21 |
neatogen |
| 22 |
osage |
| 23 |
patchwork |
| 24 |
rbtree |
| 25 |
sparse |
| 26 |
twopigen |
| 27 |
) |
| 28 |
|
| 29 |
if(with_ipsepcola) |
| 30 |
target_link_libraries(gvplugin_neato_layout PRIVATE vpsc) |
| 31 |
endif() |
| 32 |
|
| 33 |
if(with_sfdp) |
| 34 |
target_link_libraries(gvplugin_neato_layout PRIVATE sfdpgen) |
| 35 |
endif() |
| 36 |
|
| 37 |
if(BUILD_SHARED_LIBS) |
| 38 |
# Installation location of library files |
| 39 |
install( |
| 40 |
TARGETS gvplugin_neato_layout |
| 41 |
RUNTIME DESTINATION ${BINARY_INSTALL_DIR} |
| 42 |
LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR} |
| 43 |
ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR} |
| 44 |
) |
| 45 |
endif() |
| 46 |
|
| 47 |
# Specify library version and soversion |
| 48 |
set_target_properties(gvplugin_neato_layout PROPERTIES |
| 49 |
VERSION ${GVPLUGIN_CURRENT}.0.${GVPLUGIN_REVISION} |
| 50 |
SOVERSION ${GVPLUGIN_CURRENT} |
| 51 |
) |
| 52 |
|
| 53 |
if(MINGW) |
| 54 |
# work around https://gitlab.kitware.com/cmake/cmake/-/issues/21716 |
| 55 |
set_target_properties(gvplugin_neato_layout PROPERTIES |
| 56 |
RUNTIME_OUTPUT_NAME gvplugin_neato_layout-${GVPLUGIN_CURRENT} |
| 57 |
) |
| 58 |
endif() |