mirror of
https://github.com/thelsing/knx.git
synced 2025-08-03 13:48:15 +02:00
Support use as ESP IDF component
This commit is contained in:
parent
a30bbd0f0a
commit
90efda9309
@ -1,8 +1,19 @@
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(knx VERSION 1.5)
|
||||
|
||||
|
||||
add_subdirectory(examples/knx-linux)
|
||||
add_subdirectory(examples/knx-linux-coupler)
|
||||
add_subdirectory(examples/knxPython)
|
||||
set(COMPONENT_SRCDIRS
|
||||
"src"
|
||||
"src/knx"
|
||||
)
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS
|
||||
"src"
|
||||
"src/knx"
|
||||
)
|
||||
|
||||
set(COMPONENT_REQUIRES
|
||||
"arduino-esp32"
|
||||
"libsodium"
|
||||
)
|
||||
|
||||
register_component()
|
||||
|
||||
target_compile_definitions(${COMPONENT_TARGET} PUBLIC -DESP32)
|
||||
target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)
|
Loading…
Reference in New Issue
Block a user