mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
With Google Test 1.8.0, I seem to need both libs.
This commit is contained in:
parent
97ec616334
commit
6599767748
@ -65,9 +65,8 @@ gtest.a : gtest-all.o
|
||||
gtest_main.a : gtest-all.o gtest_main.o
|
||||
$(AR) $(ARFLAGS) $@ $^
|
||||
|
||||
# Builds a sample test. A test should link with either gtest.a or
|
||||
# gtest_main.a, depending on whether it defines its own main()
|
||||
# function.
|
||||
# Builds a sample test. A test should link with gtest.a, and also
|
||||
# gtest_main.a if it doesn't define its own main() function.
|
||||
|
||||
GildedRose.o : $(USER_DIR)/GildedRose.cc
|
||||
$(CXX) -c $^
|
||||
@ -76,7 +75,7 @@ GildedRoseUnitTests.o : $(USER_DIR)/GildedRoseUnitTests.cc \
|
||||
$(GTEST_HEADERS)
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/GildedRoseUnitTests.cc
|
||||
|
||||
GildedRose : GildedRoseUnitTests.o GildedRose.o gtest_main.a
|
||||
GildedRose : GildedRoseUnitTests.o GildedRose.o gtest.a gtest_main.a
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -pthread $^ -o $@
|
||||
|
||||
GildedRoseTextTests.o : $(USER_DIR)/GildedRoseTextTests.cc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user