Skip to content

Commit a604139

Browse files
committed
feat (villas-chronics): Implementation of villas-chronics
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
1 parent eb5ebfa commit a604139

3 files changed

Lines changed: 420 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ pkg_check_modules(CGRAPH IMPORTED_TARGET libcgraph>=2.30)
125125
pkg_check_modules(GVC IMPORTED_TARGET libgvc>=2.30)
126126
pkg_check_modules(LIBUSB IMPORTED_TARGET libusb-1.0>=1.0.23)
127127
pkg_check_modules(NANOMSG IMPORTED_TARGET nanomsg)
128+
pkg_check_modules(BZIP2 IMPORTED_TARGET bzip2)
129+
128130
if(NOT NANOMSG_FOUND)
129131
pkg_check_modules(NANOMSG IMPORTED_TARGET libnanomsg>=1.0.0)
130132
endif()
@@ -191,6 +193,7 @@ cmake_dependent_option(WITH_SRC "Build executables"
191193
cmake_dependent_option(WITH_TESTS "Run tests" "${WITH_DEFAULTS}" "TOPLEVEL_PROJECT" OFF)
192194
cmake_dependent_option(WITH_TOOLS "Build auxilary tools" "${WITH_DEFAULTS}" "TOPLEVEL_PROJECT" OFF)
193195
cmake_dependent_option(WITH_WEB "Build with internal webserver" "${WITH_DEFAULTS}" "LIBWEBSOCKETS_FOUND" OFF)
196+
cmake_dependent_option(WITH_VILLAS_CHRONICS "Build with villas-chronics" "${WITH_DEFAULTS}" "BZIP2_FOUND" OFF)
194197

195198
cmake_dependent_option(WITH_NODE_AMQP "Build with amqp node-type" "${WITH_DEFAULTS}" "RABBITMQ_C_FOUND" OFF)
196199
cmake_dependent_option(WITH_NODE_CAN "Build with can node-type" "${WITH_DEFAULTS}" "" OFF)

src/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(SRCS
1111
villas-signal
1212
villas-compare
1313
villas-test-config
14+
villas-chronics
1415
)
1516

1617
add_executable(villas-node villas-node.cpp)
@@ -74,6 +75,13 @@ if(WITH_NODE_OPAL)
7475
list(APPEND SRCS opal-async-param)
7576
endif()
7677

78+
if(WITH_VILLAS_CHRONICS)
79+
add_executable(villas-chronics villas-chronics.cpp)
80+
target_link_libraries(villas-chronics PUBLIC villas)
81+
82+
list(APPEND SRCS villas-chronics)
83+
endif()
84+
7785
install(
7886
TARGETS ${SRCS}
7987
COMPONENT bin

0 commit comments

Comments
 (0)