Skip to content

Commit

Permalink
fix unit tests on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Giso Grimm authored and Giso Grimm committed Mar 22, 2024
1 parent f43c297 commit 417b13d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(patsubst %,%-subdir-unit-tests,$(SUBDIRS)):
$(MAKE) -C $(@:-subdir-unit-tests=) unit-tests

execute-unit-tests: $(BUILD_DIR)/unit-test-runner
if [ -x $< ]; then LD_LIBRARY_PATH=./build:./libtascar/build $<; fi
pwd;if [ -x $< ]; then LD_LIBRARY_PATH=./build:../libtascar/build DYLD_LIBRARY_PATH=./build:../libtascar/build $<; fi

unit_tests_test_files = $(wildcard $(SOURCE_DIR)/*_unit_tests.cc)

Expand All @@ -28,13 +28,14 @@ ifeq ($(OS),Windows_NT)
CXXFLAGS += -DISWINDOWS
LIBTASCARDLL=../libtascar/$(BUILD_DIR)/libtascar.dll
else
LIBTASCARDLL=../libtascar/$(BUILD_DIR)/libtascar.so
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBTASCARDLL=../libtascar/$(BUILD_DIR)/libtascar.so
CXXFLAGS += -DISLINUX
BINFILES += tascar_hdspmixer
endif
ifeq ($(UNAME_S),Darwin)
LIBTASCARDLL=../libtascar/$(BUILD_DIR)/libtascar.dylib
CXXFLAGS += -I/opt/homebrew/include -DISMACOS
CPPFLAGS += -I/opt/homebrew/include
LDFLAGS += -L/opt/homebrew/lib
Expand Down

0 comments on commit 417b13d

Please sign in to comment.