Bugfix/bacmini-updates-with-program-object-and-cmake (#941)

* Added bacmini example app with minimal analog and binary objects  (#934)

* Fixed bacmini app build for Makefile and CMake

* Changed the folder for bacmini application to server-mini

---------

Co-authored-by: Ben Bartling <ben.bartling@gmail.com>
This commit is contained in:
Steve Karg
2025-03-13 17:18:47 -05:00
committed by GitHub
parent d7858c0b3a
commit f1ea03647f
6 changed files with 437 additions and 4 deletions
+11 -1
View File
@@ -24,6 +24,11 @@ option(
"enable property lists"
ON)
option(
BACNET_BUILD_SERVER_MINI_APP
"compile the server-mini app"
ON)
option(
BACNET_BUILD_SERVER_BASIC_APP
"compile the server-basic app"
@@ -919,6 +924,11 @@ if(BACNET_STACK_BUILD_APPS)
target_link_libraries(piface PRIVATE ${PROJECT_NAME})
endif(BACNET_BUILD_PIFACE_APP)
if(BACNET_BUILD_SERVER_MINI_APP)
add_executable(bacmini apps/server-mini/main.c)
target_link_libraries(bacmini PRIVATE ${PROJECT_NAME})
endif(BACNET_BUILD_SERVER_MINI_APP)
if(BACNET_BUILD_SERVER_BASIC_APP)
add_executable(bacbasic
apps/server-basic/main.c
@@ -933,7 +943,7 @@ if(BACNET_STACK_BUILD_APPS)
# Unreachable code because we have endless loop.
$<$<C_COMPILER_ID:MSVC>:/wd4702>
)
endif(BACNET_BUILD_BACMINI_APP)
endif(BACNET_BUILD_SERVER_BASIC_APP)
if(BACNET_BUILD_BACPOLL_APP)
add_executable(bacpoll