From a338ec7368c80baad5977e1d34fc3c8ec791e225 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 16 Feb 2021 00:08:57 +0100 Subject: [PATCH] Add simde as project library --- cmake/SfizzDeps.cmake | 5 +++++ common.mk | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cmake/SfizzDeps.cmake b/cmake/SfizzDeps.cmake index 3dcb1916..79020bcd 100644 --- a/cmake/SfizzDeps.cmake +++ b/cmake/SfizzDeps.cmake @@ -67,6 +67,11 @@ else() endif() add_subdirectory("external/st_audiofile" EXCLUDE_FROM_ALL) +# The simde library +add_library(sfizz_simde INTERFACE) +add_library(sfizz::simde ALIAS sfizz_simde) +target_include_directories(sfizz_simde INTERFACE "external/simde") + # The pugixml library add_library(sfizz_pugixml STATIC "src/external/pugixml/src/pugixml.cpp") add_library(sfizz::pugixml ALIAS sfizz_pugixml) diff --git a/common.mk b/common.mk index ae100d0d..7909df12 100644 --- a/common.mk +++ b/common.mk @@ -315,6 +315,10 @@ SFIZZ_SOURCES += \ src/external/cpuid/src/cpuid/cpuinfo.cpp \ src/external/cpuid/src/cpuid/version.cpp +### simde dependency +SFIZZ_C_FLAGS += \ + -I$(SFIZZ_DIR)/external/simde + ### Pugixml dependency SFIZZ_C_FLAGS += -I$(SFIZZ_DIR)/src/external/pugixml/src