This is a prepration for being able to force them to be included in
the gvc shared library in an upcoming commit in this series.
Towards https://gitlab.com/graphviz/graphviz/-/issues/2096.
add_definitions(-D_BLD_gvc=1)
-add_library(ortho STATIC
+add_library(ortho_obj OBJECT
# Header files
fPQ.h
maze.h
trapezoid.c
)
-target_include_directories(ortho PRIVATE
+target_include_directories(ortho_obj PRIVATE
${GRAPHVIZ_LIB_DIR}
${GRAPHVIZ_LIB_DIR}/cdt
${GRAPHVIZ_LIB_DIR}/cgraph
${GRAPHVIZ_LIB_DIR}/pathplan
)
+add_library(ortho STATIC
+ $<TARGET_OBJECTS:ortho_obj>
+)
+
endif (with_ortho)