forked from 3rd-party/fff
Add googletest library and update makefiles
This commit is contained in:
22
gtest/Makefile
Normal file
22
gtest/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
BUILD_DIR = ../build
|
||||
LIBS := -lpthread
|
||||
CPP_OBJS=$(BUILD_DIR)/gtest-all.o $(BUILD_DIR)/gtest-main.o
|
||||
|
||||
SOURCES=gtest-all.cc gtest-main.cc
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
$(BUILD_DIR)/%.o: %.cc
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C++ Compiler'
|
||||
g++ -I../ -O0 -g3 -Wall -c -o"$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
all: $(CPP_OBJS)
|
||||
|
||||
clean:
|
||||
-$(RM) $(CPP_OBJS)
|
||||
-@echo ' '
|
||||
|
||||
9118
gtest/gtest-all.cc
Normal file
9118
gtest/gtest-all.cc
Normal file
File diff suppressed because it is too large
Load Diff
6
gtest/gtest-main.cc
Normal file
6
gtest/gtest-main.cc
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "gtest.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
19537
gtest/gtest.h
Normal file
19537
gtest/gtest.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user