Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeGraphVizOptions.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set(GRAPHVIZ_GENERATE_PER_TARGET TRUE)
set(GRAPHVIZ_IGNORE_TARGETS test_* unity gcov)
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,25 @@ if(BUILD_PACKAGE)

add_subdirectory(pkg)
endif(BUILD_PACKAGE)

add_custom_command(
OUTPUT dep_chart.dot
COMMAND ${CMAKE_COMMAND} "--graphviz=dep_chart.dot" .
)
find_program(CMD_DOT NAMES dot)
message(STATUS "Found dot at ${CMD_DOT}")
if(CMD_DOT)
add_custom_command(
DEPENDS dep_chart.dot
OUTPUT dep_chart.svg
COMMAND ${CMD_DOT} -Tsvg dep_chart.dot -o dep_chart.svg
)
add_custom_command(
DEPENDS dep_chart.dot
OUTPUT dep_chart.png
COMMAND ${CMD_DOT} -Tpng dep_chart.dot -o dep_chart.png
)
add_custom_target(graphviz
DEPENDS dep_chart.svg dep_chart.png
)
endif(CMD_DOT)
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/bsl>
)
target_link_libraries(bsl_front PUBLIC MLIB::mlib)

# Dynamic backend library
set(BSL_DYNAMIC_H
Expand Down
2 changes: 1 addition & 1 deletion src/mock_bpa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ set_target_properties(bsl_mock_bpa
VERSION ${CMAKE_PROJECT_VERSION}
SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR}
)
target_link_libraries(bsl_mock_bpa PUBLIC bsl_front QCBOR::qcbor)
target_link_libraries(bsl_mock_bpa PUBLIC bsl_front QCBOR::qcbor MLIB::mlib)

add_executable(bsl-mock-bpa)
target_sources(bsl-mock-bpa PRIVATE mock_bpa.c)
Expand Down