forked from HelTecAutomation/Heltec_ESP32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (26 loc) · 816 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set(srcs
src/BMP180.cpp
src/oled/OLEDDisplay.cpp
src/oled/OLEDDisplayUi.cpp
src/heltec.cpp
src/lora/LoRa.cpp
)
set(includedirs
src
src/lora
src/oled
)
set(priv_includes )
set(requires arduino)
set(priv_requires )
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
function(maybe_add_component component_name)
idf_build_get_property(components BUILD_COMPONENTS)
if (${component_name} IN_LIST components)
idf_component_get_property(lib_name ${component_name} COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} PUBLIC ${lib_name})
endif()
endfunction()
maybe_add_component(arduino)
target_compile_options(${COMPONENT_TARGET} PUBLIC
-DESP32)