You've already forked cpp-httplib
Added google test framework.
This commit is contained in:
17
test/Makefile
Normal file
17
test/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
USE_CLANG = 1
|
||||
|
||||
ifdef USE_CLANG
|
||||
CC = clang++
|
||||
CFLAGS = -std=c++0x -stdlib=libc++ -g -DGTEST_USE_OWN_TR1_TUPLE
|
||||
else
|
||||
CC = g++
|
||||
CFLAGS = -std=c++11 -g
|
||||
endif
|
||||
|
||||
test : test.cc ../httpsvrkit.h
|
||||
$(CC) -o test $(CFLAGS) -I.. -I. test.cc gtest/gtest-all.cc gtest/gtest_main.cc
|
||||
|
||||
.PHONY : run
|
||||
run: test
|
||||
./test
|
Reference in New Issue
Block a user