переделки для того, чтобы библиотека api заводилась

This commit is contained in:
2024-10-30 16:16:56 +03:00
parent 815a081a4c
commit 9037c6b329
9 changed files with 192 additions and 88 deletions

View File

@@ -28,6 +28,8 @@ add_library(terminal-client-api SHARED
client/system_client.cpp
)
target_include_directories(terminal-client-api PUBLIC "include/")
find_package(Boost 1.53.0 COMPONENTS system log log_setup REQUIRED)
find_package(cereal REQUIRED)
target_link_libraries(terminal-client-api ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} cereal::cereal)

View File

@@ -1,5 +1,5 @@
#include <shared_mutex>
#include "ControlProtoCInterface.h"
#include "terminal_api/ControlProtoCInterface.h"
#include "system_client.h"
std::shared_mutex mtx;

View File

@@ -1,13 +1,14 @@
#ifndef __CONTROL_PROTO_COMMANDS__
#define __CONTROL_PROTO_COMMANDS__
#include <stdint.h>
#include <iostream>
#include <string>
#ifdef __cplusplus
#include <cstdint>
#define EXTERNC extern "C"
#else
#include <stdint.h>
#define EXTERNC extern
#endif