mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
Update cmakelists.txt (#213)
This commit is contained in:
parent
a7ff1beacd
commit
877a29a8b1
1 changed files with 5 additions and 7 deletions
|
@ -2,30 +2,28 @@
|
||||||
# CMakeLists in this exact order for cmake to work correctly
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
idf_build_get_property(__hack_component_targets __COMPONENT_TARGETS)
|
if(__COMPONENT_TARGETS MATCHES "___idf_esp-nimble-component")
|
||||||
|
|
||||||
if("esp-nimble-component" IN_LIST BUILD_COMPONENTS OR "__esp-nimble-component" IN_LIST __hack_component_targets)
|
|
||||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||||
esp-nimble-component
|
esp-nimble-component
|
||||||
)
|
)
|
||||||
elseif("nimble" IN_LIST BUILD_COMPONENTS OR "__nimble" IN_LIST __hack_component_targets)
|
elseif(__COMPONENT_TARGETS MATCHES "__idf_nimble")
|
||||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||||
nimble
|
nimble
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Arduino install using IDF component manager
|
# Arduino install using IDF component manager
|
||||||
if("espressif__arduino-esp32" IN_LIST BUILD_COMPONENTS OR "___idf_espressif__arduino-esp32" IN_LIST __hack_component_targets)
|
if(__COMPONENT_TARGETS MATCHES "___idf_espressif__arduino-esp32")
|
||||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||||
arduino-esp32
|
arduino-esp32
|
||||||
)
|
)
|
||||||
# Manual installation of Arduino framework
|
# Manual installation of Arduino framework
|
||||||
elseif("arduino" IN_LIST BUILD_COMPONENTS OR "__idf_arduino" IN_LIST __hack_component_targets)
|
elseif(__COMPONENT_TARGETS MATCHES "__idf_arduino")
|
||||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||||
arduino
|
arduino
|
||||||
)
|
)
|
||||||
# PlatformIO
|
# PlatformIO
|
||||||
elseif("framework-arduinoespressif32" IN_LIST BUILD_COMPONENTS OR "___idf_framework-arduinoespressif32" IN_LIST __hack_component_targets)
|
elseif(__COMPONENT_TARGETS MATCHES "___idf_framework-arduinoespressif32")
|
||||||
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
list(APPEND ESP_NIMBLE_PRIV_REQUIRES
|
||||||
framework-arduinoespressif32
|
framework-arduinoespressif32
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue