Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | check_PROGRAMS = utest |
| 3 | |
| 4 | # Run all 'check' test programs |
| 5 | TESTS = $(check_PROGRAMS) |
| 6 | |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 7 | utest_LDADD = $(top_builddir)/libocc_control.la -lstdc++fs |
| 8 | |
| 9 | utest_SOURCES = utest.cpp \ |
| 10 | TestI2cOcc.cpp |
| 11 | |
| 12 | utest_CPPFLAGS = $(GTEST_CPPFLAGS) \ |
| 13 | $(AM_CPPFLAGS) |
| 14 | |
Andrew Geissler | 4cea4d2 | 2017-07-10 15:13:33 -0500 | [diff] [blame] | 15 | utest_CXXFLAGS = $(PTHREAD_CFLAGS) |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 16 | |
William A. Kennington III | 3c1706a | 2018-06-27 09:34:30 -0700 | [diff] [blame] | 17 | utest_LDFLAGS = -lgtest -lgmock -lgmock_main \ |
Lei YU | 6c56a4a | 2017-07-14 11:07:37 +0800 | [diff] [blame] | 18 | $(PTHREAD_LIBS) \ |
| 19 | $(OESDK_TESTCASE_FLAGS) |