24 lines
593 B
Makefile
24 lines
593 B
Makefile
check: libexpr-tests_RUN
|
|
|
|
programs += libexpr-tests
|
|
|
|
libexpr-tests_NAME := libnixexpr-tests
|
|
|
|
libexpr-tests_DIR := $(d)
|
|
|
|
ifeq ($(INSTALL_UNIT_TESTS), yes)
|
|
libexpr-tests_INSTALL_DIR := $(checkbindir)
|
|
else
|
|
libexpr-tests_INSTALL_DIR :=
|
|
endif
|
|
|
|
libexpr-tests_SOURCES := \
|
|
$(wildcard $(d)/*.cc) \
|
|
$(wildcard $(d)/value/*.cc)
|
|
|
|
libexpr-tests_CXXFLAGS += -I src/libexpr -I src/libutil -I src/libstore -I src/libexpr/tests -I src/libfetchers
|
|
|
|
libexpr-tests_LIBS = libstore-tests libutils-tests libexpr libutil libstore libfetchers
|
|
|
|
libexpr-tests_LDFLAGS := -lrapidcheck $(GTEST_LIBS) -lgmock
|