35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(esp_hosted)
|
|
|
|
if(NOT DEFINED ESP_HOSTED_PORT_INCLUDES)
|
|
message(FATAL_ERROR "Variable ESP_HOSTED_PORT_INCLUDES is not defined.")
|
|
endif()
|
|
|
|
set(ESP_HOSTED_SOURCES
|
|
"hosted/esp_hosted_fg/common/protobuf-c/protobuf-c/protobuf-c.c"
|
|
"hosted/esp_hosted_fg/common/esp_hosted_config.pb-c.c"
|
|
"hosted/esp_hosted_fg/host/components/src/esp_queue.c"
|
|
"hosted/esp_hosted_fg/host/control_lib/src/ctrl_api.c"
|
|
"hosted/esp_hosted_fg/host/control_lib/src/ctrl_core.c"
|
|
"hosted/esp_hosted_fg/host/virtual_serial_if/src/serial_if.c"
|
|
)
|
|
|
|
set(ESP_HOSTED_INCLUDES
|
|
"hosted/esp_hosted_fg/common/include"
|
|
"hosted/esp_hosted_fg/common/protobuf-c"
|
|
"hosted/esp_hosted_fg/host/control_lib/include"
|
|
"hosted/esp_hosted_fg/host/components/include"
|
|
"hosted/esp_hosted_fg/host/control_lib/src/include"
|
|
"hosted/esp_hosted_fg/host/virtual_serial_if/include"
|
|
${ESP_HOSTED_PORT_INCLUDES}
|
|
)
|
|
|
|
set(ESP_HOSTED_INCLUDES_PRIVATE
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} ${ESP_HOSTED_SOURCES})
|
|
target_include_directories(${PROJECT_NAME}
|
|
PUBLIC ${ESP_HOSTED_INCLUDES}
|
|
PRIVATE ${ESP_HOSTED_INCLUDES_PRIVATE}
|
|
) |