mirror of
https://github.com/garagetinkering/Video_Game_Mini_Maps.git
synced 2026-01-17 17:47:00 +01:00
initial commit
This commit is contained in:
32
components/CANBus_Driver/CMakeLists.txt
Normal file
32
components/CANBus_Driver/CMakeLists.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
set(SRCS "")
|
||||
list(APPEND SRCS
|
||||
"src/CANBus_Driver.cpp"
|
||||
)
|
||||
|
||||
set(INCLUDE_DIRS "")
|
||||
list(APPEND INCLUDE_DIRS "include")
|
||||
|
||||
foreach(SRC_DIR IN LISTS SRC_DIRS)
|
||||
file(GLOB_RECURSE SRC ${SRC_DIR}/*.c)
|
||||
list(APPEND SRCS ${SRC})
|
||||
list(APPEND INCLUDE_DIRS ${SRC_DIR}/include)
|
||||
endforeach()
|
||||
|
||||
idf_component_register(
|
||||
SRCS ${SRCS}
|
||||
INCLUDE_DIRS ${INCLUDE_DIRS}
|
||||
REQUIRES driver
|
||||
PRIV_REQUIRES esp_timer fatfs esp_psram esp_mm
|
||||
)
|
||||
|
||||
target_compile_options(
|
||||
${COMPONENT_LIB} PRIVATE
|
||||
-Wno-format
|
||||
-Wno-int-conversion
|
||||
-Wno-incompatible-pointer-types
|
||||
-Wunused-function
|
||||
-Wno-unused-variable
|
||||
-Wno-unused-function
|
||||
-Wno-overflow
|
||||
-Wno-unused-but-set-variable
|
||||
-Wno-discarded-qualifiers)
|
||||
Reference in New Issue
Block a user