Ported bacnet-basic from zephyr project to create basis for mini example. (#933)
This commit is contained in:
+22
-1
@@ -25,6 +25,11 @@ option(
|
||||
ON)
|
||||
|
||||
option(
|
||||
BACNET_BUILD_BACMINI_APP
|
||||
"compile the bacmini app"
|
||||
ON)
|
||||
|
||||
option(
|
||||
BACNET_BUILD_PIFACE_APP
|
||||
"compile the piface app"
|
||||
OFF)
|
||||
@@ -84,7 +89,7 @@ option(
|
||||
"build with uci"
|
||||
OFF)
|
||||
|
||||
set(BACNET_PROTOCOL_REVISION 19)
|
||||
set(BACNET_PROTOCOL_REVISION 24)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
@@ -912,6 +917,22 @@ if(BACNET_STACK_BUILD_APPS)
|
||||
target_link_libraries(piface PRIVATE ${PROJECT_NAME})
|
||||
endif(BACNET_BUILD_PIFACE_APP)
|
||||
|
||||
if(BACNET_BUILD_BACMINI_APP)
|
||||
add_executable(bacmini
|
||||
apps/server-basic/main.c
|
||||
src/bacnet/basic/server/bacnet_basic.c
|
||||
src/bacnet/basic/server/bacnet_device.c
|
||||
src/bacnet/basic/server/bacnet_port.c
|
||||
src/bacnet/basic/server/bacnet_port_ipv4.c
|
||||
src/bacnet/basic/server/bacnet_port_ipv6.c
|
||||
)
|
||||
target_link_libraries(bacmini PRIVATE ${PROJECT_NAME})
|
||||
target_compile_options(bacmini PRIVATE
|
||||
# Unreachable code because we have endless loop.
|
||||
$<$<C_COMPILER_ID:MSVC>:/wd4702>
|
||||
)
|
||||
endif(BACNET_BUILD_BACMINI_APP)
|
||||
|
||||
if(BACNET_BUILD_BACPOLL_APP)
|
||||
add_executable(bacpoll
|
||||
apps/server-client/main.c
|
||||
|
||||
Reference in New Issue
Block a user