Commit 15bc2714 authored by Erwin Janssen's avatar Erwin Janssen

Add the `dot` executable to the CMake build

The CMake build now builds `dot` and allows graphs to be rendered. Only
the `core` outputs and `dot_layout` are included for now.
parent 8d15aec5
...@@ -137,3 +137,4 @@ include(CPack) ...@@ -137,3 +137,4 @@ include(CPack)
# ======================= Specify subdirectories to build ====================== # ======================= Specify subdirectories to build ======================
add_subdirectory(lib) add_subdirectory(lib)
add_subdirectory(plugin) add_subdirectory(plugin)
add_subdirectory(cmd)
add_subdirectory(dot)
add_definitions(-DDEMAND_LOADING=1)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/common
${GRAPHVIZ_LIB_DIR}/gvc
${GRAPHVIZ_LIB_DIR}/pathplan
)
add_executable(dot
# Source files
dot.c
no_builtins.c
)
target_link_libraries(dot
cgraph
gvc
)
# Link to math library
if (UNIX)
target_link_libraries(dot m)
endif (UNIX)
# Installation location of library files
install(
TARGETS dot
RUNTIME DESTINATION ${BINARY_INSTALL_DIR}
LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR}
)
# Specify man pages to be installed
install(
FILES dot.1 osage.1 patchwork.1
DESTINATION ${MAN_INSTALL_DIR}
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment