Skip to content

Commit

Permalink
Add support to use graphviz >= 3 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Jan 23, 2023
1 parent eea77c2 commit 15435b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gazebo/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ if (HAVE_GRAPHVIZ)
# Activate Export macro for building the library itself
# if QGVCORE_LIB is not set or equal 0 (null), import macro is used
add_definitions(-DQGVCORE_LIB)
# If Graphviz >= 3.0.0 is used as shared library on Windows, the GVDLL
# preprocess definition should be defined. As at this point we can't
# know if graphviz is shared or static, we always defined GVDLL,
# leaving an option that users can use to explicitly specify that
# the linked graphviz is static
option(GAZEBO_FINDGRAPHVIZ_USE_STATIC_GRAPHVIZ
"Enable when linking a static graphviz" OFF)
mark_as_advanced(GAZEBO_FINDGRAPHVIZ_USE_STATIC_GRAPHVIZ)
if(WIN32 AND NOT GAZEBO_FINDGRAPHVIZ_USE_STATIC_GRAPHVIZ)
add_definitions(-DGVDLL)
endif()
include_directories(${GRAPHVIZ_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/qgv)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/qgv/private)
Expand Down

0 comments on commit 15435b1

Please sign in to comment.