-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (50 loc) · 1.82 KB
/
CMakeLists.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.19.0)
set(CHIP_ROOT /opt/homesecure-c)
set(CHIP_ROOT_OUT ${CHIP_ROOT}/out/custom)
project(BridgeApp)
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET glib-2.0 gobject-2.0 gio-2.0 openssl)
link_directories(${CHIP_ROOT_OUT}/lib)
file(GLOB SRCS
"${CHIP_ROOT}/src/app/util/*.cpp"
"${CHIP_ROOT}/src/app/clusters/access-control-server/*.cpp"
)
add_executable(BridgeApp
main.cpp
Device.cpp
bridged-actions-stub.cpp
${CHIP_ROOT}/examples/platform/linux/AppMain.cpp
${CHIP_ROOT}/examples/platform/linux/CommissionableInit.cpp
${CHIP_ROOT}/examples/platform/linux/CommissionerMain.cpp
${CHIP_ROOT}/examples/platform/linux/LinuxCommissionableDataProvider.cpp
${CHIP_ROOT}/examples/platform/linux/NamedPipeCommands.cpp
${CHIP_ROOT}/examples/platform/linux/Options.cpp
${SRCS}
)
target_compile_options(BridgeApp PRIVATE
"-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>"
"-DCHIP_SYSTEM_CONFIG_USE_SOCKETS"
"-DCHIP_CONFIG_ENABLE_ARG_PARSER"
"-DCHIP_DEVICE_CONFIG_MAX_DISCOVERED_IP_ADDRESSES=64"
"-DCHIP_DEVICE_LAYER_TARGET=Linux"
"-DINET_UDP_END_POINT_IMPL_CONFIG_FILE=<UDPEndPointImplSockets.h>"
)
target_include_directories(BridgeApp PRIVATE
${CHIP_ROOT}/src
${CHIP_ROOT}/src/inet
${CHIP_ROOT}/src/include
${CHIP_ROOT}/examples/providers
${CHIP_ROOT}/src/platform/Linux
${CHIP_ROOT}/examples/platform/linux
${CHIP_ROOT}/third_party/nlio/repo/include
${CHIP_ROOT}/third_party/nlassert/repo/include
${CHIP_ROOT}/third_party/inipp/repo/inipp
${CHIP_ROOT}/zzz_generated/app-common
${CHIP_ROOT_OUT}/gen/src/controller/data_model/zapgen
${CHIP_ROOT_OUT}/gen/include
${CHIP_ROOT_OUT}/gen/examples/all-clusters-app/all-clusters-common
)
target_link_libraries(BridgeApp
CHIP
PkgConfig::deps
)