1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 00:15:59 +01:00

Add googletest library and update makefiles

This commit is contained in:
Mike Long
2012-04-21 07:45:37 +01:00
parent 329b83f15a
commit 3c8beeaa58
12 changed files with 31280 additions and 15 deletions

22
gtest/Makefile Normal file
View 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

File diff suppressed because it is too large Load Diff

6
gtest/gtest-main.cc Normal file
View 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

File diff suppressed because it is too large Load Diff