From eb809200edb2f1ae735b24165d5e2fb74cb6347e Mon Sep 17 00:00:00 2001 From: pedroazeredo04 Date: Mon, 7 Aug 2023 11:20:20 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20Add=20CMake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/FindVL53L0X.cmake | 11 +++++++++++ sources.mk | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 cmake/FindVL53L0X.cmake delete mode 100644 sources.mk diff --git a/cmake/FindVL53L0X.cmake b/cmake/FindVL53L0X.cmake new file mode 100644 index 0000000..9850fff --- /dev/null +++ b/cmake/FindVL53L0X.cmake @@ -0,0 +1,11 @@ +set(VL53L0X_PATH + ./lib/VL53L0X +) + +list(APPEND LIB_SOURCES + ${VL53L0X_PATH}/src/vl53l0X.c +) + +list(APPEND LIB_INCLUDE_DIRECTORIES + ${VL53L0X_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