Minimal API functionality with unit tests, could be used for integration tests with Unity server. For internal testing used RPC_server implementation
29 lines
948 B
Meson
29 lines
948 B
Meson
project('cloud_point_rpc', 'cpp',
|
|
version : '0.1',
|
|
default_options : ['warning_level=3', 'cpp_std=c++20'])
|
|
|
|
# Dependencies
|
|
json_dep = dependency('nlohmann_json', fallback : ['nlohmann_json', 'nlohmann_json_dep'])
|
|
thread_dep = dependency('threads')
|
|
asio_dep = dependency('asio', fallback : ['asio', 'asio_dep'])
|
|
|
|
# GLog via CMake fallback
|
|
cmake = import('cmake')
|
|
glog_opt = cmake.subproject_options()
|
|
glog_opt.add_cmake_defines({'WITH_GFLAGS': 'OFF', 'WITH_GTEST': 'OFF'})
|
|
glog_proj = cmake.subproject('glog', options: glog_opt)
|
|
glog_dep = glog_proj.dependency('glog')
|
|
|
|
yaml_dep = dependency('yaml-cpp', fallback : ['yaml-cpp', 'yaml_cpp_dep'])
|
|
|
|
# GTest & GMock via explicit subproject
|
|
gtest_proj = subproject('gtest')
|
|
gtest_dep = gtest_proj.get_variable('gtest_dep')
|
|
gtest_main_dep = gtest_proj.get_variable('gtest_main_dep')
|
|
gmock_dep = gtest_proj.get_variable('gmock_dep')
|
|
|
|
inc = include_directories('include')
|
|
|
|
subdir('src')
|
|
subdir('tests')
|