tool_defaults(gxl2gv)
+ set(DOT2GXL "${CMAKE_CURRENT_BINARY_DIR}/dot2gxl${CMAKE_EXECUTABLE_SUFFIX}")
+ if(WIN32 OR CYGWIN)
+ # copy instead of symlink to avoid
+ # https://gitlab.com/graphviz/graphviz/-/issues/2123
+ add_custom_command(
+ TARGET gxl2gv
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:gxl2gv> ${DOT2GXL}
+ COMMENT "Copying $<TARGET_FILE:gxl2gv> to ${DOT2GXL}")
+ install(
+ PROGRAMS ${DOT2GXL}
+ DESTINATION ${BINARY_INSTALL_DIR})
+ else()
+ add_custom_command(
+ TARGET gxl2gv
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE_NAME:gxl2gv>
+ ${DOT2GXL}
+ COMMENT "Linking $<TARGET_FILE_NAME:gxl2gv> as ${DOT2GXL}")
+ install(
+ FILES ${DOT2GXL}
+ DESTINATION ${BINARY_INSTALL_DIR})
+ endif()
+
endif()
# ==================================== mm2gv ===================================