Related to #1785.
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
-)
-
add_library(rbtree STATIC
# Header files
red_black_tree.h
red_black_tree.c
stack.c
)
+
+include_directories(rbtree PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-AM_CPPFLAGS =
+AM_CPPFLAGS = -I$(top_srcdir)/lib
noinst_HEADERS = red_black_tree.h stack.h
noinst_LTLIBRARIES = librbtree_C.la
* See the LICENSE file for copyright information. *
**********************************************************/
-#include "red_black_tree.h"
+#include <rbtree/red_black_tree.h>
/* NullFunction does nothing it is included so that it can be passed */
/* as a function to RBTreeCreate when no other suitable function has */
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<EnablePREfast>true</EnablePREfast>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories);$(SolutionDir)/lib</AdditionalIncludeDirectories>
</ClCompile>
<Lib />
</ItemDefinitionGroup>
<WarningLevel>Level4</WarningLevel>
<EnablePREfast>true</EnablePREfast>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
- <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories);$(SolutionDir)/lib</AdditionalIncludeDirectories>
</ClCompile>
<Lib />
</ItemDefinitionGroup>
#include "config.h"
#include <assert.h>
-#include "red_black_tree.h"
-#include "stdio.h"
+#include <rbtree/red_black_tree.h>
+#include <stdio.h>
#include <stdlib.h>
/***********************************************************************/
#include "config.h"
-#include "stack.h"
+#include <rbtree/stack.h>
#include <stdlib.h>
intptr_t StackNotEmpty(stk_stack * theStack) {
#include "config.h"
-#include"red_black_tree.h"
+#include<rbtree/red_black_tree.h>
#include<stdio.h>
#include<ctype.h>