Add missing libraries to link with drivers.

This commit is contained in:
Rafal Zajac 2017-11-13 16:39:10 +01:00
parent 931aee878b
commit 379b6d1b6f
3 changed files with 9 additions and 8 deletions

View File

@ -27,6 +27,6 @@ target_include_directories(esp_dht22 PUBLIC
${esp_gpio_INCLUDE_DIRS} ${esp_gpio_INCLUDE_DIRS}
${ESP_USER_CONFIG_DIR}) ${ESP_USER_CONFIG_DIR})
esp_gen_lib(esp_dht22 target_link_libraries(esp_dht22 ${esp_gpio_LIBRARIES})
${ESP_CMAKE_FIND_DIR}
${esp_gpio_LIBRARIES}) esp_gen_lib(esp_dht22)

View File

@ -31,8 +31,9 @@ target_include_directories(esp_ds18b20 PUBLIC
${esp_tim_INCLUDE_DIRS} ${esp_tim_INCLUDE_DIRS}
${ESP_USER_CONFIG_DIR}) ${ESP_USER_CONFIG_DIR})
esp_gen_lib(esp_ds18b20 target_link_libraries(esp_ds18b20
${ESP_CMAKE_FIND_DIR}
${esp_ow_LIBRARIES} ${esp_ow_LIBRARIES}
${esp_eb_LIBRARIES} ${esp_eb_LIBRARIES}
${esp_tim_LIBRARIES}) ${esp_tim_LIBRARIES})
esp_gen_lib(esp_ds18b20)

View File

@ -27,6 +27,6 @@ target_include_directories(esp_sht21 PUBLIC
${esp_i2c_INCLUDE_DIRS} ${esp_i2c_INCLUDE_DIRS}
${ESP_USER_CONFIG_DIR}) ${ESP_USER_CONFIG_DIR})
esp_gen_lib(esp_sht21 target_link_libraries(esp_sht21 ${esp_i2c_LIBRARIES})
${ESP_CMAKE_FIND_DIR}
${esp_i2c_LIBRARIES}) esp_gen_lib(esp_sht21)