diff --git a/cmake/FindVL53L1.cmake b/cmake/FindVL53L1.cmake new file mode 100644 index 0000000..2ba624b --- /dev/null +++ b/cmake/FindVL53L1.cmake @@ -0,0 +1,11 @@ +set(VL53L1_PATH + ./lib/VL53L1 +) + +list(APPEND LIB_SOURCES + ${VL53L1_PATH}/src/vl53l1.c +) + +list(APPEND LIB_INCLUDE_DIRECTORIES + ${VL53L1_PATH}/inc +) diff --git a/sources.mk b/sources.mk deleted file mode 100644 index e61105c..0000000 --- a/sources.mk +++ /dev/null @@ -1,11 +0,0 @@ -THIS_PATH := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) - -C_INCLUDES += \ - -I$(THIS_PATH)/core/inc \ - -I$(THIS_PATH)/platform/inc \ - -I$(THIS_PATH)/inc \ - -LIB_SOURCES += $(shell find $(THIS_PATH)/core/src $(THIS_PATH)/platform/src $(THIS_PATH)/src -name "*.c") - - -undefine THIS_PATH