From 62a3ee4f1251056eb3e9b1b3f5d3c9c77ba3cafa Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 1 Jun 2021 18:30:05 +0200 Subject: [PATCH] create an object library with all ortho object files for CMake 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. --- lib/ortho/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ortho/CMakeLists.txt b/lib/ortho/CMakeLists.txt index 14d7a15d4..79bca2dab 100644 --- a/lib/ortho/CMakeLists.txt +++ b/lib/ortho/CMakeLists.txt @@ -2,7 +2,7 @@ if (with_ortho) add_definitions(-D_BLD_gvc=1) -add_library(ortho STATIC +add_library(ortho_obj OBJECT # Header files fPQ.h maze.h @@ -23,7 +23,7 @@ add_library(ortho STATIC trapezoid.c ) -target_include_directories(ortho PRIVATE +target_include_directories(ortho_obj PRIVATE ${GRAPHVIZ_LIB_DIR} ${GRAPHVIZ_LIB_DIR}/cdt ${GRAPHVIZ_LIB_DIR}/cgraph @@ -33,4 +33,8 @@ target_include_directories(ortho PRIVATE ${GRAPHVIZ_LIB_DIR}/pathplan ) +add_library(ortho STATIC + $ +) + endif (with_ortho) -- 2.40.0