Integrate gtest in rather than use gtest-config
This commit is contained in:
parent
ff44e4df26
commit
df3e668f79
2 changed files with 9597 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
LDFLAGS=-O2 -Wall -Werror -fPIC
|
LDFLAGS=-O2 -Wall -Werror -fPIC
|
||||||
CFLAGS=-O2 -Wall -Werror -fPIC -I. -Wno-unused-function
|
CFLAGS=-O2 -Wall -Werror -fPIC -I. -Wno-unused-function
|
||||||
|
GTEST_CFLAGS=-I../gtest/include
|
||||||
|
|
||||||
all: capn.so capnpc-c test
|
all: capn.so capnpc-c test
|
||||||
|
|
||||||
|
|
@ -21,7 +22,7 @@ test: capn-test
|
||||||
./capn-test
|
./capn-test
|
||||||
|
|
||||||
%-test.o: %-test.cpp *.h *.c *.inc
|
%-test.o: %-test.cpp *.h *.c *.inc
|
||||||
$(CXX) -g -Wall -Werror -I. `gtest-config --cppflags --cxxflags` -o $@ -c $<
|
$(CXX) -g -Wall -Werror -I. $(GTEST_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
capn-test: capn-test.o capn-stream-test.o compiler/test.capnp.o compiler/schema-test.o compiler/schema.capnp.o
|
capn-test: capn-test.o capn-stream-test.o compiler/test.capnp.o compiler/schema-test.o compiler/schema.capnp.o gtest-all-test.o
|
||||||
$(CXX) -g -Wall -Werror -I. `gtest-config --ldflags --libs` -o $@ $^
|
$(CXX) -g -Wall -Werror -I. -o $@ $^
|
||||||
|
|
|
||||||
9593
gtest-all-test.cpp
Normal file
9593
gtest-all-test.cpp
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue