-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (24 loc) · 803 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (24 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# matth-x/MicroOcppMongoose
# Copyright Matthias Akstaller 2019 - 2023
# MIT License
cmake_minimum_required(VERSION 3.15)
set(MO_MG_SRC
src/MicroOcppMongooseClient_c.cpp
src/MicroOcppMongooseClient.cpp
)
if(ESP_PLATFORM)
idf_component_register(SRCS ${MO_MG_SRC}
INCLUDE_DIRS "src"
REQUIRES esp_timer mbedtls mongoose MicroOcpp)
target_compile_definitions(${COMPONENT_LIB} PRIVATE
)
return()
endif()
add_library(MicroOcppMongoose ${MO_MG_SRC})
target_include_directories(MicroOcppMongoose PUBLIC
"./src"
"../mongoose"
)
target_compile_definitions(MicroOcppMongoose PRIVATE
)
target_link_libraries(MicroOcppMongoose PUBLIC MicroOcpp)