]> granicus.if.org Git - graphviz/commitdiff
disambiguate lib/osage/*.c #includes
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 22 Aug 2020 01:06:17 +0000 (18:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Sep 2020 02:26:51 +0000 (19:26 -0700)
Related to #1785.

lib/osage/CMakeLists.txt
lib/osage/Makefile.am
lib/osage/osage.vcxproj
lib/osage/osageinit.c

index b2e61abb962086f74d84a9d1c7cb3e4f19e07ed7..56cd68e1f03eedab96e8ce103f23bcf9875b85e5 100644 (file)
@@ -1,4 +1,13 @@
-include_directories(
+add_library(osage STATIC
+    # Header files
+    osage.h
+
+    # Source files
+    osageinit.c
+)
+
+target_include_directories(osage PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
     ${CMAKE_CURRENT_SOURCE_DIR}
     ${GRAPHVIZ_LIB_DIR}/cdt
     ${GRAPHVIZ_LIB_DIR}/cgraph
@@ -11,11 +20,3 @@ include_directories(
     ${GRAPHVIZ_LIB_DIR}/sfdpgen
     ${GRAPHVIZ_LIB_DIR}/sparse
 )
-
-add_library(osage STATIC
-    # Header files
-    osage.h
-
-    # Source files
-    osageinit.c
-)
index 59a49f56c9471cfd29f80684b4aace0a6027563e..5e08b42f9167ba2c0df01906655155cf9b6277ac 100644 (file)
@@ -2,6 +2,7 @@
 ## Process this file with automake to produce Makefile.in
 
 AM_CPPFLAGS = \
+       -I$(top_srcdir)/lib \
         -I$(top_srcdir)/lib/common \
        -I$(top_srcdir)/lib/gvc \
        -I$(top_srcdir)/lib/neatogen \
index b4b54e2c2eef3ede7ea9ade454b70b5739d10e16..5f52f90eeefa51b4fbf949449cc18800574daacb 100644 (file)
@@ -51,7 +51,7 @@
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
     <ClCompile>
       <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>_DEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <MinimalRebuild>true</MinimalRebuild>
       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
@@ -66,7 +66,7 @@
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <ClCompile>
-      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\neatogen;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\sparse;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>NDEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PrecompiledHeader />
       <WarningLevel>Level4</WarningLevel>
index a8e1fdbba421eb8d6378d23386a60bce8d0f9b81..2d8dcae085699e3e9a9078060767c0aab22b7d6c 100644 (file)
@@ -16,9 +16,9 @@
  * Written by Emden R. Gansner
  */
 
-#include    "osage.h"
-#include    "neatoprocs.h"
-#include    "pack.h"
+#include    <osage/osage.h>
+#include    <neatogen/neatoprocs.h>
+#include    <pack/pack.h>
 
 #define CL_CHUNK 10
 #define DFLT_SZ  18