blob: 0ded744bcbcfec0d350ba3cd91403952fa2c602e [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
Eddie James774f9af2019-03-19 20:58:53 +00009utest_SOURCES = error_files_tests.cpp \
10 utest.cpp \
Lei YU6c56a4a2017-07-14 11:07:37 +080011 TestI2cOcc.cpp
12
13utest_CPPFLAGS = $(GTEST_CPPFLAGS) \
14 $(AM_CPPFLAGS)
15
Andrew Geissler4cea4d22017-07-10 15:13:33 -050016utest_CXXFLAGS = $(PTHREAD_CFLAGS)
Lei YU6c56a4a2017-07-14 11:07:37 +080017
William A. Kennington III3c1706a2018-06-27 09:34:30 -070018utest_LDFLAGS = -lgtest -lgmock -lgmock_main \
Lei YU6c56a4a2017-07-14 11:07:37 +080019 $(PTHREAD_LIBS) \
20 $(OESDK_TESTCASE_FLAGS)