# Copyright 2017 Rafal Zajac . # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. find_package(esp_sdo REQUIRED) find_package(esp_util REQUIRED) add_executable(dht22_ex main.c ${ESP_USER_CONFIG}) target_include_directories(dht22_ex PUBLIC ${ESP_USER_CONFIG_DIR} ${esp_sdo_INCLUDE_DIRS} ${esp_util_INCLUDE_DIRS}) target_link_libraries(dht22_ex ${esp_sdo_LIBRARIES} ${esp_util_LIBRARIES} esp_dht22) esp_gen_exec_targets(dht22_ex)