blob: ff5617944be066dd9daf1c6be696005d717590d4 [file] [log] [blame]
Andrew Geissler4cea4d22017-07-10 15:13:33 -05001AM_CPPFLAGS = -I$(top_srcdir)
2check_PROGRAMS = utest
3
4# Run all 'check' test programs
5TESTS = $(check_PROGRAMS)
6
Lei YU6c56a4a2017-07-14 11:07:37 +08007utest_LDADD = $(top_builddir)/libocc_control.la -lstdc++fs
8
9utest_SOURCES = utest.cpp \
10 TestI2cOcc.cpp
11
12utest_CPPFLAGS = $(GTEST_CPPFLAGS) \
13 $(AM_CPPFLAGS)
14
Andrew Geissler4cea4d22017-07-10 15:13:33 -050015utest_CXXFLAGS = $(PTHREAD_CFLAGS)
Lei YU6c56a4a2017-07-14 11:07:37 +080016
William A. Kennington III3c1706a2018-06-27 09:34:30 -070017utest_LDFLAGS = -lgtest -lgmock -lgmock_main \
Lei YU6c56a4a2017-07-14 11:07:37 +080018 $(PTHREAD_LIBS) \
19 $(OESDK_TESTCASE_FLAGS)