Matt Spinler | 0023743 | 2020-10-14 10:36:41 -0500 | [diff] [blame] | 1 | AM_CPPFLAGS = -iquote$(top_srcdir) |
| 2 | gtest_cflags = $(PTHREAD_CFLAGS) |
| 3 | gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS) |
| 4 | |
| 5 | check_PROGRAMS = |
| 6 | |
| 7 | TESTS = $(check_PROGRAMS) |
| 8 | |
| 9 | check_PROGRAMS += \ |
Matt Spinler | f06ab07 | 2020-10-14 12:58:22 -0500 | [diff] [blame] | 10 | power_off_cause_test \ |
| 11 | power_off_rule_test |
Matt Spinler | 0023743 | 2020-10-14 10:36:41 -0500 | [diff] [blame] | 12 | |
| 13 | power_off_cause_test_SOURCES = \ |
| 14 | power_off_cause_test.cpp |
| 15 | power_off_cause_test_CXXFLAGS = \ |
| 16 | $(gtest_cflags) |
| 17 | power_off_cause_test_LDFLAGS = \ |
| 18 | $(OESDK_TESTCASE_FLAGS) |
| 19 | power_off_cause_test_LDADD = \ |
| 20 | $(gtest_ldadd) |
Matt Spinler | f06ab07 | 2020-10-14 12:58:22 -0500 | [diff] [blame] | 21 | |
| 22 | power_off_rule_test_SOURCES = \ |
| 23 | power_off_rule_test.cpp \ |
| 24 | ../conditions.cpp \ |
| 25 | ../json_parser.cpp \ |
| 26 | ../logging.cpp |
| 27 | power_off_rule_test_CXXFLAGS = \ |
| 28 | $(gtest_cflags) |
| 29 | power_off_rule_test_LDFLAGS = \ |
| 30 | $(OESDK_TESTCASE_FLAGS) |
| 31 | power_off_rule_test_LDADD = \ |
| 32 | $(gtest_ldadd) \ |
| 33 | $(FMT_LIBS) \ |
| 34 | $(SDBUSPLUS_LIBS) \ |
| 35 | $(SDEVENTPLUS_LIBS) |