motorcortex-rust 0.5.0

Motorcortex Rust: a Rust client for the Motorcortex Core real-time control system (async + blocking).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.10)
project(test_server)

set(CMAKE_CXX_STANDARD 20)

# setting install directory SYSROOT/INSTALL_PREFIX
set(CMAKE_INSTALL_PREFIX "${CMAKE_SYSROOT}${CMAKE_INSTALL_PREFIX}")

add_subdirectory(control)
add_executable(test_server main.cpp ${test_server_src})
target_include_directories(test_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/control ${CMAKE_CURRENT_SOURCE_DIR}/logic)
target_compile_options(test_server PUBLIC -DPB_FIELD_32BIT -DLOG_LEVEL_INFO -DENABLE_ASSERTS -DLOG_LEVEL_SM)
target_link_libraries(test_server mcx-core nng)

install(TARGETS test_server DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(DIRECTORY config/ DESTINATION ${CMAKE_SYSROOT}/etc/motorcortex/apps-available/test_server)
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ./apps-available/test_server config \
                              WORKING_DIRECTORY ${CMAKE_SYSROOT}/etc/motorcortex)")